Shell 8: fluxer-core tray model and actions #800

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

Task 8 of the Desktop shell plan (docs/superpowers/plans/2026-11-17-desktop-shell.md, section "### Task 8:"). 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/tray.rs · Modify: shell/mod.rs, README · Test: crates/fluxer-core/tests/shell_tray.rs

Interfaces:

  • Produces: tray_model(app) -> Option<TrayModel> (None: icon off or --no-tray): tooltip (D/DesktopTray.ts:312-315), indicator: bool, appearance: Colored | Mono, and the menu in the original's order (spec §6) with TrayItem::{Action { label, action, enabled }, Radio { label, action, checked }, Submenu { label, items }, Separator }; strings from D/MainI18n.ts:57-117. TrayAction::{ToggleWindow, ShowWindow, OpenSettings, SetStatus(UserStatus), ToggleMute, ToggleDeafen, DisconnectVoice, UpdateNow, CheckForUpdates, CopyBuildInfo, Restart, Quit} reduced to existing actions and ShellCommands. Effect::Shell(Tray(model)) emitted only when the model changed. ShellEvent::TrayAvailability stored; a hidden window with a tray that went away is shown (D/DesktopTray.ts:594-600).

  • Step 1: failing tests: table menu_rows_per_state (logged out, logged in, in voice muted / deafened, in a named channel and a DM call, update ready, hidden window), status_radio_follows_presence, tooltip_per_badge, model_emitted_only_on_change, every_action_maps, tray_lost_while_hidden_shows_window.

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

Task 8 of the Desktop shell plan (`docs/superpowers/plans/2026-11-17-desktop-shell.md`, section "### Task 8:"). 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/tray.rs` · Modify: `shell/mod.rs`, README · Test: `crates/fluxer-core/tests/shell_tray.rs` **Interfaces:** - Produces: `tray_model(app) -> Option<TrayModel>` (`None`: icon off or `--no-tray`): tooltip (`D/DesktopTray.ts:312-315`), `indicator: bool`, `appearance: Colored | Mono`, and the menu in the original's order (spec §6) with `TrayItem::{Action { label, action, enabled }, Radio { label, action, checked }, Submenu { label, items }, Separator }`; strings from `D/MainI18n.ts:57-117`. `TrayAction::{ToggleWindow, ShowWindow, OpenSettings, SetStatus(UserStatus), ToggleMute, ToggleDeafen, DisconnectVoice, UpdateNow, CheckForUpdates, CopyBuildInfo, Restart, Quit}` reduced to existing actions and `ShellCommand`s. `Effect::Shell(Tray(model))` emitted only when the model changed. `ShellEvent::TrayAvailability` stored; a hidden window with a tray that went away is shown (`D/DesktopTray.ts:594-600`). - [ ] **Step 1: failing tests**: table `menu_rows_per_state` (logged out, logged in, in voice muted / deafened, in a named channel and a DM call, update ready, hidden window), `status_radio_follows_presence`, `tooltip_per_badge`, `model_emitted_only_on_change`, `every_action_maps`, `tray_lost_while_hidden_shows_window`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): tray model`.
charles added this to the Desktop shell milestone 2026-11-17 23:02:42 +00:00
charles referenced this issue from a commit 2026-11-18 02:42:10 +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#800
No description provided.