Skip to content

Redesign the Add apps dialog - #48215

Merged
AmethystLiang merged 2 commits into
mainfrom
AmethystLiang/add-apps-dialog-port
Nov 24, 2026
Merged

AmethystLiang merged 2 commits into
mainfrom
AmethystLiang/add-apps-dialog-port

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The Add apps dialog was cramped. It is now bigger, shows apps in two columns, filters them with chips across the top, and puts the apps a bot already has behind an "N added" button.

Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​135 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​135
Prod 27 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1320 $\color{#cf222e}{\Huge{\mathbf{−}}}$​721 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​599

What Changed

  • The dialog is 920×700 (capped to the window) with a two-column app list that drops to one column when the list is narrow. Setup steps after Add keep their current size and a Back button.
  • The side rail is replaced by category chips: All, each category with apps, then Composio and Custom pinned at the end. Categories that don't fit fold into a More menu; a picked folded category shows its name in that chip. More's fit is measured with the widest folded label, so picking from it never folds or unfolds another chip. Chips are a radio group (arrow keys, Enter/Space); More is a radio with a menu, and Esc returns focus to it. If a resize brings the focused menu option's category back into the row, the menu closes and focus moves to that chip without changing the selection.
  • The header shows up to three faces of the bot's apps (+N past three) and an "N added" toggle that opens the Added list.
  • Add by URL sits beside search. Rows have pill Add / Manage buttons; added apps get a check badge on their logo, and GitHub / Slack keep Add org / Add workspace (a narrow "+" with a label tooltip in tight rows).
  • All shows one Apps list, then With Composio (Show more, Browse all), then a Custom section with Add by URL and Webhooks. Search mixes built-in, custom and Composio results, tagging Composio ones "via Composio". Removed GitHub orgs still show under GitHub, spanning both columns, in Tab order.
  • Retires the copy keys the old layout used (and their translations) and adds the new English strings.

Why

The old dialog was a narrow single column beside a category rail, so it felt cramped. The new layout was checked against comparable products.

Linked Issue

N/A (maintainer change)

Visual Proof

Component fixtures with invented data; before was the narrow rail layout.

All, 1280, dark

all-1280-fixture-dark.png

All, 860, light

all-860-light.png

More open

more-open-dark.png

After picking a folded category

more-picked-Mail_and_meetings-dark.png

Added view (4 added)

added-view-4-dark.png

Composio

composio-dark.png

Custom with Webhooks

custom-light.png

Mixed search ("no")

search-no-dark.png

Removed GitHub orgs

removed-orgs-fixture-light.png

Testing

  • I manually tested these changes locally (component fixtures at 1280 and 860 wide, dark and light: More before and after picking, resizing with focus inside More, Added view, Composio, Custom, mixed search, removed-org rows)
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

BotAppsChips.test.tsx covers chip folding and focus when a resize unfolds a category from More. The unfold-focus test fails on the component without the fix (focus falls to the page body). The other two tests guard behaviour that also held before, so they were not expected to fail on rollback.

At 1b44bf3dbe63: typecheck, lint, both localization catalog checks and the two affected test files pass locally. Design-system lint reports nothing in the changed files; the repo-wide run still has findings in other files. CI runs the full suite.

Performance

No expected regression; not measured. The header builds the bot's added-app list (a map over its connectors, URL apps and Composio sign-ins, sorted by name) on each render of the dialog, and the Added view filters that list per search keystroke; both are small, bounded lists. The catalog rows still mount after the first paint. Existing host requests and Composio pagination are unchanged; All and Custom also match Custom rows locally. Fitting the chips uses one resize observer over a fixed set of labels, and picking a chip reuses the measured widths. The narrow Add org tooltip observes its label only while open.

Risk

Level: Low. Renderer-only; no saved data, IPC or host changes. The riskiest part is chip fitting at unusual widths or long translations, which would show as a chip folding into More early. Back out with a plain revert.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The bot app dialog now uses a wider layout with chip-based category filters instead of a category rail. App lists use shared row and grid components. The catalog supports added-app views, custom app entries, Composio previews, and search across applicable app sources. New fixtures cover empty, connected, expanded, and remote bots. Locale entries were updated for the revised catalog labels and actions.

Merge Risk: Minimal · up to 1b44b

This redesigns the Add apps dialog with a two-column catalog and category chips. It is renderer-only and changes no saved data. No concrete defect or regression was found at the reviewed head, so the change looks ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Redesign the Add apps dialog" matches the main change. The PR replaces the cramped rail layout with a larger two-column catalog, category chips, and an Added toggle. The title is short, spe…
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.
Description check Passed The description follows the template well. It has an ELI5, a What Changed section, Why, Visual Proof with many before/after-style screenshots, Testing with a checklist and details, Performance, and Ri…
Full details: Title check

Explanation

The title "Redesign the Add apps dialog" matches the main change. The PR replaces the cramped rail layout with a larger two-column catalog, category chips, and an Added toggle. The title is short, specific, and states the primary change.

Full details: Description check

Explanation

The description follows the template well. It has an ELI5, a What Changed section, Why, Visual Proof with many before/after-style screenshots, Testing with a checklist and details, Performance, and Risk with a level. Gaps: the Linked Issue section says N/A (maintainer change), which the template allows for maintainers. The 'Every added test fails without this change' box is unchecked, but the author explains why in the text. The Before visuals are referenced only by a note saying before was the narrow rail layout, with no actual before screenshot. The Performance section is filled in. The Review, Agent skill upstream boundary, and Notes sections are not addressed, and the AI Disclosure section is left blank.

  • 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: 220b4706-a39c-45cd-a5b6-4ab8d2d13e5e
Commits

Reviewing files that changed from the base of the PR and between 40ba1ec and 1b44bf3.

Files selected for processing: 1

  • src/renderer/src/components/bots/apps/BotAppsChips.test.tsx

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

Expand the Add apps catalog with a responsive grid, category chips, and an Added view.

Preserve keyboard focus when filters fold or connector recovery rows appear. Keep connector setup and search available from the catalog.

Retire the translations of the copy keys the redesign removes.
@AmethystLiang
AmethystLiang force-pushed the AmethystLiang/add-apps-dialog-port branch from 17310e4 to 40ba1ec Compare November 24, 2026 10:07
@AmethystLiang
AmethystLiang force-pushed the AmethystLiang/add-apps-dialog-port branch from 40ba1ec to 1b44bf3 Compare November 24, 2026 10:11
@AmethystLiang
AmethystLiang merged commit 96692d8 into main Nov 24, 2026
57 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