Skip to content

feat(mobile): rebuild Home around what needs you, with actions pinned at the bottom - #36520

Merged
AmoabaKelvin merged 3 commits into
mainfrom
improve-mobile-landing-page
Oct 31, 2026
Merged

AmoabaKelvin merged 3 commits into
mainfrom
improve-mobile-landing-page

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​246 $\color{#cf222e}{\Huge{\mathbf{−}}}$​923 $\color{#cf222e}{\Huge{\mathbf{−}}}$​677
Prod 83 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1487 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9815 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8328

ELI5

The phone's Home screen opened on stats nobody came for ("agents spawned", "agent time") and a stack of look-alike cards. The buttons you actually use sat below the bottom of the screen. Home now opens on the agents that need you and your desktops, with Tasks and New workspace always at the bottom where your thumb is.

What Changed

  • Jump back in comes first. It lists agents waiting for input or that failed, then finished work you haven't seen, then running work (3 at most), then the workspace you last opened. Status words and dots match the workspace list ("Waiting for input", "Done", "Working"). Rows come from the worktree.ps list Home already reads. Agent states only come from a connected desktop's list read this session, never from the copy saved on the phone.
  • Desktops is one grouped list. Each row has a dot, the name and one status line, coloured like its dot (a warning used to read red next to an amber dot). The fix ("Check it's awake…", "Unlock your phone…") goes on its own wrapping line instead of being cut off. The ⋮ button is gone: long-press, or the VoiceOver action, opens the same menu. The connection path moved into the menu's header. "Pair a desktop" is the list's last row.
  • Bottom bar, pinned above the home indicator: Tasks and New workspace at equal width. With nothing connected they stay put, disabled, and say why. First run pins "Pair desktop" in the same spot.
  • Removed from Home: "Welcome back", the stats tiles, the account usage cards, the Tasks card with its tappable provider logos, and the Quick Actions tiles. So are the three requests only Home sent (stats.summary, accounts.list with accounts.subscribe, and the task-provider lookup), plus their RPC recordings. Usage stays on each desktop's Accounts screen.
  • Staying current: while Home is on screen, each desktop's runtime.clientEvents notices (sidebarInputsChanged, worktreesChanged, reposChanged) trigger a fresh read, at most one every 3 s per desktop. This replaces Home's accounts.subscribe stream.
  • No first-run flash: paired users no longer see the first-run screen while the paired-desktop list loads.
  • Settings › Mobile: the desktop's phone preview slide is redrawn to match.

Why

Most people open Home to get back to an agent that needs them, or to start something. Stats and per-provider usage bars answer neither question, and same-weight bordered cards gave no sense of what mattered or what you could tap. This follows the corner rules from #36437: 16 for groups, 12 for buttons.

Linked Issue

None. This is a maintainer change.

Visual Proof

The same phone paired to the same desktop, main on the left, this branch on the right:

Before (main) After
home-before.png home-after.png

More states. "Light" and "Nothing connected" render the real components with sample data, because blocked agents and offline desktops are hard to stage. "First run" is the real route on a fresh install.

Light Nothing connected First run Desktop Settings › Mobile
home-sample-light.png home-nothing-connected.png home-first-run.png desktop-home-slide.png

The round gear floating over the shots is the Expo dev client's tools button, not part of Home.

Testing

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Manual: iOS simulator (iPhone 18 Pro, iOS 27) running this branch's JS, paired to a real desktop, in light and dark. Not tested on Android or a physical phone.

  • New tests: the Jump back in order, the stale/offline cutoff, and the last-opened dedupe (home-jump-back-in.test.ts). The old host card's truthful-status tests move to MobileHomeDesktopRow.test.tsx, plus amber-not-red text and the long-press accessibility action.

  • RPC recordings: re-recorded with rpc:record --prune; the recording and bridged-parity suites pass.

  • Checks run locally: pnpm lint, pnpm tc, mobile typecheck:tests, check:code-quality:changed, check:react-doctor:changed, the mobile and desktop localization verifiers, and the focused Home tests. The full suite is left to CI.

AI Disclosure

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

  • Mobile only, plus the desktop preview slide. No host or protocol change. The client events and worktree.ps it uses already exist on current hosts.
  • Older desktops that don't send agent-status events stay current only on focus and reconnect, as Home behaved before.
  • Cost: removing three requests per desktop outweighs the throttled list re-reads, which only happen while Home is on screen.

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)
  • 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)

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent 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: 017eddae-da85-4f72-a3e4-f2cd71f59a0e
Commits

