-
Notifications
You must be signed in to change notification settings - Fork 5
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: settings notifications #480
Conversation
c27b12a
to
02fde42
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #480 +/- ##
=======================================
Coverage 22.38% 22.38%
=======================================
Files 132 132
Lines 5521 5521
Branches 241 241
=======================================
Hits 1236 1236
Misses 4285 4285
|
|
||
return ( | ||
<Box flex={1} backgroundColor="ink.background-primary"> | ||
<ScrollView |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for this PR but we seem to repeat this <ScrollView
with these props a lot (5 times). We could look into a layout for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot I created a SettingsScreenLayout
to use here, so will do. Thx for reminder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work 🚀
I added suggestions but it's fine as is, bar typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! A few notes here and there.
This back button first backs on tab navigation and then on stack navigation. I think the expected behavior here would be for the back button to just go back only on stack navigation:
navigationBack.mov
171db36
to
05e9656
Compare
05e9656
to
2355175
Compare
Updated the toast types here cc @fabric-8, also the copy on the success was to wordy so I simplified to fit on screen better... |
This PR implements screens for settings notifications, adds tabs for 'push' and 'email' notifications, and uses an input to store a preferred email address to receive notifications.
I used zod to validate the email address. I'll need design feedback on what to show for an invalid email address, rn I'm showing a toast but we only have a
success
andinfo
types currently. I think I need to add afail
type?