Update 73: Update button in the channel header, Updates settings, client info footer #435

Closed
opened 2026-11-13 07:49:12 +00:00 by charles · 0 comments
Owner

Plan: docs/superpowers/plans/2026-11-12-textchat.md, section "Task 73" (Auto-update, added 2026-11-13 at Charles's request). Design: docs/superpowers/specs/2026-11-13-fluxer-native-autoupdate-design.md.

Issue: (to be created)
Closes: none.

Files:

  • Create: crates/fluxer-ui/src/screens/main/update_button.rs, crates/fluxer-ui/src/screens/main/modals/update.rs, crates/fluxer-ui/src/screens/settings/client_info.rs
  • Modify: crates/fluxer-ui/src/screens/main/{header.rs,mod.rs,modals/mod.rs}, crates/fluxer-ui/src/screens/settings/{advanced.rs,nav.rs,mod.rs}, crates/fluxer-ui/src/theme/{palette.rs,tokens.rs} (the update icon colour, through cargo xtask gen-theme if it extracts ChannelHeader.module.css's --channel-header-update-icon-color, else a palette constant citing ChannelHeader.module.css:9 and VoiceCallView.module.css:1006), crates/fluxer-ui/README.md, fixtures/golden/ (new goldens)
  • Test: crates/fluxer-ui/tests/update.rs, crates/fluxer-ui/tests/screenshots.rs

Interfaces:

  • Consumes: Text chat 71 (selectors, UpdateAction).

  • Produces: update_button::view(model: &UpdateButtonModel, call_header: bool) -> Element<Message> placed in header.rs's tool row before the existing right-hand buttons (ChannelHeader.tsx:1152 order), 32 px button, 24 px glyph (IconName::DownloadSimple / ArrowClockwise), green #22c55e (white in the call header), red for UpdateIcon::Error, spinner rotation 1 turn/s driven by the existing animation tick only while Spinning (no subscription otherwise; reduced-motion setting → static at 60 % opacity), tooltip below with the model's text; click → UpdateAction::ButtonClicked; disabled while !enabled.

  • Produces: modals — restart confirmation (confirm_restart), error (Failed { user_started }: "Couldn't download the update" / "Couldn't check for updates", "Try again", "Download manually" → OpenNotes), manual download result ("{product} {version} is downloaded", path, "Show in folder", "What's new"); strings from UpdaterModalCommands.tsx where it has them, the rest from update §4.5.

  • Produces: Advanced → "Updates" section (update §6.2): version line, channel pick_list (Stable disabled with "No stable release yet" when stable_published == Some(false)), "Check for updates" button + status line, "Disable automatic updates" switch (SetAutomatic(!value)); only the development-build text in a dev build. Settings sidebar footer: client_info::view(line), click copies the build info through iced's clipboard and shows "Copied" (the original's ClientInfo.tsx behaviour).

  • Step 1: Write failing tests: no_button_when_model_is_none, button_sits_before_the_existing_header_tools, button_click_sends_button_clicked, button_disabled_while_spinning, tooltip_shows_progress_percent, call_header_uses_white_icon, error_icon_opens_error_modal, confirm_restart_modal_buttons, manual_download_modal_shows_path_and_show_in_folder, updates_section_controls_send_actions, stable_option_disabled_when_unpublished, dev_build_shows_only_the_notice, client_info_click_copies_build_info; screenshots update_button_available, update_button_downloading, update_button_error, settings_updates_section, settings_client_info_footer.

  • Step 2: Run them, see them fail.

  • Step 3: Implement.

  • Step 4: Run FLUXER_SCREENSHOT_TESTS=1 cargo xtask ci, see it pass.

  • Step 5: Commit feat(ui): update button, Updates settings and client info footer. Side-by-side screenshots with the Electron app's update button in the PR.

🤖 Generated with Claude Code

Plan: `docs/superpowers/plans/2026-11-12-textchat.md`, section "Task 73" (Auto-update, added 2026-11-13 at Charles's request). Design: `docs/superpowers/specs/2026-11-13-fluxer-native-autoupdate-design.md`. ### Task 73: Update button in the channel header, Updates settings, client info footer **Issue:** (to be created) **Closes:** none. **Files:** - Create: `crates/fluxer-ui/src/screens/main/update_button.rs`, `crates/fluxer-ui/src/screens/main/modals/update.rs`, `crates/fluxer-ui/src/screens/settings/client_info.rs` - Modify: `crates/fluxer-ui/src/screens/main/{header.rs,mod.rs,modals/mod.rs}`, `crates/fluxer-ui/src/screens/settings/{advanced.rs,nav.rs,mod.rs}`, `crates/fluxer-ui/src/theme/{palette.rs,tokens.rs}` (the update icon colour, through `cargo xtask gen-theme` if it extracts `ChannelHeader.module.css`'s `--channel-header-update-icon-color`, else a palette constant citing `ChannelHeader.module.css:9` and `VoiceCallView.module.css:1006`), `crates/fluxer-ui/README.md`, `fixtures/golden/` (new goldens) - Test: `crates/fluxer-ui/tests/update.rs`, `crates/fluxer-ui/tests/screenshots.rs` **Interfaces:** - Consumes: Text chat 71 (selectors, `UpdateAction`). - Produces: `update_button::view(model: &UpdateButtonModel, call_header: bool) -> Element<Message>` placed in `header.rs`'s tool row before the existing right-hand buttons (`ChannelHeader.tsx:1152` order), 32 px button, 24 px glyph (`IconName::DownloadSimple` / `ArrowClockwise`), green `#22c55e` (white in the call header), red for `UpdateIcon::Error`, spinner rotation 1 turn/s driven by the existing animation tick only while `Spinning` (no subscription otherwise; reduced-motion setting → static at 60 % opacity), tooltip below with the model's text; click → `UpdateAction::ButtonClicked`; disabled while `!enabled`. - Produces: modals — restart confirmation (`confirm_restart`), error (`Failed { user_started }`: "Couldn't download the update" / "Couldn't check for updates", "Try again", "Download manually" → `OpenNotes`), manual download result ("{product} {version} is downloaded", path, "Show in folder", "What's new"); strings from `UpdaterModalCommands.tsx` where it has them, the rest from update §4.5. - Produces: Advanced → "Updates" section (update §6.2): version line, channel `pick_list` (Stable disabled with "No stable release yet" when `stable_published == Some(false)`), "Check for updates" button + status line, "Disable automatic updates" switch (`SetAutomatic(!value)`); only the development-build text in a dev build. Settings sidebar footer: `client_info::view(line)`, click copies the build info through iced's clipboard and shows "Copied" (the original's `ClientInfo.tsx` behaviour). - [ ] **Step 1: Write failing tests**: `no_button_when_model_is_none`, `button_sits_before_the_existing_header_tools`, `button_click_sends_button_clicked`, `button_disabled_while_spinning`, `tooltip_shows_progress_percent`, `call_header_uses_white_icon`, `error_icon_opens_error_modal`, `confirm_restart_modal_buttons`, `manual_download_modal_shows_path_and_show_in_folder`, `updates_section_controls_send_actions`, `stable_option_disabled_when_unpublished`, `dev_build_shows_only_the_notice`, `client_info_click_copies_build_info`; screenshots `update_button_available`, `update_button_downloading`, `update_button_error`, `settings_updates_section`, `settings_client_info_footer`. - [ ] **Step 2: Run them, see them fail.** - [ ] **Step 3: Implement.** - [ ] **Step 4: Run `FLUXER_SCREENSHOT_TESTS=1 cargo xtask ci`, see it pass.** - [ ] **Step 5: Commit** `feat(ui): update button, Updates settings and client info footer`. Side-by-side screenshots with the Electron app's update button in the PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
charles added this to the Text chat milestone 2026-11-13 07:49:12 +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#435
No description provided.