Skip to content

#798 Show project and worktree on separate lines in Home rows - #800

Merged
ivanfenenko merged 1 commit into
mainfrom
feature/798-home-row-project-worktree-lines
Oct 23, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
feature/798-home-row-project-worktree-lines

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Git-project session rows on Home have three lines: title, project name (folder icon), then the worktree line (branch icon, plus the worktree folder when it is not the main checkout) in a quieter tone.
  • Same shape in every scope, so the list has one row rhythm. Each line truncates on its own, so a long project name never hides the branch.
  • Non-git projects keep today's two-line path row. Badge, title, time and status pill are unchanged.
  • Design system: OpenCodeListItem gains an optional detail line (detailSegments) and a tertiary subtitle tone on iOS and Android. Both component galleries show it, including long names.
  • iOS rows now carry the project name and the worktree line separately, like Android, so the per-scope subtitle plumbing is gone on both platforms.

Chosen from prototype variant C (prototypes/session-row-project-worktree/).

Checks

  • iOS: xcodebuild test on OpenCode MobileTests passed (2599 tests).
  • Android: :app:assembleDebug passed; session list and Home row unit tests passed (CrossProjectSessionListSessionsTest, HomeWorktreesPresentationTest, SessionList*, SessionListHomeChromeTest).
  • iOS app against a local opencode v1 server with real sessions: rows render as designed.
  • Android Component Gallery on the Pixel_9a emulator: detail line renders, long names truncate per line.
  • New unit tests on both platforms: main checkout, worktree, detached checkout, non-git project, missing project name.

Issue

Risks / Follow-ups

  • Git-project rows are about 17pt taller, so fewer sessions fit per screen.
  • Not checked against a v2 server or a live Android Home; the row code is protocol-independent.
  • ktlint and lint were not run locally (CI soft-fails them).

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need.

Git-project session rows on Home now show the project name (folder icon)
on the subtitle line and the worktree (branch, then folder) on a new
detail line, in every scope. Each line truncates on its own, so long
project names no longer hide the branch. Non-git rows keep the path.

The list item component gains an optional detail line and a tertiary
subtitle tone on iOS and Android, with gallery examples.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko
ivanfenenko marked this pull request as ready for review October 23, 2026 11:24
@ivanfenenko
ivanfenenko merged commit 9a33ff5 into main Oct 23, 2026
4 checks passed
@ivanfenenko
ivanfenenko deleted the feature/798-home-row-project-worktree-lines branch October 23, 2026 13:50
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