Reviewing files that changed from the base of the PR and between f055c0f and 854f995.

Files selected for processing: 14
  • mobile/src/home/use-mobile-home-data.ts
  • mobile/src/home/use-mobile-home-host-connections.ts
  • mobile/src/worktree/home-worktree-info.ts
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
Files with no reviewable changes: 10
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
Files skipped from review as they are similar to previous changes: 1
  • src/renderer/src/i18n/locales/en.json

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

Walkthrough

The mobile home screen now presents desktop rows, jump-back worktrees, and bottom actions for tasks and workspace creation. Worktree data includes attention entries that feed the jump-back selection. The update removes home statistics, account-usage, and task-provider data paths and their RPC recording fixtures. The renderer’s HomeSlide mock and localized strings are updated to match the revised layout.

Merge Risk: Low · up to 854f9

Reconnecting may briefly show old agent statuses. The change is mergeable with awareness of this risk.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 20.83% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: rebuilding the mobile Home screen around actionable work and pinning actions at the bottom.
Description check Passed The description follows the required template and covers the user-facing changes, implementation approach, rationale, visual proof, testing, scope, known limitations, and checklist. The missing issue …
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: Description check

Explanation

The description follows the required template and covers the user-facing changes, implementation approach, rationale, visual proof, testing, scope, known limitations, and checklist. The missing issue link is explained by the maintainer exception, and the stated test coverage and CI handoff are sufficiently clear.

Full details: Docstring Coverage

Explanation

Docstring coverage is 20.83% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 24 functions across 26 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • 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: b59b629d-647e-4cdd-85d4-9eaf74d0fa3d
Commits

Reviewing files that changed from the base of the PR and between c282cb9 and 47251d3.

Files selected for processing: 94
  • config/flaky-test-pattern-baseline.txt
  • config/scripts/locale-ko-key-overrides.json
  • mobile/rpc-foundation/goldens/home-host-accounts.json
  • mobile/rpc-foundation/goldens/home-host-stats.json
  • mobile/rpc-foundation/goldens/matrix-home.host-accounts-accounts.list-1.json
  • mobile/rpc-foundation/goldens/matrix-home.host-stats-stats.summary-1.json
  • mobile/rpc-foundation/goldens/matrix-settings.home-providers-linear.status-1.json
  • mobile/rpc-foundation/goldens/matrix-settings.home-providers-preflight.check-1.json
  • mobile/rpc-foundation/goldens/matrix-settings.home-providers-settings.get-1.json
  • mobile/rpc-foundation/goldens/matrix-worktree.home-catalog-worktree.ps-1.json
  • mobile/rpc-foundation/goldens/schedules-settings-home-providers-fulfilled.json
  • mobile/rpc-foundation/goldens/settings-home-coalesced.json
  • mobile/rpc-foundation/goldens/settings-home-providers-fulfilled.json
  • mobile/rpc-foundation/goldens/settings-home-providers-refuse-after-data.json
  • mobile/rpc-foundation/goldens/settings-home-providers-refused.json
  • mobile/rpc-foundation/goldens/settings-home-providers-transport-error.json
  • mobile/rpc-foundation/goldens/worktree-home-catalog.json
  • mobile/rpc-foundation/pilot-scenarios.json
  • mobile/rpc-foundation/settings-recording-coverage.json
  • mobile/src/accounts/use-open-mobile-accounts.ts
  • mobile/src/cache/home-snapshot-cache.ts
  • mobile/src/components/AgentSpinner.tsx
  • mobile/src/components/MobileHomeQuickActions.test.ts
  • mobile/src/components/MobileHomeQuickActions.tsx
  • mobile/src/components/MobileHostCard-truthful-status.test.tsx
  • mobile/src/components/MobileHostCard.test.ts
  • mobile/src/components/MobileHostCard.tsx
  • mobile/src/home/AppUpdateCard.tsx
  • mobile/src/home/MobileHomeAccountUsageCards.tsx
  • mobile/src/home/MobileHomeAppUpdateCard.tsx
  • mobile/src/home/MobileHomeBottomBar.tsx
  • mobile/src/home/MobileHomeDesktopRow.test.tsx
  • mobile/src/home/MobileHomeDesktopRow.tsx
  • mobile/src/home/MobileHomeEmptyState.tsx
  • mobile/src/home/MobileHomeHostList.tsx
  • mobile/src/home/MobileHomeJumpBackIn.tsx
  • mobile/src/home/MobileHomeListFooter.test.tsx
  • mobile/src/home/MobileHomeListFooter.tsx
  • mobile/src/home/MobileHomeListHeader.tsx
  • mobile/src/home/MobileHomeResumeCard.tsx
  • mobile/src/home/MobileHomeScreen.tsx
  • mobile/src/home/MobileHomeTasksCard.tsx
  • mobile/src/home/MobileHomeTopBar.tsx
  • mobile/src/home/home-host-reply-schema.test.ts
  • mobile/src/home/home-host-reply-schema.ts
  • mobile/src/home/home-list-styles.ts
  • mobile/src/home/mobile-home-host-operations.ts
  • mobile/src/home/mobile-home-host-requests.ts
  • mobile/src/home/use-mobile-home-data.ts
  • mobile/src/home/use-mobile-home-host-connections.ts
  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json
  • mobile/src/stats/home-stats-total.test.ts
  • mobile/src/stats/home-stats-total.ts
  • mobile/src/test-support/bridged-parity/divergence-classes.test.ts
  • mobile/src/test-support/bridged-parity/divergence-classes.ts
  • mobile/src/test-support/rpc-recording/README.md
  • mobile/src/test-support/rpc-recording/adapters/home-accounts-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/host-screen-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/mounted-operation-modules.ts
  • mobile/src/test-support/rpc-recording/adapters/settings-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/derived-goldens.ts
  • mobile/src/test-support/rpc-recording/mutants/operation-mutations.ts
  • mobile/src/test-support/rpc-recording/mutants/pilot-mutants.test.ts
  • mobile/src/worktree/home-host-worktree-fetch.test.ts
  • mobile/src/worktree/home-host-worktree-fetch.ts
  • mobile/src/worktree/home-jump-back-in.test.ts
  • mobile/src/worktree/home-jump-back-in.ts
  • mobile/src/worktree/home-resume-card.ts
  • mobile/src/worktree/home-worktree-info.ts
  • mobile/src/worktree/workspace-list-ordering.ts
  • src/renderer/src/assets/mobile-page.css
  • src/renderer/src/components/mobile/slides/HomeSlide.fixture.tsx
  • src/renderer/src/components/mobile/slides/HomeSlide.tsx
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
Files with no reviewable changes: 51
  • mobile/rpc-foundation/goldens/settings-home-coalesced.json
  • mobile/src/components/MobileHostCard-truthful-status.test.tsx
  • mobile/rpc-foundation/goldens/home-host-stats.json
  • mobile/rpc-foundation/goldens/matrix-home.host-stats-stats.summary-1.json
  • mobile/src/components/MobileHostCard.test.ts
  • mobile/src/components/MobileHomeQuickActions.tsx
  • mobile/rpc-foundation/settings-recording-coverage.json
  • mobile/rpc-foundation/goldens/matrix-settings.home-providers-linear.status-1.json
  • mobile/rpc-foundation/goldens/settings-home-providers-refused.json
  • mobile/rpc-foundation/goldens/matrix-settings.home-providers-settings.get-1.json
  • mobile/rpc-foundation/goldens/settings-home-providers-refuse-after-data.json
  • mobile/rpc-foundation/goldens/home-host-accounts.json
  • mobile/rpc-foundation/goldens/schedules-settings-home-providers-fulfilled.json
  • mobile/src/home/MobileHomeListFooter.test.tsx
  • mobile/rpc-foundation/goldens/matrix-settings.home-providers-preflight.check-1.json
  • mobile/rpc-foundation/goldens/matrix-home.host-accounts-accounts.list-1.json
  • mobile/src/home/MobileHomeListHeader.tsx
  • mobile/src/home/MobileHomeAccountUsageCards.tsx
  • mobile/rpc-foundation/goldens/settings-home-providers-fulfilled.json
  • mobile/src/components/MobileHostCard.tsx
  • mobile/src/home/MobileHomeTasksCard.tsx
  • mobile/src/components/MobileHomeQuickActions.test.ts
  • mobile/src/accounts/use-open-mobile-accounts.ts
  • config/scripts/locale-ko-key-overrides.json
  • mobile/src/test-support/rpc-recording/adapters/mounted-operation-modules.ts
  • mobile/src/home/MobileHomeListFooter.tsx
  • mobile/src/test-support/rpc-recording/derived-goldens.ts
  • mobile/src/home/home-host-reply-schema.test.ts
  • mobile/src/home/MobileHomeResumeCard.tsx
  • mobile/src/stats/home-stats-total.test.ts
  • mobile/src/home/mobile-home-host-requests.ts
  • mobile/src/home/home-host-reply-schema.ts
  • mobile/rpc-foundation/goldens/settings-home-providers-transport-error.json
  • mobile/src/test-support/rpc-recording/adapters/settings-mount-adapters.ts
  • mobile/src/stats/home-stats-total.ts
  • mobile/src/test-support/rpc-recording/mutants/pilot-mutants.test.ts
  • mobile/src/test-support/rpc-recording/adapters/host-screen-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/home-accounts-mount-adapters.ts
  • mobile/src/home/mobile-home-host-operations.ts
  • mobile/src/test-support/rpc-recording/mutants/operation-mutations.ts
  • mobile/rpc-foundation/pilot-scenarios.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ru.json

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

