fedidb / issues

Public issue tracker for fedidb.org
https://fedidb.org
5 stars 0 forks source link

Minor bug in sequential uses of “add my instance" #6

Open johannab33 opened 6 months ago

johannab33 commented 6 months ago

Describe the bug I was just exploring the FediDB sidebar tools and went to “Add my Instance”, then searched the two domains I’m involved in. The second search displays the name of the 2nd instance searched, but does NOT refresh or wipe out the stats pane for the first one.

To Reproduce Steps to reproduce the behavior:

  1. Go to fedidb.org
  2. Click on ‘Add My Instance’ in the left-hand pane.
  3. Enter name of a known instance into the text box displayed. If it is already in the DB, it is found and high-level stats displayed (users, MAU, etc)
  4. Click again on ‘Add My Instance'
  5. Enter another instance name (which exists - the “no such instance” error trumps this)
  6. Top pane of results displayed changes to name the second instance, but Stats, Graphs, Nodeinfo remain referring to the first instance.

Expected behavior Expect that when the second instance is entered, the lower pane on the results screen matches the stats for the 2nd instance.

Screenshots <img width="1499" alt="image" src="https://github.com/fedidb/issues/assets/45951494/ca28ab06-1cd3-43c8-9bca-86db25202493”>

image image

Desktop (please complete the following information):

Smartphone (please complete the following information): n/a

Additional context Minor, cosmetic - not really the intended use of the “add my instance” I would guess and not likely to be noticed. But, since I did, I thought I’d report.