Shell 14: fluxer-core notification settings: inactive timeout, mention preference, sounds #806

Closed
opened 2026-11-17 23:02:51 +00:00 by charles · 0 comments
Owner

Task 14 of the Desktop shell plan (docs/superpowers/plans/2026-11-17-desktop-shell.md, section "### Task 14:"). The plan on the shell branch is the source of truth; this copy is for reading.

Closes: — Depends on: 6

Files:

  • Create: crates/fluxer-core/src/shell/notif_prefs.rs · Modify: shell/mod.rs, crates/fluxer-core/src/{presence.rs,persist.rs}, README · Test: crates/fluxer-core/tests/shell_notif_prefs.rs

Interfaces:

  • Step 0: list the sounds the client plays today and where their volume is decided (AudioCommand, voice, chat); the list goes into the PR and into NotificationSound::ALL.

  • Produces: NotificationPrefs { master_volume: u8 (0–200, default 100), all_disabled: bool, disabled: set<NotificationSound> } with stored; sound_volume(app, sound) -> Option<f32> used by every place a notification sound is emitted; SetAfkTimeout(seconds) (60–600 in minutes, notifications_tab/PushSettings.tsx) and SetMentionPreference(flags) (MentionPreferenceTab.tsx) as optimistic PatchUserSettings with revert; notifications_page(app) -> NotificationsPageModel (sections General, Mention preference, Sounds; strings from notifications_tab/*.tsx).

  • Step 1: failing tests: master_volume_scales_and_clamps, disable_all_and_per_sound, afk_timeout_patch_and_revert, mention_preference_patch_and_revert, page_model_strings, stored_round_trip.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): notification preferences.

Task 14 of the Desktop shell plan (`docs/superpowers/plans/2026-11-17-desktop-shell.md`, section "### Task 14:"). The plan on the `shell` branch is the source of truth; this copy is for reading. **Closes:** — **Depends on:** 6 **Files:** - Create: `crates/fluxer-core/src/shell/notif_prefs.rs` · Modify: `shell/mod.rs`, `crates/fluxer-core/src/{presence.rs,persist.rs}`, README · Test: `crates/fluxer-core/tests/shell_notif_prefs.rs` **Interfaces:** - **Step 0:** list the sounds the client plays today and where their volume is decided (`AudioCommand`, `voice`, `chat`); the list goes into the PR and into `NotificationSound::ALL`. - Produces: `NotificationPrefs { master_volume: u8 (0–200, default 100), all_disabled: bool, disabled: set<NotificationSound> }` with `stored`; `sound_volume(app, sound) -> Option<f32>` used by every place a notification sound is emitted; `SetAfkTimeout(seconds)` (60–600 in minutes, `notifications_tab/PushSettings.tsx`) and `SetMentionPreference(flags)` (`MentionPreferenceTab.tsx`) as optimistic `PatchUserSettings` with revert; `notifications_page(app) -> NotificationsPageModel` (sections General, Mention preference, Sounds; strings from `notifications_tab/*.tsx`). - [ ] **Step 1: failing tests**: `master_volume_scales_and_clamps`, `disable_all_and_per_sound`, `afk_timeout_patch_and_revert`, `mention_preference_patch_and_revert`, `page_model_strings`, `stored_round_trip`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): notification preferences`.
charles added this to the Desktop shell milestone 2026-11-17 23:02:51 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#806
No description provided.