Comment thread config/flaky-test-pattern-baseline.txt Resolved
Comment thread mobile/src/home/use-mobile-home-data.ts Resolved
Comment thread mobile/src/home/use-mobile-home-data.ts Resolved

@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: 2


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: 86a8cbbb-cfb9-48e9-89b6-91119eef58ff
Commits

Reviewing files that changed from the base of the PR and between 47251d3 and f055c0f.

Files selected for processing: 6
  • config/flaky-test-pattern-baseline.txt
  • mobile/src/home/MobileHomeJumpBackIn.tsx
  • mobile/src/home/MobileHomeScreen.tsx
  • mobile/src/home/use-mobile-home-data.ts
  • mobile/src/worktree/home-jump-back-in.test.ts
  • mobile/src/worktree/home-jump-back-in.ts
Files with no reviewable changes: 1
  • mobile/src/home/MobileHomeScreen.tsx

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

Comment thread config/flaky-test-pattern-baseline.txt Resolved
… at the bottom

Home led with stats and a stack of same-weight cards, and its actions sat
below the fold. It now shows "Jump back in" (agents waiting for input, unseen
finished work, running work, then the last-opened workspace), one grouped
Desktops list, and Tasks / New workspace pinned above the home indicator.

- Drop the stats tiles, account usage cards, Tasks card logos and quick-action
  tiles, plus the stats.summary, accounts and task-provider requests that only
  Home sent.
- Desktop rows: one status line coloured like its dot, the fix on its own
  wrapping line, long-press for the menu (path and endpoint in its header).
- Keep Jump back in current with runtime client events while Home is focused,
  at most one list read per desktop every 3 s; agent states from offline or
  stale lists are never shown.
- First run pins Pair desktop in the same spot; paired users no longer see
  first-run while the catalog loads.
- Redraw the desktop Settings > Mobile Home slide to match.
…icking

A failed host catalog read replaced the list with [], so a refresh error
dropped every desktop and showed first-run. It now keeps what was shown.

Relative times in Jump back in froze while Home stayed open; they now tick
with useNow. Agent states are no longer restored from the saved snapshot, so
the 10-minute age cutoff that guarded against that goes away and accurate
rows no longer drop out after ten quiet minutes.

The flaky-test baseline now only drops the two deleted host-card entries.
After a reconnect, Jump back in showed the agent states from before the
drop until the reconnect read landed. Leaving 'connected' now clears them,
and only a fresh list read can show them again. The saved-snapshot strip
uses the same helper.

The flaky-test baseline is rebuilt from current main, minus only the two
deleted host-card tests.
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