-
Notifications
You must be signed in to change notification settings - Fork 1
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
Chore
: Unify PushNoficationSettingsScreen and NotificationSettingsUi & unsaved changes dialog
#287
Conversation
…n a new composable and added unsaved changes dialog
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.
Thank you for taking care of this, it really confused me that we previously had two very similar composables for this :D
Just some minor code comments and two general remarks:
- I noticted that the Unsaved changes dialog only appear when navigating back via the arrow in the top left, but not with the Android back button.
- When making some changes, then turning on airplane mode, and navigating back, the dialog shows. When I press "Yes/Save" I get taken back to the settings screen, but the changes are actually not synced to the server. Maybe we should stay on the notificationSettingsScreen until the syncing is successful, or display an error message otherwise
...de/tum/informatics/www1/artemis/native_app/feature/push/ui/PushNotificationSettingsScreen.kt
Outdated
Show resolved
Hide resolved
...de/tum/informatics/www1/artemis/native_app/feature/push/ui/PushNotificationSettingsScreen.kt
Outdated
Show resolved
Hide resolved
...de/tum/informatics/www1/artemis/native_app/feature/push/ui/PushNotificationSettingsScreen.kt
Show resolved
Hide resolved
feature/push/src/main/res/values/push_notification_settings_strings.xml
Outdated
Show resolved
Hide resolved
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.
Lgtm now!
Problem Description
As mentioned in #273 there a two composable functions right now, which both use
PushNotificationSettingsUi
to display notification settings.Changes
This PR combines both functions into a new function called
PushNotificationSettingsScreen
.Moreover, a new dialog has been added to warn users if there are unsaved changes after adjusting their notification settings.
Steps for testing