feat: use highSignalNotificationFilter to api #3588
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
π€ Generated by Copilot at cf7a12f
The pull request adds a new feature to let users filter notifications by signal strength in the web app. It updates the
Settings.tsx
component, thepreferences
worker, and thetracking.ts
module to handle the new preference optionhighSignalNotificationFilter
. It also improves the cache clearing logic for the preferences worker.Related issues
Fixes # (issue)
Type of change
Explanation of the changes
π€ Generated by Copilot at cf7a12f
Settings.tsx
(link)toggleHighSignalNotificationFilter
inSettings.tsx
that makes a POST request to the preferences worker, shows a toast message, and tracks the event using Leafwatch (link)Settings.tsx
(link)TOGGLE_HIGH_SIGNAL_NOTIFICATION_FILTER
to theNOTIFICATION
object intracking.ts
(link)highSignalNotificationFilter
to theExtensionRequest
type inupdatePreferences.ts
(link)highSignalNotificationFilter
property inupdatePreferences.ts
(link)highSignalNotificationFilter
property from the request body inupdatePreferences.ts
(link)highSignalNotificationFilter
property to the update query for thepreferences
table inupdatePreferences.ts
(link)Emoji
ππΆπ οΈ