Skip to content

Conversation

@shanbady
Copy link
Contributor

@shanbady shanbady commented Sep 30, 2024

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/5636

Description (What does it do?)

This PR adds the following to the settings page in the user dashboard:

  • a confirmation dialog when trying to unfollow something
  • An "unfollow all" button that will unsubscribe a user from everything they follow

Screenshots (if appropriate):

Screenshot 2024-10-01 at 10 32 31 AM Screenshot 2024-10-01 at 3 14 42 PM

How can this be tested?

  1. Checkout this branch
  2. follow a handful of topics, departments etc
  3. visit the settings page in the user dashboard
  4. view the confirmation modal that appears when trying to unfollow.
  5. click the "unfollow all" button and confirm. it should leave you will an empty list of follows

@shanbady shanbady marked this pull request as ready for review October 1, 2024 14:52
@shanbady shanbady added Needs Review An open Pull Request that is ready for review and removed Work in Progress labels Oct 1, 2024
@sovsey
Copy link

sovsey commented Oct 1, 2024

@shanbady looking at the screenshots, I'm noticing an additional question mark that's not needed in the "Unfollow All" modal.
Screenshot 2024-10-01 at 3 09 55 PM

@shanbady
Copy link
Contributor Author

shanbady commented Oct 1, 2024

@shanbady looking at the screenshots, I'm noticing an additional question mark that's not needed in the "Unfollow All" modal. Screenshot 2024-10-01 at 3 09 55 PM

Fixed Screenshot 2024-10-01 at 3 14 42 PM

@gumaerc gumaerc self-assigned this Oct 2, 2024
Copy link
Contributor

@gumaerc gumaerc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

However, I noticed that the title of the PR is "Follow/Unfollow All" but there is no "Follow All" function. We should change the title to be more accurate, in case someone looks at this in the future.

@shanbady shanbady changed the title Follow/Unfollow All "unfollow" confirmation modal and "Unfollow All" button Oct 2, 2024
@shanbady shanbady merged commit 7b2217d into main Oct 2, 2024
10 checks passed
@shanbady shanbady deleted the shanbady/settings-unfollow-all branch October 2, 2024 17:09
@odlbot odlbot mentioned this pull request Oct 2, 2024
3 tasks
mbertrand pushed a commit that referenced this pull request Oct 4, 2024
* adding initial button

* adding working dialog

* fixing typecheck lint

* fixing styles and checking for existing subscriptions

* adding tests

* fixing lint

* adding another test. fixing dialog header

* fixing lint

* remove trailing question mark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review An open Pull Request that is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants