clients
clients copied to clipboard
[PM-5559] Implement User Notification Settings state provider
trafficstars
Type of change
- Tech debt (refactoring, code cleanup, dependency upgrades, etc)
Objective
- Implement User Notification Settings state provider
- migrate
disableAddLoginNotificationanddisableChangedPasswordNotificationglobal settings to user notification settings state provider
Code changes
- Created User Notification Settings state service
- Replaced instances of state now handled by the User Notification Settings service with their appropriate counterparts
- Created migration script to upgrade or rollback state storage changes
Notes
- Similar to Autofill Settings, we don't clear out the global notification settings
disableAddLoginNotificationanddisableChangedPasswordNotificationhave been renamed with "enabled" prefixes, and their call-site logic appropriately inverted.- Semantic adjustment: "User Notification" to help disambiguate from internal notifications/messaging
- Semantic adjustment: the two notification bar messages concerned in these migrations primarily prompt the user for action (and secondarily offer feedback). I've named these two cases with a "prompt" suffix as a subtype of notifications. This is done with the anticipation that this service will appropriately handle feedback-only (no user action) messages as well at some point.
Codecov Report
Attention: Patch coverage is 38.15789% with 47 lines in your changes are missing coverage. Please review.
Project coverage is 25.06%. Comparing base (
b691b6b) to head (7be84ac). Report is 2 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #8032 +/- ##
==========================================
+ Coverage 25.01% 25.06% +0.04%
==========================================
Files 2245 2248 +3
Lines 65710 65776 +66
Branches 12401 12410 +9
==========================================
+ Hits 16435 16484 +49
- Misses 47936 47952 +16
- Partials 1339 1340 +1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Checkmarx One – Scan Summary & Details – 09db3d2b-ffb8-4828-8d4b-4ddc92b3014d