Skip to content

Clarify app pages, labels and the open-card overview - #18

Merged
gh-slee merged 1 commit into
mainfrom
feat/ui-p1-clarity
Nov 5, 2026
Merged

gh-slee merged 1 commit into
mainfrom
feat/ui-p1-clarity

Conversation

@gh-slee

@gh-slee gh-slee commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Change Summary

The app read like a settings-file editor: pages that showed nothing before a card was open, button mappings under Device, labels built from storage keys and greyed-out controls for hardware the reader lacks. This PR reorganizes pages and labels and makes Overview reflect the open card, without changing any stored value or validation rule.

  • Settings pages appear only after a card is open; before that the sidebar shows Overview and Backups.
  • Button and shortcut mappings move from Device to Controls, and every page is split into sections (Side buttons, Power button, Home button, Clock and date, Files and others) with readable labels. Review rows add the section for short labels, such as "Power button — Short press".
  • Controls for hardware the selected reader lacks are hidden instead of disabled; their stored values stay preserved and read-only.
  • Overview summarizes an open card with model, CrossInk version, Back up now, Eject, the latest restorable backup and the pages available for that reader. Each settings page now opens at the top.
  • The synthetic demo is a maintainer-only screenshot mode, enabled with the -InkKitScreenshotDemo YES launch argument; regular launches do not offer it.

Files Changed

  • inkkit_schema.py: Presentation layer mapping each main setting to a page, section and label, plus a hidden flag for controls the reader lacks. Storage keys, kinds, raw values and validation are unchanged.
  • inkkit_config.py, inkkit_codec.py: Field descriptors carry hidden; available settings groups ignore hidden fields; review differences prefix the section for short labels.
  • macos/InkKitApp.swift: Sidebar gating before a session, hidden-field filtering, split Overview (welcome and open-card summary), per-page form identity for scroll reset and the screenshot-demo launch flag.
  • tests/test_config_stores.py: Every setting has a page, section and unique label for each editable release and model; only missing capabilities hide controls; review labels name the section.
  • docs/configuration-reference.md: Regenerated with the new labels and order.
  • README.md, docs/macos-preview.md, CHANGELOG.md: Remove the demo from the user quick start, document the maintainer screenshot mode and describe the reorganized pages.

Testing & Evidence

Local Verification

  • PASS: XTEINK_TESTING=1 python3 -m unittest discover -s tests -b ran 271 tests OK on the local Mac outside the agent sandbox, at the committed tree 5d02cda.
  • PASS: XTEINK_TESTING=1 python3 inkkit_helper.py --self-test.
  • PASS: Swift typecheck (xcrun swiftc -typecheck, macOS 14 target) and a local preview build whose native launcher and bundled synthetic apply/restore check passed.
  • PASS: The built app was checked visually: sidebar before a session, demo Overview summary, X3 Controls and Device sections with touch/Home controls hidden, page scroll reset, and both a regular launch (no demo) and a -InkKitScreenshotDemo YES launch (demo offered).
  • NOT RUN: The open-card Overview (Back up now, Eject, latest restorable backup) was not exercised with a physical card; X4 Pro pages were not reviewed page by page.

CI Verification

Independent QA / Architecture Review

  • NOT RUN: No independent QA or architecture review was performed; all checks above are developer self-tests.

Required Pre-PR Validation

  • PASS: scripts/check_configuration_docs.py, worktree, staged and outgoing (origin/main..5d02cda, 80 revisions) publication audits; the pre-push all-history audit passed with 328 revisions.

Behavior & Compatibility

  • No storage, helper-protocol or backup format changes. Field descriptors gain an optional hidden flag that older app builds ignore.
  • Users no longer see the synthetic demo; maintainers launch with -InkKitScreenshotDemo YES to capture screenshots.
  • The published app screenshots in docs/screenshots.md show the previous layout and should be recaptured after this merges.

Risks, Limitations & Rollback

  • Section names and labels are editorial; where a label is shorter than the upstream one, the section supplies the context, and the configuration reference lists every storage key.
  • Reverting restores the previous layout and demo button; no card or backup data depends on this change.

Reviewer Focus

  • The page and section assignments in _PRESENTATION, especially button mappings moved from Device to Controls.
  • Hiding unsupported controls: hidden fields remain read-only in the backend and are never written.

Related Issues / Documentation

Settings pages appear only after a card is open. Button and shortcut
mappings move from Device to Controls, and every page is split into
sections such as Side buttons, Power button or Clock and date, with
labels that no longer come from storage keys. Review rows include the
section for short labels.

Controls for hardware the selected reader lacks are hidden; their stored
values stay preserved and read-only. Overview summarizes an open card
with Back up now, Eject and the latest restorable backup, and each
settings page opens at the top.

The synthetic demo is now a maintainer-only screenshot mode enabled with
the -InkKitScreenshotDemo launch argument. Storage keys, kinds, raw
values and validation are unchanged.
@gh-slee
gh-slee merged commit edd95a4 into main Nov 5, 2026
6 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.

1 participant