Skip to content

feat(mobile): Agents tab search and filters move to the bottom bar - #48765

Merged
AmoabaKelvin merged 2 commits into
mainfrom
mobile-agents-tab-bottom-search
Nov 27, 2026
Merged

AmoabaKelvin merged 2 commits into
mainfrom
mobile-agents-tab-bottom-search

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

On Home's Agents tab, search and filters were header buttons, and a desktop pill opened under the title. Now they live in the bottom search bar above the tabs, the same as the workspace list, with one filter sheet. The header keeps only the title and a ⋯ menu.

Files Added Deleted Net
Test 0 0 0 0
Prod 19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​392 $\color{#cf222e}{\Huge{\mathbf{−}}}$​486 $\color{#cf222e}{\Huge{\mathbf{−}}}$​94

What Changed

  • Bottom bar (BottomSearchBar, like host-bottom-bar.tsx): the filter button (lit, with a count when something differs from the defaults), "Search agents", and + for a new workspace. + only shows while a computer is connected.
  • One filter sheet (BottomDrawer + SheetHeader with Reset / Done, like the agent history and Tasks filter sheets). Choices apply as you tap. It has three sections:
    • Computer: All computers or one. It only shows with more than one computer.
    • Group by: Status, Workspace, Project, Agent, Computer. Computer is hidden with one computer.
    • Show: Unread only and Workers switches.
  • Header: the title and ⋯ (Mark all read, Clear finished). The search toggle, the sliders menu and the "All desktops" pill are gone.
  • Pull to refresh on the list: a fresh agent read from every connected computer. It goes through use-mobile-home-data's existing refetch, and it joins a read already in flight instead of cancelling one that an activity write is waiting on.
  • Keyboard: while the keyboard is up on a focused Home, the tab bar hides (kept mounted) so the bar sits right on the keyboard. The agent-action toast and the dictation pill now clear the bar.
  • Words: "computer" instead of "desktop" in the empty states. The ru/tr/zh translations moved to the renamed keys.

Removed: MobileHomeAgentsDesktopFilter.tsx and the summarizeAgentListHosts helper it alone used.

Why

This is the approved phone UX audit (Home Agents tab, R5). Search and filters belong in the bottom search bar, as in Tasks, the workspace list and Files. The audit also found filters split across three controls and no pull to refresh.

Two places differ from the mock:

  • The Group by list keeps all five choices, not just Status / Workspace, so nobody loses a grouping they use.
  • The computer rows drop the old picker's agent counts, as the mock draws them.

Linked Issue

None. This is part of the phone UX round.

Visual Proof

Each image shows before (dark), after (dark), before (light) and after (light), at the same data and viewport. They are real components rendered in Chromium at 393×852, with two fake computers.

Agents tab
agents.png

Filters: old sliders menu vs the new filter sheet
filters.png

Search: old header search vs the new ⋯ menu with the bottom bar
search-and-menu.png

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

I rendered the tab, the filter sheet with two computers and with one, the ⋯ menu, and a worst case (long titles and workspace names, 16 rows) in dark and light. pnpm check:changed and the mobile typecheck pass. No tests were added because the change is UI.

Performance

None, because the bar only mounts on the Agents tab, and pull to refresh is one read per connected computer that joins a read already in flight. On keyboard show and hide, Home only relays out while it is the focused screen.

Risk

Level: Low

The riskiest part is the tab bar hiding while the keyboard is up on Home, since it touches every tab's bottom space. It is kept mounted (display: none), and a keyboard on a screen above Home leaves it alone. The persisted list view (orca:agentListView) is unchanged. A plain revert backs it all out.

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, native Home screen. There is no host or RPC change.

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 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The Agents tab replaces its desktop picker and grouped options menu with a bottom bar for search and filters. It adds pull-to-refresh and changes related terminology to computers. The Home screen tracks focus and Agents bar height, adjusts bottom coverage, and hides the mounted tab bar when the keyboard is visible on focused Home. Locale files update the corresponding labels.

Merge Risk: Low · up to 52be6

The Agents bottom bar and filter sheet are largely sound. Some non-English users will see an untranslated "Computer" grouping label, and pull to refresh will not retry failed relayed-server reads. Both are small and can be fixed or followed up.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(mobile): Agents tab search and filters move to the bottom bar" matches the main change. The PR moves the Agents tab search and filters from the header into a bottom search bar and one …
Description check Passed The description follows the template. It has ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, upstream boundary, Notes, and Checklist sections. T…
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): Agents tab search and filters move to the bottom bar" matches the main change. The PR moves the Agents tab search and filters from the header into a bottom search bar and one filter sheet. The title is specific and uses a conventional commit prefix. It does not cover the keyboard handling, pull to refresh, or the removed desktop filter, which is expected for a short title.

