-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Manage email subscription from user profile #3886
Comments
Can you clarify whether the subscription settings are stored within the user profile or the envelope? Furthermore, is there an existing method to set and retrieve these settings? |
User subscriptions are stored with envelop. Both data can be retrieved with an api request to envelop. There will be a rest api to update the subscriptions. |
First post has been updated with the new specs |
@samuveth what do you think about this?: Let's start with this, and we can decide how it will look. |
What I am visualizing:
Are those the default checkbox look&feel from the UI chart ? these looks so much like radio buttons, rather than checkboxes |
We should always use "Sentence case" not "Title Case" |
maybe also add "Uncheck all" |
@samuveth Why do you think we don't need the check/uncheck all ? It make sense only if the check/uncheck event is also triggering a save, which is not the case here |
We should consider incorporating a dynamic button, as suggested in your design found here: snapshot-labs/envelop#55 (comment) This button's functionality would depend on the current state of the items. If more than one item is selected, the button should display "Uncheck All". And if less than two items are selected, the button should change to "Check All". WDYT? edit: Would have been great to have that design in this issue from the beginning. @wa0x6e |
@Todmy can you also add the sub text from the design I linked about? "Selected the email categories you wish to receive:" And also the sub text for each item too |
We should follow the list order returned by /subscriptionsList, to ensure everyone have the same order, instead of having the subscribed items first |
If putting the check all button at this place, it should be a submit button, and the label should reflect that by saying "Subscribe to all". If it's purpose if just to check the checkboxes, without submitting the form, it should not look like a submit button |
@wa0x6e it's just design. During implementation, I will use the list provided by BE. |
By the way I think the text should be improved: Subscription management Proposal creation Proposal closure Weekly summary |
except of that does everything looks good for you? |
That second button is still bothering me. I think we should just remove it altogether. It's bad UX to have a submit button do different thing, depending on what is checked. Either we have
Reproducing the second button from snapshot-labs/envelop#55 (comment) is not ideal, as the page is targeted toward user who already wants to unsubscribe, the page was introduced to try to retain them as last resort. We should not have a button to facilitate unsubscription from snapshot side, because the emails are removed from DB, and they will be required to subscribe and verify email again. (if user can reactivate emails without all the hassle, it will be a different story). |
could you share some examples of how you want to see a link "check all/uncheck all"? Maybe I can see it somewhere on the website? Or maybe you have in mind any other suitable references |
I think we should remove the "un/subscribe to all" button. We can handle unsubscriptions from the unsubscribe link in the email. |
I can live with this design for now. Probably worth revisiting once we have a designer. As for the text in the last checkbox, maybe we could just make it a one liner by saying "Remove my email from Snapshot's database". @samuveth might come up with better text though. |
I propose "Also remove my email from Snapshot's database" as text Let's also align the text with the rest of the form |
Nit, but note that checkbox will only show if all toggles are switched off |
@aurelianoB Yes, definitely. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Issues
Allow users to manage their email preferences directly from snapshot UI
Changes
This will be a new modal, containing a form with the email notifications settings.
If user is not subscribed yet, the 'SUBSCRIBE' link from the header dropdown menu will open a modal with the subscription form (implemented via #3754)
If user is already subscribed, the modal will show the management subscription form
Modal will looks like:
Email subscriptions [x]
[] Proposal creation (<- checkbox)
[] Proposal closing
[] Weekly report
Select all | Unselect all (<- js event to select all checkboxes)
[UPDATE SUBSCRIPTION] (<- submit button)
On submit, we will ask the user to sign a message to prove he's the wallet owner.
How to test
To-Do
Self-review checklist
yarn cypress:test:e2e
, and they have passedTodo
Since we're now opening 2 different modals with the same link, maybe we should rename this menu 'Email notifications'
The text was updated successfully, but these errors were encountered: