Skip to content

feat(mobile): split Home into Feed, Usage, Automations and Settings tabs - #38206

Merged
AmoabaKelvin merged 19 commits into
mainfrom
mobile-home-tabs
Nov 4, 2026
Merged

AmoabaKelvin merged 19 commits into
mainfrom
mobile-home-tabs

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

The phone app's Home is now four tabs along the bottom: Feed, Usage, Automations and Settings. This also brings in the mobile feedback fixes from #37959, which this PR replaces. It's the code that shipped as iOS 0.0.63 and Android 0.0.63, plus two small Feed tweaks made since then.

Files Added Deleted Net
Test 20 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​641 $\color{#cf222e}{\Huge{\mathbf{−}}}$​987 $\color{#cf222e}{\Huge{\mathbf{−}}}$​346
Prod 91 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3927 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1501 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2426

What Changed

Home tabs

  • Feed:
    • Agents, with needs-you rows first: 5 are shown, then "Show all N".
    • Desktops, each a two-line row with the machine tile and an amber needs-you count.
    • The Tasks row.
    • A + button for a new workspace.
    • The Feed tab's badge counts the agents that need you.
  • Usage:
    • A desktop picker.
    • Your stats.
    • Claude Code and Codex accounts, each with 5h and 7d bars and reset times.
    • Refresh, top right.
  • Automations:
    • A desktop picker.
    • Scheduled automations with on/off switches and next-run times.
    • Recent runs.
    • + opens the Automations page straight on a new automation, through a new new=1 route param.
  • Settings: the same menu as before, shown as a tab (SettingsMenuSections is shared with the Settings screen).
  • Motion: the tab icons react to presses, the badge pops in, + scales between tabs, agent rows glide when they reorder, and the usage bars fill. All of it follows reduce-motion, and switching tabs is instant.
  • Removed: Arrange Home, the old top and bottom bars, and the Home account usage list, since tabs replace them.
  • Smaller changes:
    • The accent blue is a touch darker.
    • The Feed is denser: smaller tiles and type, two-line desktop rows, no duplicate Tasks heading.
    • Desktop rows no longer prefix older counts with "Last known:".

From #37959: bug fixes

From #37959: desktops and hosts

  • Machine kind: a new optional hostMachine field on status.get. macOS gets it from system_profiler, Windows from one PowerShell CIM query and Linux from DMI files. Older desktops show only the OS.
  • The host screen's ⋯ menu gains Edit host and Network diagnostics.
  • Edit host moves onto the standard compact bar and gains Remove host.
  • Automations uses the standard bar.

Release: mobile/app.json goes to 0.0.63 / versionCode 27, matching the published builds.

Why

Home had grown into one long scroll of unrelated sections. Tabs let each part (getting back to agents, usage, automations, settings) have its own screen without pushing the others down. The fixes come from user feedback on the first mobile release.

Linked Issue

Fixes #37642

Visual Proof

All screenshots are from an iOS simulator running this branch, paired to headless desktops built from it. The "before" is main's single-scroll Home, which has no tabs.

Feed Usage Automations New automation (+) Settings

#37959 has screenshots of the fixes and the host screens.

Testing

  • I manually tested these changes locally

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

  • On the iOS simulator, against two paired headless desktops:

    • every tab, and the desktop picker on Usage and Automations
    • an automation's on/off switch
    • + on Feed and on Automations
    • swiping back from a pushed screen, which keeps the tab
  • iOS 0.0.63 went through TestFlight and is published.

  • After rebasing onto main, mobile typecheck passes. Before the rebase, the home tests, typecheck:tests, oxlint, anti-slop and the changed-code gate passed.

  • Tests: new home-usage-cards and automation-next-run-label tests. The Tasks section and agent row tests are updated. Main had deleted some of the test files these commits edit, and those stay deleted.

Risk

Level: Medium

Home is the first screen, so a crash here blocks the app. The tabs only read data Home already loaded, and the Automations + uses a new optional route param that older desktops ignore. Removing Arrange Home drops the saved orca:homeLayout key, and nothing reads it now. Back it out with a plain revert.

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

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)

@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The mobile home screen now has Feed, Usage, Automations, and Settings tabs, with per-host account snapshots and statistics. Automation routes support opening directly in the editor, and the host edit screen supports host removal. Runtime status can report machine kind and model data for mobile display. Session title-card state is now managed locally. Shared mobile components, localization, theme colors, and app metadata also change.

Fixed issue severity: Medium

Severity of issue fixed: Medium

Merge Risk: Low · up to 64292

The Home tabs change is mostly sound. Several small issues remain open: the Usage tab can spin indefinitely when the account stream fails, host removal can be repeated or overlap with a save, the Pair a desktop label has slightly low contrast, and the usage card does not announce its meter values to screen readers. None of these blocks use of the app, but they are worth fixing.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Out of Scope Changes check Warning The directly linked issue [#37642] covers repository identification in mobile Home work rows. The pull request also adds the four-tab Home redesign, Usage and Automations features, account streaming a… Keep the [#37642] row-identification change, required Home wiring, and focused tests in this pull request. Move the tab redesign, #37959 fixes, host-machine and host-screen changes, session changes, styling and localization changes, and rel…
Docstring Coverage Warning Docstring coverage is 41.51% 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: 3 passed
Check name Status Explanation
Title check Passed The title "feat(mobile): split Home into Feed, Usage, Automations and Settings tabs" matches the main change in the changeset. The raw summary shows MobileHomeScreen replaced with Feed, Usage, Automat…
Description check Passed The description follows the template's main sections: ELI5, What Changed, Why, Linked Issue (Fixes #37642), Visual Proof (screenshots for each tab), Testing, Risk (Level: Medium with a backout plan), …
Linked Issues check Passed Issue [#37642] requires mobile Home work rows to identify the project or repository, with branch and host details available. MobileHomeJumpBackIn now builds row text from workspace and repository da…
Full details: Title check

Explanation

The title "feat(mobile): split Home into Feed, Usage, Automations and Settings tabs" matches the main change in the changeset. The raw summary shows MobileHomeScreen replaced with Feed, Usage, Automations, and Settings tabs, plus new tab components (MobileHomeFeedTab, MobileHomeUsageTab, MobileHomeAutomationsTab, MobileHomeSettingsTab, MobileHomeTabBar). The title is short, specific, and uses a conventional-commit style. The title does not mention the secondary changes, such as host-machine detection, host edit removal, or the Arrange Home removal, but the task does not require full coverage.

Full details: Description check

Explanation

The description follows the template's main sections: ELI5, What Changed, Why, Linked Issue (Fixes #37642), Visual Proof (screenshots for each tab), Testing, Risk (Level: Medium with a backout plan), Notes, and Checklist. The Visual Proof section includes a before/after explanation and five screenshots. Several template items remain unchecked or unfilled: the AI Disclosure section is empty, the Review section has no content, and the lint, typecheck, test, and build checklist item is unchecked. The description also covers a large amount of work, including the bundled #37959 fixes, which conflicts with the template's 'keep scope tight' guidance. The 'Visual Proof' section shows a 'before' only as a text description, not as an attached image. These gaps are minor relative to the overall completeness, so the check passes.

Full details: Linked Issues check

Explanation

Issue [#37642] requires mobile Home work rows to identify the project or repository, with branch and host details available. MobileHomeJumpBackIn now builds row text from workspace and repository data and adds the desktop name when multiple hosts exist. Its accessibility labels use the same location data. MobileHomeJumpBackIn.test.tsx covers repository and desktop labels.

Full details: Out of Scope Changes check

Explanation

The directly linked issue [#37642] covers repository identification in mobile Home work rows. The pull request also adds the four-tab Home redesign, Usage and Automations features, account streaming and statistics, host-machine detection, host editing and diagnostics, session-card behavior changes, sheet changes, localization, theme changes, and a release version bump. The description identifies several of these changes as work from #37959 or release work. These changes are not required by [#37642].

Resolution

Keep the [#37642] row-identification change, required Home wiring, and focused tests in this pull request. Move the tab redesign, #37959 fixes, host-machine and host-screen changes, session changes, styling and localization changes, and release version changes to separate pull requests. Update the description and linked issues to match the retained scope.

Full details: Docstring Coverage

Explanation

Docstring coverage is 41.51% 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 53 functions across 53 files.

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
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: 40e96729-c287-4ea5-834c-19673ad9bc8b
Commits

Reviewing files that changed from the base of the PR and between 560bc21 and 64292f0.

Files selected for processing: 2
  • mobile/src/home/tabs/MobileHomeUsageTab.tsx
  • mobile/src/home/tabs/home-usage-cards.test.ts

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

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

Nitpick comments: 1
mobile/src/session/use-session-title-card.ts: 1

27-38: Trivial · Performance & Scalability · Quick win

Return the same state from close when nothing is open or pending.

The close case returns a new object on every call. This happens even when request is already null and visual is not open. React only skips a render when the reducer returns the identical state object.

dismiss() runs in a layout effect on mount and on every geometry or obscured change. onAnchorLayout calls it on every title layout event. Each call re-renders MobileSessionSurface for no state change. Return state when there is nothing to close.

♻️ Proposed fix
       return visual?.target === 1
         ? {
             ...state,
             request: null,
             serial: serial + 1,
             visual: { ...visual, target: 0, motion: serial + 1 }
           }
-        : { ...state, request: null }
+        : request === null
+          ? state
+          : { ...state, request: null }
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: ca34f25d-3903-44a7-a2be-ca876a9bec31
Commits

Reviewing files that changed from the base of the PR and between a19de98 and a26d4e8.

Files selected for processing: 108
  • mobile/app.json
  • mobile/app/h/[hostId]/automations.tsx
  • mobile/app/h/[hostId]/edit.tsx
  • mobile/app/h/[hostId]/edit.web.tsx
  • mobile/src/accounts/MobileAccountsScreen.tsx
  • mobile/src/accounts/accounts-snapshot-stream.ts
  • mobile/src/accounts/use-open-mobile-accounts.ts
  • mobile/src/automations/AutomationControls.tsx
  • mobile/src/automations/AutomationList.tsx
  • mobile/src/automations/AutomationManager.tsx
  • mobile/src/automations/MobileAutomationsScreen.tsx
  • mobile/src/automations/automation-next-run-label.ts
  • mobile/src/automations/automation-styles.ts
  • mobile/src/automations/use-open-mobile-automations.ts
  • mobile/src/components/AccountUsage.tsx
  • mobile/src/components/WorktreeListRow.tsx
  • mobile/src/components/bottom-drawer/bottom-drawer-styles.ts
  • mobile/src/components/bottom-drawer/mounted-bottom-drawer.tsx
  • mobile/src/components/use-anchored-detail-card.ts
  • mobile/src/components/use-detail-card-scope.web.test.tsx
  • mobile/src/components/use-detail-card-scope.web.ts
  • mobile/src/home/MobileHomeBottomBar.tsx
  • mobile/src/home/MobileHomeDesktopRow.tsx
  • mobile/src/home/MobileHomeEmptyState.tsx
  • mobile/src/home/MobileHomeHostList.tsx
  • mobile/src/home/MobileHomeJumpBackIn.test.tsx
  • mobile/src/home/MobileHomeJumpBackIn.tsx
  • mobile/src/home/MobileHomeScreen.tsx
  • mobile/src/home/MobileHomeSectionHeading.tsx
  • mobile/src/home/MobileHomeStats.tsx
  • mobile/src/home/MobileHomeTasksSection.test.tsx
  • mobile/src/home/MobileHomeTasksSection.tsx
  • mobile/src/home/MobileHomeTopBar.tsx
  • mobile/src/home/home-list-styles.ts
  • mobile/src/home/tabs/MobileHomeAutomationRows.tsx
  • mobile/src/home/tabs/MobileHomeAutomationsTab.tsx
  • mobile/src/home/tabs/MobileHomeFab.tsx
  • mobile/src/home/tabs/MobileHomeFeedTab.tsx
  • mobile/src/home/tabs/MobileHomeHostPill.tsx
  • mobile/src/home/tabs/MobileHomeSettingsTab.tsx
  • mobile/src/home/tabs/MobileHomeTabBar.tsx
  • mobile/src/home/tabs/MobileHomeTabHeader.tsx
  • mobile/src/home/tabs/MobileHomeUsageTab.tsx
  • mobile/src/home/tabs/home-tabs.ts
  • mobile/src/home/tabs/home-usage-cards.test.ts
  • mobile/src/home/tabs/home-usage-cards.ts
  • mobile/src/home/use-mobile-home-data.ts
  • mobile/src/home/use-mobile-home-host-connections.ts
  • mobile/src/host-edit-route-accessibility.test.ts
  • mobile/src/host-edit-save-flow.test.ts
  • mobile/src/host-list-action-sheet-actions.ts
  • mobile/src/host-screen/host-screen-header.tsx
  • mobile/src/host-screen/host-stored-identity.ts
  • mobile/src/i18n/en-runtime-required.json
  • 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/platform/keyboard-persisting-taps.test.ts
  • mobile/src/session/MobileSessionHeader.tsx
  • mobile/src/session/MobileSessionSurface.tsx
  • mobile/src/session/MobileSessionTab.tsx
  • mobile/src/session/MobileSessionTabCardFooter.tsx
  • mobile/src/session/MobileSessionTabStrip.test.tsx
  • mobile/src/session/MobileSessionTabStrip.tsx
  • mobile/src/session/MobileSessionTitleBlock.test.tsx
  • mobile/src/session/MobileSessionTitleBlock.tsx
  • mobile/src/session/mobile-session-tab-card-content.test.ts
  • mobile/src/session/mobile-session-tab-card-content.ts
  • mobile/src/session/mobile-session-toast-owner-cleanup.test.tsx
  • mobile/src/session/use-session-title-card.ts
  • mobile/src/settings/settings-menu-screen.tsx
  • mobile/src/stats/home-stats-summary-read.ts
  • mobile/src/stats/home-stats-total.test.ts
  • mobile/src/stats/home-stats-total.ts
  • mobile/src/tasks/mobile-tasks-provider-pickers.tsx
  • mobile/src/theme/mobile-theme.ts
  • mobile/src/transport/host-descriptor-persistence.ts
  • mobile/src/transport/host-descriptor-recorder.test.ts
  • mobile/src/transport/host-descriptor-recorder.ts
  • mobile/src/transport/host-descriptor-store.ts
  • mobile/src/transport/host-metadata-store.ts
  • mobile/src/transport/host-name-identity.ts
  • mobile/src/transport/host-status-reply-schema.ts
  • mobile/src/transport/host-store.web.ts
  • mobile/src/transport/types.ts
  • mobile/src/transport/use-host-display.test.ts
  • mobile/src/transport/use-host-display.ts
  • mobile/src/worktree/home-jump-back-in.ts
  • mobile/src/worktree/home-worktree-info.test.ts
  • mobile/src/worktree/home-worktree-info.ts
  • src/main/runtime/host-machine-probe-parsing.test.ts
  • src/main/runtime/host-machine-probe-parsing.ts
  • src/main/runtime/rpc/methods/status-machine-name-publish-budget.test.ts
  • src/main/runtime/rpc/methods/status.test.ts
  • src/main/runtime/rpc/methods/status.ts
  • src/main/runtime/runtime-host-machine.ts
  • src/shared/host-display-resolution.test.ts
  • src/shared/host-display-resolution.ts
  • src/shared/host-machine-line.ts
  • src/shared/worktree/card-properties.ts
Files with no reviewable changes: 10
  • mobile/src/session/MobileSessionHeader.tsx
  • mobile/src/session/mobile-session-tab-card-content.test.ts
  • mobile/src/session/MobileSessionTitleBlock.test.tsx
  • mobile/src/session/MobileSessionTabStrip.test.tsx
  • mobile/src/home/MobileHomeTopBar.tsx
  • mobile/src/components/use-anchored-detail-card.ts
  • mobile/src/session/MobileSessionTab.tsx
  • mobile/src/session/MobileSessionTabCardFooter.tsx
  • mobile/src/home/MobileHomeBottomBar.tsx
  • mobile/src/session/mobile-session-tab-card-content.ts

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 on lines +191 to +192
try {
await removeHostAndCloseClient(host.id, forgetHostClient)

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

Block repeated actions during removal.

The confirmation closes immediately, but Remove and Save remain available while removal runs. A user can start removal again or save a host that is being removed. Add a synchronous pending guard, disable conflicting actions, and show progress. (raw.githubusercontent.com)

Based on learnings, submit handlers need pending guards, completion cleanup, submission blocking, and loading feedback.

Source: Learnings

Comment on lines +201 to +202
routeRevision.current += 1
leaveHostRoute(router)

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

Fence navigation after removal.

If the user leaves while removal is pending, its completion still calls dismissTo('/'). That can dismiss a different screen the user opened. Capture routeRevision before awaiting removal and navigate only if it remains current, as the save handler does.

Comment on lines +94 to +99
unsubscribeAccounts ??= subscribeAccountsSnapshots(entry.client, {
onSnapshot: (snapshot) =>
setAccounts((previous) => ({ ...previous, [entry.hostId]: snapshot })),
onInvalidSnapshot: () => setAccounts((previous) => withoutHost(previous, entry.hostId)),
onStreamError: () => {}
})

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

Usage tab can spin forever when accounts.subscribe errors.

onStreamError is a no-op here. MobileAccountsScreen handles the same error event by calling accounts.list. On Home, the stream can fail at connect. An older desktop without accounts.subscribe is one example. The host then never gets an entry in accountsByHost. HostUsage shows an ActivityIndicator whenever snapshot is null and the host is connected. The same happens after onInvalidSnapshot removes the entry. The user sees an endless spinner and no message.

Fall back to one accounts.list read on stream error, as the Accounts screen does.

Proposed fix
--- "a/mobile/src/home/use-mobile-home-host-connections.ts"
+++ "b/mobile/src/home/use-mobile-home-host-connections.ts"
@@ -91,12 +91,23 @@
         }
       )
       // One stream per connection: each subscribe makes the desktop check usage, so focus must not resubscribe.
+      const readAccountsOnce = async (): Promise<void> => {
+        try {
+          const res = await entry.client.sendRequest('accounts.list')
+          if (res.ok) {
+            const snapshot = decodeAccountsSnapshot(res.result)
+            setAccounts((previous) => ({ ...previous, [entry.hostId]: snapshot }))
+          }
+        } catch {
+          // Leave the host without a snapshot; the Usage tab keeps its loading state.
+        }
+      }
       unsubscribeAccounts ??= subscribeAccountsSnapshots(entry.client, {
         onSnapshot: (snapshot) =>
           setAccounts((previous) => ({ ...previous, [entry.hostId]: snapshot })),
         onInvalidSnapshot: () => setAccounts((previous) => withoutHost(previous, entry.hostId)),
-        onStreamError: () => {}
+        onStreamError: () => void readAccountsOnce()
       })
       if (reconnected) {
         refreshWorktrees()
         fetchHomeHostStats(entry.client, entry.hostId, setStats, () => false)

Import decodeAccountsSnapshot from ../components/accounts-snapshot. The Usage tab should also show an empty or error state when the snapshot never arrives.

surfaceBright: '#e5e5e5',

accentBlue: '#3b82f6',
accentBlue: '#3276f2',

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

Supported by static analysis

Script executed:

python - <<'PY'
def luminance(color):
    channels = [int(color[i:i+2], 16) / 255 for i in (0, 2, 4)]
    linear = [c / 12.92 if c <= 0.04045 else ((c + 0.055) / 1.055) ** 2.4 for c in channels]
    return sum(c * w for c, w in zip(linear, (0.2126, 0.7152, 0.0722)))

foreground = luminance("3276f2")
background = luminance("171717")
print((foreground + 0.05) / (background + 0.05))
PY

Repository: stablyai/orca

Length of output: 169


Script executed:

set -eu
printf '%s\n' '--- theme ---'
nl -ba mobile/src/theme/mobile-theme.ts | sed -n '1,100p'
printf '%s\n' '--- host list references ---'
rg -n -F -- 'accentBlue' mobile/src/home/MobileHomeHostList.tsx mobile/src mobile || test "$?" -eq 1
printf '%s\n' '--- host list source ---'
nl -ba mobile/src/home/MobileHomeHostList.tsx | sed -n '1,240p'
printf '%s\n' '--- changed declaration across requested revisions ---'
git diff --unified=12 a19de980854e1c875a4555e1bd24d832c9f96657 a26d4e8c13ad573241f61647946c3c322095bfae -- mobile/src/theme/mobile-theme.ts

Repository: stablyai/orca

Length of output: 24964


Script executed:

set -eu
printf '%s\n' '--- home list styles ---'
nl -ba mobile/src/home/home-list-styles.ts | sed -n '70,100p'
printf '%s\n' '--- contrast test ---'
nl -ba mobile/src/theme/mobile-theme-contrast.test.ts | sed -n '1,75p'

Repository: stablyai/orca

Length of output: 4031


Restore text contrast on dark panels.

MobileHomeHostList uses accentBlue for the 16-point “Pair a desktop” label. The current #3276f2 accent has only 4.28:1 contrast against #171717, below the WCAG 4.5:1 threshold for normal text. Use a lighter text accent for this surface.

Reverts 852391d (#36395). The card popped up on every tab switch.
Tapping a tab switches tabs again, and the session title card goes back
to its own owner from #30389. Keeps later changes to these files: tab
press feedback, the compact top bar's + button, and #36866's keyboard
keep-focus for title taps.
The phone's workspace row always printed the branch or folder path, so the
Branch name / Branch / folder path toggle under Card display did nothing.
The shared card details now carry that rule, and the row reads it.
Content-sized sheets ride the keyboard by translation, but their height cap ignored that lift, so a tall sheet pushed its top off screen with no way to scroll back to it. The cap now gives back the keyboard lift. Sheets that scroll their own list can now shrink to the cap instead of clipping it, and the GitHub Pages picker no longer nests its list inside the drawer's ScrollView.
The desktop now reports whether it is a laptop, desktop or server, and its
model, on status.get. The phone stores it with the other last-known host
fields and turns it into a line like "MacBook Pro · macOS".
The host screen's menu gains Edit host and Network diagnostics. Edit host moves
onto the standard bar and gains Remove host. Automations uses the standard bar
with its switcher pinned under it, as Source Control does.

@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.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Restore the Last known: qualifier for stale counts. · home-worktree-info.ts:69-80

mobile/src/worktree/home-worktree-info.ts:69-80
Minor · Functional Correctness · Quick win

Restore the Last known: qualifier for stale counts.

When a catalog refresh fails, markHomeWorktreeCatalogUnavailable retains the last proven counts and marks them stale. homeHostWorktreeSummary now ignores both staleCounts and the ten-minute countsProvenAt limit, so MobileHomeDesktopRow can present aged counts without indicating that they are historical.

Suggested fix
+export const HOME_WORKTREE_COUNTS_LIVE_MAX_AGE_MS = 10 * 60_000
+
 /** Agent states are live facts; a saved copy or a dropped connection can't vouch for them. */
...
-export function homeHostWorktreeSummary(info: HostWorktreeInfo | undefined): string | null {
+export function homeHostWorktreeSummary(
+  info: HostWorktreeInfo | undefined,
+  now: number = Date.now()
+): string | null {
...
-  // Retained counts read the same as fresh ones; a "Last known" prefix cost the row too much width.
-  return `${info.totalWorktrees} worktree${info.totalWorktrees === 1 ? '' : 's'}${
+  const counts = `${info.totalWorktrees} worktree${info.totalWorktrees === 1 ? '' : 's'}${
     info.activeCount > 0 ? ` · ${info.activeCount} active` : ''
   }`
+  return info.staleCounts || !provenRecently(info, now) ? `Last known: ${counts}` : counts
 }
+
+function provenRecently(info: HostWorktreeInfo, now: number): boolean {
+  return (
+    typeof info.countsProvenAt === 'number' &&
+    now - info.countsProvenAt <= HOME_WORKTREE_COUNTS_LIVE_MAX_AGE_MS
+  )
+}
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: 657618b4-34fa-4f91-ae6b-71e15d39538e
Commits

Reviewing files that changed from the base of the PR and between a26d4e8 and f2992be.

Files selected for processing: 2
  • mobile/rpc-foundation/goldens/matrix-tasks.task-create-linear-linear.createissue-1.json
  • mobile/rpc-foundation/goldens/tk-create-linear.json

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

Home drops the Jump back in times, names the repo on every Jump back in row
(#37642), shows each desktop's machine kind, and adds stats and account usage
at the bottom. A new Arrange button reorders and hides sections, saved on the
phone.
…on the host screen

The edit route gets a web stub so its native-only removal flow stays out of
the page's chunks, and Automations keeps its own segment style. The host
screen header shows the machine line like Home does.
A bare re-export of the catch-all route compiled to the same asset as
[...page], so the page manifest listed it twice and the desktop template's
inventory check refused the build.
Feed keeps agents (needs-you first, five then Show all), desktops with a
needs-you count, and Tasks; New workspace moves to a floating button.
Usage shows stats and per-desktop account usage, Automations a per-desktop
summary with on/off switches that opens the page for editing (new=1 opens
its editor). Settings becomes a tab. Arrange Home is removed: tabs replace
the long scrolling Home it was for.
Smaller tiles, type and gaps; a desktop is two lines with its needs-you
count as an amber pill; the Tasks row drops its duplicate heading.

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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Major · Type the usage fixture helper with AccountProviderRateLimits. · home-usage-cards.test.ts:53-55

mobile/src/home/tabs/home-usage-cards.test.ts:53-55
Major · Functional Correctness · Quick win

Type the usage fixture helper with AccountProviderRateLimits.

limits() returns ProviderRateLimits, whose provider is string. Its results are assigned to AccountProviderRateLimits fields at lines 53-55, which require 'claude' | 'codex'. The new test file is in the test typecheck program and is absent from the empty baseline. The ratchet step then exits 1 and can fail the Mobile Checks run on the pull request. The change is test-only. It does not affect production code.

Suggested fix
-import type { AccountsSnapshot, ProviderRateLimits } from '../../components/account-usage-state'
+import type {
+  AccountProviderRateLimits,
+  AccountsSnapshot
+} from '../../components/account-usage-state'
...
-  overrides: Partial<ProviderRateLimits> = {}
-): ProviderRateLimits {
+  overrides: Partial<AccountProviderRateLimits> = {}
+): AccountProviderRateLimits {
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: f78f8504-c20d-4914-99ec-0721b80245f2
Commits

Reviewing files that changed from the base of the PR and between f2992be and 560bc21.

Files selected for processing: 19
  • config/scripts/mobile-web-app/mobile-web-app-render.test.mjs
  • mobile/src/accounts/MobileAccountsScreen.tsx
  • mobile/src/components/AccountUsage.tsx
  • mobile/src/home/MobileHomeJumpBackIn.tsx
  • mobile/src/home/MobileHomeScreen.tsx
  • mobile/src/home/tabs/MobileHomeUsageTab.tsx
  • 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/worktree/home-jump-back-in.ts
  • mobile/src/worktree/home-worktree-info.ts
Files skipped from review as they are similar to previous changes: 10
  • mobile/src/i18n/locales/zh.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/en.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 on lines +228 to +231
accessibilityLabel={[title, subtitle, card.active ? t('home.usage.active', 'Active') : null]
.filter(Boolean)
.join(', ')}
accessibilityHint={t('home.usage.openAccountsHint', 'Opens this desktop’s accounts')}

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

Supported by static analysis

Script executed:

set -eu
printf '%s\n' '--- relevant symbols ---'
rg -n -F --glob 'mobile/src/home/tabs/MobileHomeUsageTab.tsx' -e 'function UsageCard' -e 'const UsageCard' -e 'function UsageMeter' -e 'const UsageMeter' -e 'accessibilityLabel' -e 'accessible' -e 'getUsageBarState' -e 'usageBarFill' -e 'getWindowResetLabel' mobile/src/home/tabs/MobileHomeUsageTab.tsx
printf '%s\n' '--- complete logical component blocks ---'
sed -n '1,380p' mobile/src/home/tabs/MobileHomeUsageTab.tsx
printf '%s\n' '--- related accessibility/tests ---'
rg -n -F --glob 'mobile/**/*.{ts,tsx}' -e 'UsageMeter' -e 'UsageCard' -e 'home.usage.openAccountsHint' -e 'accessibilityLabel' -e 'accessible' mobile/src mobile/tests mobile || test "$?" -eq 1

Repository: stablyai/orca

Length of output: 40751


Web query:

React Native 0.83 Pressable accessible true nested accessible children VoiceOver TalkBack accessibilityLabel

Result:

Sources consulted:
- Accessibility · React Native — https://reactnative.dev/docs/0.83/accessibility
- https://raw.githubusercontent.com/facebook/react-native/v0.83.0/packages/react-native/Libraries/Components/Pressable/Pressable.js
- https://raw.githubusercontent.com/facebook/react-native/v0.83.0/packages/react-native/Libraries/Components/Pressable/Pressable.d.ts
- Accessibility · React Native — https://reactnative.dev/docs/accessibility
- TouchableWithoutFeedback · React Native — https://reactnative.dev/docs/touchablewithoutfeedback
- …and 60 more

Include usage meter summaries in the card accessibility label.

Pressable is accessible by default, and this card sets a label that omits the meter values. The accessible UsageMeter views are nested inside that card. VoiceOver can reject nested accessibility elements, and TalkBack may focus the parent instead. As a result, the quota values and reset times can be skipped.

Build session and weekly summaries in UsageCard with the same getUsageBarState, usageBarFill, and getWindowResetLabel logic used by UsageMeter. Share that helper so visible and spoken values stay consistent. Then remove the nested accessibility wrapper label.

♿ Suggested fix
+  const meterSummaries = card.metered
+    ? windows.map((window) => getUsageMeterSummary(card, window.key, window.label, props.now))
+    : []
+
   return (
     <Pressable
       accessibilityRole="button"
-      accessibilityLabel={[title, subtitle, card.active ? t('home.usage.active', 'Active') : null]
+      accessibilityLabel={[
+        title,
+        subtitle,
+        card.active ? t('home.usage.active', 'Active') : null,
+        ...meterSummaries
+      ]
         .filter(Boolean)
         .join(', ')}
@@
       <View
         style={styles.meter}
-        accessible
-        accessibilityLabel={[props.label, value, reset].filter(Boolean).join(', ')}
       >

@AmoabaKelvin
AmoabaKelvin merged commit b8969c9 into main Nov 4, 2026
51 checks passed
@AmoabaKelvin AmoabaKelvin mentioned this pull request Nov 4, 2026
10 of 11 tasks
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.

[Bug]: Mobile "Jump back in" shows only branch names, making recent workspaces indistinguishable

1 participant