Skip to content

feat: a simple, bold Device screen - #145

Merged
TheCryptoDonkey merged 2 commits into
mainfrom
feat/device-screen-simple
Sep 25, 2026
Merged

TheCryptoDonkey merged 2 commits into
mainfrom
feat/device-screen-simple

Conversation

@TheCryptoDonkey

Copy link
Copy Markdown
Member

The Device screen stacked eleven sections at the same weight, with diagnostics first and the things to act on buried in paragraphs.

  • A "Your signer" summary at the top has one bold row each for Firmware, Storage (only when filling), After a power cut, Backup and Connection. Each row has a coloured state dot, a plain-words state and at most one button, and anything needing attention comes first. The derivation lives in src/lib/device-summary.ts, with 18 tests.
  • The sections below are collapsed disclosures with large headings and a state word: Firmware, After a power cut, Security, Backup, Network, Display and light, Diagnostics, Bridge, Danger zone.
  • Long explanations move behind a small "Why?". Warnings next to a risky action stay visible: the boot PIN warning, the no-encryption acknowledgements and the vault escrow warning.
  • Behaviour, handlers and device calls are unchanged.

Tests: svelte-check clean, vitest 1070/1070, chromium e2e 31/31, build OK.

…ctions

The Device screen stacked eleven sections of equal weight with diagnostics
and long prose burying the things that need doing. Add a "Your signer"
summary of bold status rows (worst first), each with one button that opens
and scrolls to the matching section, now a closed-by-default disclosure.
Diagnostics and lengthy explanations move into the sections or a nested
"Why?" disclosure; warnings tied to an imminent action stay visible.

Extract the summary-row derivation to lib/device-summary.ts (unit tested)
and give Connectivity, OtaUpdate and Backup a heading prop so their titles
can be suppressed when nested under a section summary.
…n state

Review feedback on the "Your signer" summary:
- each row now leads with a fixed-width, bold concern label ("Firmware",
  "After a power cut", "Backup", "Connection", "Storage"), so the state text
  can read plainly instead of repeating what it's about
- the connection row no longer repeats a storage warning that already has
  its own row; it now names only a crash, fragmented memory or a recovery
  restart
- backup and after-a-power-cut gain a neutral grey "unknown" dot (a new
  SummaryDot value) instead of reading green when nothing is actually known
  yet; green is reserved for a proven good state
- at 480px and below the row stacks: dot+label, then the state text, then a
  full-width button, so the dot is never left alone on its own line
- the "Your signer" heading is now bigger and bolder than a section summary

Widened the summary-row label column so "After a power cut" doesn't clip,
and moved the mobile tab bar's clearance check into a dedicated bottom-of-
page screenshot to confirm the danger zone isn't hidden under it.
@TheCryptoDonkey
TheCryptoDonkey merged commit e0c5efe into main Sep 25, 2026
4 checks passed
@TheCryptoDonkey
TheCryptoDonkey deleted the feat/device-screen-simple branch September 25, 2026 23:49
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.

1 participant