feat: improve Resume Conversation UX on mobile#77
Merged
Ark0N merged 1 commit intoArk0N:masterfrom Apr 28, 2026
Merged
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.
Ark0N
approved these changes
Apr 28, 2026
Owner
Ark0N
left a comment
There was a problem hiding this comment.
Reviewed and verified locally on a mobile viewport (iPhone 13):
- Typecheck + lint clean; CI green
- Helper functions handle all edge cases: longest-prefix-wins for nested cases, basename fallback, null/empty safety, both Linux
/home/<user>/and macOS/Users/<user>/normalized to~/ - Linked cases are picked up automatically since
/api/casesmerges them into the same{name, path}shape - Live UI: detail panel hidden by default, expand toggles
aria-expanded/expandedclass/visibility cleanly, collapse works, no console errors - The
[hidden]CSS override is the correct fix fordisplay: flexdefeating the HTMLhiddenattribute
Nice work — the 2-line title clamp + #caseName subtitle + collapsible detail panel makes the welcome list much more readable on narrow screens. Thank you!
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