zesty-io / accounts-ui

Zesty.io account management application
https://accounts.zesty.io
112 stars 14 forks source link

Pending invite not shown #173

Closed shrunyan closed 2 years ago

shrunyan commented 3 years ago

Describe the bug On the grid list view when a user was previously a member of an instance and they had favorited the instance if they are then removed and re-invited to an instance the pending invite card will not be shown unless the instance is un-favorited To Reproduce Steps to reproduce the behavior:

  1. Invite user to instance
  2. Accept invite
  3. Click "favorite" instance stare
  4. Remove user from the instance
  5. Re-invite user from the instance
  6. reload accounts
  7. see pending invite card is missing but favorited instance (which user no longer has access to) card is shown
  8. un-favorite instance by click star
  9. see pending invite now shown

Expected behavior Pending invite cards should be shown regardless of whether the instance had previously been favorited

Screenshots

Additional context When a user is removed from an instance we should probably remove the favorited status of that instance from their preferences