Full details: Description check

Explanation

The description follows the template. It has ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, upstream boundary, Notes, and Checklist sections. The change is explained clearly, with before and after images, risk level, rollback path, and a performance statement. Two gaps remain. The Linked Issue section says 'None' and gives no issue number, although the template says an issue should always exist for outside contributors. The Risk level is set to Low, and the AI Disclosure section is blank, which the template allows only for internal contributors.

  • 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

Search, the computer picker and the list options move into a bottom search bar above the tabs with one filter sheet (Computer, Group by, Show). The header keeps the title and a menu for Mark all read and Clear finished. + starts a new workspace, the list pulls to refresh, and the tab bar steps aside for the keyboard so the bar sits on it.
@AmoabaKelvin
AmoabaKelvin force-pushed the mobile-agents-tab-bottom-search branch from debe693 to a88eada Compare November 27, 2026 08:39

@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: 32fe7f5a-ed26-4152-8bf5-51666b3491b8
Commits

Reviewing files that changed from the base of the PR and between debe693 and a88eada.

Files selected for processing: 13

  • mobile/src/agents/agent-list-rows.ts
  • mobile/src/home/use-mobile-home-data.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
Files with no reviewable changes: 1

  • mobile/src/agents/agent-list-rows.ts
Files skipped from review as they are similar to previous changes: 3

  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json

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

Comment thread mobile/src/home/use-mobile-home-data.ts Resolved
"project": "Projekt",
"agent": "Agent",
"desktop": "Desktop"
"agent": "Agent"

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

Restore the localized computer-grouping label.

The bottom bar now reads agents.groupBy.computer, but this catalog removes the old label without adding the new key. German users see “Computer” in English. The same regression affects es, fr, ja, ko, pt, and zh-Hant. Add the new key to each catalog.

…ata hook

Keeps use-mobile-home-data.ts under its 300-line cap after the agents
refresh.

@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

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: ddd59093-e579-4aec-8e40-51eeaa6b3693
Commits

Reviewing files that changed from the base of the PR and between a88eada and 52be647.

Files selected for processing: 2

  • mobile/src/home/home-worktree-read.ts
  • mobile/src/home/use-mobile-home-data.ts

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

[queryClient]
)
const refreshAgents = useCallback(async (): Promise<void> => {
await Promise.all(allClientsRef.current.map((entry) => refetchHostAgents(entry.hostId, false)))

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 the relayed-server reads in pull to refresh.

refreshAgents refetches only homeWorktreeCountsKey for each connected client. The relayed-server agents come from homeRelayedServersQuery and homeRelayedServerRowsQuery. Neither query polls, and the new refresh path does not refetch them. If a relayed row read fails, homeRelayedServerRowsQuery keeps the previous rows, which can be empty. The list then stays incomplete after the refresh completes. It recovers only on window focus or a relayHostsChanged or relayHostRowsChanged event.

Refetch the relayed reads in refreshAgents as well. Use cancelRefetch: false, as the desktop counts refetch already does, and await those reads before the refresh resolves.

@AmoabaKelvin
AmoabaKelvin merged commit 70d667b into main Nov 27, 2026
28 checks passed
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