Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Follow Button on Browse Testimony Page #1621

Open
Mephistic opened this issue Sep 18, 2024 · 1 comment
Open

Fix Follow Button on Browse Testimony Page #1621

Mephistic opened this issue Sep 18, 2024 · 1 comment
Assignees
Labels
Browse Testimony bug Something isn't working frontend Frontend development good first issue Good for newcomers

Comments

@Mephistic
Copy link
Collaborator

Incorrect Behavior

On the Browse Testimony page, there is currently a bug: If there are multiple testimonies from the same Organization on the page and a user clicks the "Follow/Following" button on one of those testimonies, the other testimonies from that organization will not update to reflect the current following state.

e.g.

  • Org ABC has submitted testimony 1, testimony 2, and testimony 3
  • User clicks "Follow" on Testimony 2 (so that they follow updates from Org ABC)
    • The follow button on Testimony 2 changes to "Following" (correctly)
    • The follow buttons on Testimonies 1 and 3 (incorrectly) do not update to "Following" to reflect that the user is now currently following Org ABC

Desired Behavior

When the "Follow" button is clicked on a testimony entry on the Browse Testimonies page, all testimonies on that page from the same org should have the same Follow Button status (either "Follow" if the user is not currently following, or "Following" if the user is currently following).

e.g.

  • Org ABC has submitted testimony 1, testimony 2, and testimony 3
  • User clicks "Follow" on Testimony 2 (so that they follow updates from Org ABC)
    • The follow button on Testimony 1, 2, and 3 should all now read "Following"
    • (and conversely, when the "Following" button is clicked on one of these testimonies, all three should be updated to "Follow" to reflect the user is no longer following org ABC)

Related Links

Browse Testimony Page: https://maple-dev.vercel.app/testimony?publishedTestimony%2Fsort%2FpublishedAt%3Adesc%5BrefinementList%5D%5Bcourt%5D%5B0%5D=193

(The Pythagorean Pizza Society org is a good example - it has multiple testimonies on that page you can use to test).

@Mephistic Mephistic added Browse Testimony bug Something isn't working frontend Frontend development good first issue Good for newcomers labels Sep 18, 2024
@LauraUmana
Copy link
Collaborator

Hi @Mephistic , may I get assigned to this issue? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Browse Testimony bug Something isn't working frontend Frontend development good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants