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

Feat: Allow users to manage emails #2613

Merged
merged 15 commits into from
Aug 9, 2024
Merged

Feat: Allow users to manage emails #2613

merged 15 commits into from
Aug 9, 2024

Conversation

Mikehrn
Copy link
Contributor

@Mikehrn Mikehrn commented Aug 8, 2024

Adds "Email addresses" page to the user settings

Screenshot 2024-08-08 at 12 49 17

@Mikehrn Mikehrn self-assigned this Aug 8, 2024
Copy link
Contributor

@andrewwallacespeckle andrewwallacespeckle left a comment

Choose a reason for hiding this comment

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

All good from me, but you should wait for a Fabs review on this one too

fabis94
fabis94 previously approved these changes Aug 9, 2024
Copy link
Contributor

@fabis94 fabis94 left a comment

Choose a reason for hiding this comment

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

Test out that apollo cache updates work as you expect (e.g. deleting an email, removes it from the list etc.)


export const settingsUserEmailsQuery = graphql(`
query SettingsUserEmailsQuery {
activeUser {
Copy link
Contributor

Choose a reason for hiding this comment

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

All of the ActiveUser fields should be its own SettingsUserEmail_User fragment that you can then reference in all of the mutations, instead of duplicating id and emails every time

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, I've updated it :) Everything works with the cache, didn't run into any issues when testing

@Mikehrn Mikehrn merged commit 3ac6741 into main Aug 9, 2024
22 of 24 checks passed
@Mikehrn Mikehrn deleted the mike/multiple-emails branch August 9, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants