Skip to content

docs(design): choice cards in a reply; git-history row layout - #1608

Merged
huichen merged 4 commits into
mainfrom
pr/huichen
Nov 14, 2026
Merged

huichen merged 4 commits into
mainfrom
pr/huichen

Conversation

@huichen

@huichen huichen commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

This PR lands the finished work sitting on dev-huichen: a design document for choice cards in a reply (with real-interface screenshots from the desktop and phone UI), and a fix to the Git history list so the commit dot sits on the line it belongs to.

Commits

  • docs(design): choice cards in a reply, with real-interface samples
  • feat(git-history): put the commit dot on the subject line, name the author first

Verification

Run locally on dev-huichen@437109c06 before opening this PR:

  • npx tsc --noEmit (desktop) → clean
  • npx eslint src/features/git-history/*.tsx (desktop) → clean
  • npx vitest run src/features/git-history/GitHistoryPanel.test.tsx → 9 passed
  • npx tsc --noEmit (mobile) → clean
  • npx eslint src/features/chat/components/GitGraphPanel.tsx src/features/chat/__tests__/GitGraphPanel.test.ts (mobile) → clean
  • npx jest src/features/chat/__tests__/GitGraphPanel.test.ts (mobile) → 11 passed
  • npx vitest run packages/git-graph/src/index.test.ts → 20 passed

No Rust crates are touched, so no cargo checks were run; CI is the backstop for the full matrix.

User-visible changes

  • Git history rows: where the commit dot is drawn — before, the dot and its lane horizontals were drawn at the vertical middle of a two-line row, which is the gap between the subject and the metadata line, so the dot sat beside neither. After, they follow the centre of the subject line, and threads still run the row's full height. Affects the desktop Git history panel and the phone chat Git-history sheet. Revert 2bc32ff71.
  • Git history metadata order — before the row read <short hash> · <author> · <when>; after it reads <author> · <short hash> · <when>, and the detail/patch panes follow the same order so a commit reads the same in the list and in its patch. The hash stays in its own selectable span. Revert 2bc32ff71.

Notes

The other commit is documentation only (docs/design/choice-cards.md and its Chinese variant, plus screenshots under docs/design/assets/choice-cards/ and the capture scripts under scripts/screenshots/); it changes no runtime behaviour.

…uthor first

A commit row stacks a subject and a metadata line, so the row's middle is the
gap between them: a dot drawn there sat beside neither line. The picture now
takes the axis the dot and its horizontals belong on, and both panels pass the
centre of the first line. Threads still run the row's full height, which is
what keeps the picture continuous across rows.

The metadata line also led with the hash; it now reads who made the commit,
then its hash, then when, with the hash kept in its own selectable span. The
detail panes follow the same order, so a commit reads the same in the list and
in its patch.
A reply can only be read today; picking a next step means typing a paragraph.
This design adds a `futureos-choice` fence the model appends to its reply, a
card that shows it, and — the part that actually matters — an answer that lives
in the composer draft, so it can be left empty, changed, combined with typed
text, or sent on its own.

The samples are DOM prototypes injected into the real desktop/mobile/remote
interface (real tokens, type scale, column width), captured through the
screenshot harness under scripts/screenshots/scenarios.d/choice-cards.json so
every frame can be re-run. No product code changes.
@huichen
huichen enabled auto-merge (squash) November 14, 2026 08:17
@huichen
huichen merged commit 23cc5fe into main Nov 14, 2026
14 checks passed
@huichen
huichen deleted the pr/huichen branch November 14, 2026 08:36
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