Repository navigation
docs(design): choice cards in a reply; git-history row layout - #1608
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Verification
Run locally on
dev-huichen@437109c06before opening this PR:npx tsc --noEmit(desktop) → cleannpx eslint src/features/git-history/*.tsx(desktop) → cleannpx vitest run src/features/git-history/GitHistoryPanel.test.tsx→ 9 passednpx tsc --noEmit(mobile) → cleannpx eslint src/features/chat/components/GitGraphPanel.tsx src/features/chat/__tests__/GitGraphPanel.test.ts(mobile) → cleannpx jest src/features/chat/__tests__/GitGraphPanel.test.ts(mobile) → 11 passednpx vitest run packages/git-graph/src/index.test.ts→ 20 passedNo Rust crates are touched, so no cargo checks were run; CI is the backstop for the full matrix.
User-visible changes
2bc32ff71.<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. Revert2bc32ff71.Notes
The other commit is documentation only (
docs/design/choice-cards.mdand its Chinese variant, plus screenshots underdocs/design/assets/choice-cards/and the capture scripts underscripts/screenshots/); it changes no runtime behaviour.