Skip to content

feat(mobile): flat projects list with stronger project headers and agent detail lines - #47274

Closed
AmoabaKelvin wants to merge 1 commit into
mainfrom
mobile-projects-list-flat
Closed

AmoabaKelvin wants to merge 1 commit into
mainfrom
mobile-projects-list-flat

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

The list of projects and workspaces on a computer's page in the phone app looked unfinished: project names were smaller and greyer than the workspaces under them, every workspace was bold, and a bare number on the right looked like an unread count. This makes the project the strongest line and gives each workspace a short line saying what is going on in it.

Files Added Deleted Net
Test 0 0 0 0
Prod 18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​441 $\color{#cf222e}{\Huge{\mathbf{−}}}$​363 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​78

What Changed

  • Project headers (group by Project; Status and PR grouping use the same style): the repo icon, the name at 15/600 in the primary colour, a count, a chevron on the right, and a hairline underneath. The whole header folds the project and is at least 44 pt tall. Long names cut off on one line instead of wrapping.
  • Workspace rows stay a flat list.
    • The title is 16 pt regular, bold only when unread.
    • The repo's main checkout is greyed, with "Default branch" under it.
    • The workspace open on the desktop gets a small monitor glyph instead of the left bar and fill.
    • The latest agent time sits at the right of the title line.
  • Detail line:
    • One agent: "Claude finished · 2 terminals".
    • Several agents: "N agents", then one tappable line each (logo, name, coloured state, time).
    • No agents: "N terminals" instead of the bare trailing number.
  • The unlabeled summary pill of dots and logos is gone (WorktreeAgentSummary.tsx deleted).
  • The empty section at the top no longer says "No … yet."; its header and + stay, because that + is the only way to create one from this screen.

Why

The host screen was the one big list that didn't read like Home and the Agents tab, and users reported it as unpolished. Kelvin reviewed two layouts, grouped cards and flat, and picked the flat one.

Linked Issue

None. This came from polish reports, and there's no tracked issue.

Visual Proof

Shot on an Android emulator: release app 0.0.68 loading this branch's phone page from a scratch desktop. Before = main.

projects

Testing

  • I manually tested these changes locally. Android emulator, dark and light, with real Claude terminals in finished and waiting states, two agents in one workspace, main checkouts, and folded projects.
  • Automated tests added/updated, or explained why not below. UI-only; no new tests, per the repo's test policy.
  • Every added test fails without this change and avoids the test anti-patterns

pnpm check:changed passes, and so does pnpm run build:mobile-web (size fences). Not run on the iOS simulator; the page is the same react-native-web bundle on both.

Performance

None. The rows read the same agent and terminal data as before, and the clock tick is still limited to rows that show agent times.

Risk

The riskiest part is the agent lines: "Full list" mode, lineage disclosure and subagent rows were restyled, not rewritten, but a missed case would show up as a missing or misaligned agent line on the host list. Old paired desktops send the same fields. A plain revert backs it out.

Level: Low

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…l lines

Project headers lead with icon, name and count over a hairline; rows show 16 pt titles, a detail line (agent state, terminals, Default branch) and one tappable line per agent. The open-on-desktop row gets a monitor mark instead of a fill, and the empty section drops its placeholder line.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

Worktree agent lists now render individual agent rows, with message, state, and phrase layouts. Collapsed lists show up to three roots before a show-more control. Worktree rows display terminal details, latest agent activity, and an indicator for active worktrees. Host and bot section headers use updated layouts and first-section styling. Bot sections no longer show the “No bots yet.” end line.

Merge Risk: Low · up to 8323f

The mobile workspace list can omit some detail users expect: an unread indicator for hidden agents, the terminal count for multi-agent workspaces, and the Default branch label on main checkouts with agents. These are cosmetic and informational gaps and do not block usage. They are worth fixing before merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(mobile): flat projects list with stronger project headers and agent detail lines" matches the main change. The raw summary and objectives show a flat project/workspace list, restyled p…
Description check Passed The description follows the repository template closely. It has ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, Agent skill upstream boundary, N…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(mobile): flat projects list with stronger project headers and agent detail lines" matches the main change. The raw summary and objectives show a flat project/workspace list, restyled project headers, and agent or terminal detail lines in workspace rows, plus removal of the summary pill. The title is specific and follows a conventional commit style. It is slightly long (85 characters), but it is still clear.

Full details: Description check

Explanation

The description follows the repository template closely. It has ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. It explains the before and after for users, the mechanism, the reasoning behind the design, and the risk and rollback plan. The Visual Proof section links a before and after clip, and the Performance section states a reason. Minor gaps: the Linked Issue section says there is no issue, which the template calls for only for outside contributors, and the Risk section does not name a level in the template's required form beyond 'Low'. The 'Fixes #' line was removed, and the AI Disclosure section was left empty, which the template allows for internal contributors. The Level field is filled in. Overall the description is mostly complete.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 210967b1-2241-4afe-b2a5-d59bb76391db
Commits

Reviewing files that changed from the base of the PR and between 6a2ce8f and 8323f7e.

Files selected for processing: 18

  • mobile/src/agents/presentation/AgentStateDot.tsx
  • mobile/src/bots/MobileBotsSectionHeader.tsx
  • mobile/src/bots/host-bot-sections.ts
  • mobile/src/bots/use-mobile-bots-list-parts.tsx
  • mobile/src/host-screen/host-screen-secondary-styles.ts
  • mobile/src/host-screen/workspace-list/host-pending-creation-row.tsx
  • mobile/src/host-screen/workspace-list/host-section-header.tsx
  • mobile/src/host-screen/workspace-list/host-workspace-list.tsx
  • mobile/src/i18n/en-runtime-required.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/worktree/agent-lineage/agent-row-display.ts
  • mobile/src/worktree/agent-lineage/presentation/WorktreeAgentLatestTime.tsx
  • mobile/src/worktree/agent-lineage/presentation/WorktreeAgentList.tsx
  • mobile/src/worktree/agent-lineage/presentation/WorktreeAgentRow.tsx
  • mobile/src/worktree/agent-lineage/presentation/WorktreeAgentSummary.tsx
  • mobile/src/worktree/row-presentation/WorktreeListRow.tsx
  • mobile/src/worktree/row-presentation/worktree-list-row-layout.ts
  • mobile/src/worktree/row-presentation/worktree-list-row-styles.ts
Files with no reviewable changes: 1

  • mobile/src/worktree/agent-lineage/presentation/WorktreeAgentSummary.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

const moreLabel = t('components.worktreeAgentList.showMoreAgents', 'Show {{count}} more', {
count: hidden
})
const hidesUnreadRoot = folded && hidesUnreadAgent(roots.slice(shown.length).map((n) => n.row))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Include descendants in the hidden-agent unread indicator.

With four read roots and an unread agent child under the fourth root, folding hides both the root and its child. This check examines only root rows. The Show more control therefore has no unread bell or unread accessibility label.

Include each hidden root's descendants in this check. Reuse the recursive unread handling already used for collapsed parents. Keep the existing hidden-root unread check.

onAgentPress={onAgentPress ? (paneKey) => onAgentPress(item, paneKey) : undefined}
onAgentLongPress={openActions}
fullList={agentActivityDisplayMode === 'full'}
terminals={terminals}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Keep the terminal count when a workspace has multiple root agents.

When roots.length > 1, the detail line shows only the agent count. The terminals label that the row passes in is discarded, so a workspace with two agents and three terminals shows "2 agents" and no terminal count. The single-agent branch still shows the terminal count. The multi-agent branch must also show the terminal count beside or below the title, as the PR requires.

fullList={agentActivityDisplayMode === 'full'}
terminals={terminals}
/>
) : detail ? (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Functional Correctness · Quick win

Keep the default-branch label when agents are visible.

If a main checkout has agents and cardDetails.inlineAgents is enabled, showAgents selects WorktreeAgentList. This skips detail, which contains “Default branch.” The agent list receives neither this label nor item.isMainWorktree.

Render the default-branch label independently of the agent-list fallback. Keep the label visible for main checkouts without agents too. The PR objectives require this label on main checkouts.

@AmoabaKelvin

Copy link
Copy Markdown
Collaborator Author

Replaced by #48649 (one line per workspace in project groups, the denser option A).

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