Skip to content

Updater UX: UPDATE guards the write, step order, risk-first confirm, one line per step, offline guide (#762) - #765

Merged
Skeyelab merged 11 commits into
mainfrom
762-updater-ux
Nov 23, 2026
Merged

Skeyelab merged 11 commits into
mainfrom
762-updater-ux

Conversation

@Skeyelab

Copy link
Copy Markdown
Member

Closes #762.

These are the UX fixes from the 2026-11-22 review, all picked by the owner. They include the owner's decision to move the typed word UPDATE from the update-mode step to the flash write. Nothing new is sent to any device: the bytes, and the order of requests, are unchanged.

Slices

Each was built red first, one commit per slice.

  1. UPDATE guards the write. Confirmation is now only made by init?(typed:for:), for the word UPDATE in any case with surrounding spaces allowed, or by init?(restoring:) for a restore plan only. The old Confirmation(plan) is gone, so nothing can write without the word. Restore after a mismatch is a click and a confirm (cos, answer a). In the app, the write alert has a "Type UPDATE" field, and its button stays off until the word is typed.
  2. The update-mode step is a click and a confirm. enter(confirmed:) takes a Confirmed that only the confirm's own button makes, with the title, body and button text kept in the Kit. The message and its refusals are unchanged. README step 7.3 is updated to match.
  3. The write confirm says the risk first, in plain words, and ends with "Type UPDATE to write." confirmDetails holds the sectors and addresses (WritePlan.text), shown under a Details disclosure by the button, since an alert can't hold a disclosure.
  4. A line while the write runs: "Writing the . Don't unplug or switch off the LC6000. This takes …". It says about 30 seconds for the top panel chip, from the owner's write of 2026-11-22, and under a minute for the display chip, which hasn't been timed yet.
  5. One status line per step.
    • The panel's update result clears at Look again. It stays through a USB change, because the panel's port comes back seconds after an update and would otherwise wipe it.
    • The Kit's LC6000Lines: a backup starting clears the step's line and the last backup's; a write starting clears the backup's line; the step starting clears its own.
  6. Step order. UpdaterScreen.lc6000Steps puts "Quit DeckBridge first. It talks to the LC6000." first. The LC6000 steps sit inside the LC6000 box, and show only when an LC6000 is found (showsLC6000Steps). With none, the box says "Plug in the LC6000 and switch it on." A chip in update mode shows as "An LC6000 chip in update mode": naming which chip would need a new request at every look (cos, answer b), so the backup names it.
  7. Recovery guide offline. docs/LC6000-RECOVERY.md is bundled as an app resource, and recoveryGuide(bundled:) opens the local copy, falling back to GitHub. It's never site text.

App wiring (build only)

  • In every confirm, Cancel is the default action, so Return never fires a destructive button.
  • UpdateView: the typed field, the restore confirm, the Details disclosure and the writing line.
  • BackupView: the confirm alert, the steps list and LC6000Lines.
  • UpdaterView: BackupView now sits inside the LC6000 SectionView.

Tests

  • New: WriteGateTests (4), LC6000LinesTests (3), UpdateModeStepTests (+2), UpdateFlowTests (+1 writing line; confirm and guide tests rewritten), PanelUpdateFlowTests (+2), UpdaterScreenTests (+2; the update-mode line test rewritten).
  • Changed, because the old API went: ChipWriterTests now get their confirmations through the new inits.
  • No test was green on arrival.

Mutation checks, each restored from a cp backup, and each made a test fail:

  • Dropped the restore-plan guard in typed:.
  • Dropped the case-folding.
  • Let Confirmed accept any button.
  • Made USB looks clear the result.
  • Showed the steps without the warning accepted.

The string-only slices (3, 4, 7) weren't mutation-checked.

Held for the owner's screenshots (#761's preview mode, once #764 lands). I'll merge #764 and agent2's #763 into this branch when they're in.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VCgWWtMsRLyAoGPQD9M6xN

Skeyelab and others added 8 commits November 22, 2026 18:54
@Skeyelab Skeyelab added this to the Firmware updater app milestone Nov 23, 2026
@Skeyelab Skeyelab changed the title [held] Updater UX: UPDATE guards the write, step order, risk-first confirm, one line per step, offline guide (#762) Updater UX: UPDATE guards the write, step order, risk-first confirm, one line per step, offline guide (#762) Nov 23, 2026
@Skeyelab

Copy link
Copy Markdown
Member Author

Owner approved 2026-11-22 (via cos), after the preview shots in ~/Documents/deckbridge-762-screenshots/. Merged in main with #764 and #766. #766 didn't change the confirm or writing text, so no reshoot. No longer held.

@Skeyelab
Skeyelab added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 9af667d Nov 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updater: UX fixes from the review (write feedback, step order, risk-first confirm, no message pile-up, offline recovery guide, UPDATE guards the write)

1 participant