feat: improve Resume Conversation UX on mobile#77
Open
TeigenZhang wants to merge 1 commit intoArk0N:masterfrom
Open
feat: improve Resume Conversation UX on mobile#77TeigenZhang wants to merge 1 commit intoArk0N:masterfrom
TeigenZhang wants to merge 1 commit intoArk0N:masterfrom
Conversation
Default layout was a single nowrap row with path + date + size, which on narrow screens truncated both the first prompt and the directory suffix (where project names actually live). The /Users/ home shorthand was also never applied on macOS. Changes: - Title now uses 2-line clamp so more of the first prompt is visible. - Subtitle resolves workingDir against known cases: exact match shows "#caseName", subpath shows "#caseName/sub", otherwise falls back to basename. Case labels are styled distinctly. - Normalize both /home/<user>/ and /Users/<user>/ prefixes to "~/". - Each history item gets a "..." toggle that expands an in-place detail panel with the full prompt, full path, timestamp, size, and short session id. Collapses back on second click; clicking the card body still triggers resume.
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.
Summary
On narrow screens the Resume Conversation list on the welcome page was hard to scan: the first prompt was clipped almost immediately by a single-line layout, and the working-dir subtitle was truncated at the end — exactly where the identifying project name lives. The
~/shorthand also never fired on macOS because only/home/was handled.This PR reworks the history item layout without changing the API:
#caseName, subpaths as#caseName/sub, otherwise it falls back to the directory basename.#labels are styled in accent blue./home/<user>/and/Users/<user>/to~/so macOS paths are collapsed.⋯button that expands an in-place panel with the full prompt, full path, timestamp, size, and short session id. Click again to collapse. Clicking the card body still triggers resume; the toggle usesstopPropagationto avoid accidental resume. The chevron rotates 90° in the expanded state.Also fixes a small CSS bug where
.history-item-detailuseddisplay: flexand therefore defeated the HTMLhiddenattribute's defaultdisplay: none— an explicit[hidden]override was added.Test plan
#caselabel when a case matches, basename otherwise.⋯→ panel expands with full prompt/path/meta. Click again → collapses./Users/<me>/...paths display as~/...in the detail panel.npm run buildsucceeds; assets rehash cleanly.🤖 Generated with Claude Code