Skip to content

Make Import Cookies profiles searchable - #47970

Merged
AmethystLiang merged 6 commits into
mainfrom
AmethystLiang/import-cookies-search-picker
Nov 24, 2026
Merged

AmethystLiang merged 6 commits into
mainfrom
AmethystLiang/import-cookies-search-picker

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The browser menu opens a searchable Import Cookies picker. Type a browser or profile name, pick a result with the keyboard or mouse, or choose From File…. The picker remembers the last selected profile on this device.

Checked against comparable products.

Visual proof

Light theme

Nested menu before

Search picker after

Dark theme

Nested menu before

Search picker after

Search with no matching profiles

The screenshots use seeded component fixtures.

Testing

  • Passed 73 Chromium fixture checks on macOS. Checked the accessible dialog name, keyboard and mouse selection, scrolling, focus restoration, the 320px layout, and a remote destination with a delayed profile probe. The fixture records the requested action through seeded callbacks.
  • Verified that the main-branch menu fails the search-picker entry check and the original picker fails the profile identity regression.
  • Passed the renderer typecheck, changed-file formatting and lint, localization catalog validation, and both affected regression tests on the PR head.
  • The local Node typecheck passed before the catalog cleanup. The Bun and native compiler checks on the catalog cleanup commit timed out under host load. The GitHub Actions typecheck passed on that commit.

Performance

Browser detection remains lazy. Filtering does a linear pass over the available profiles and runs only while the picker is open.

Risk

Low. The change affects the browser toolbar menu and the source passed to the existing import action. Tested with local and simulated remote routes. A revert restores the submenu.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​40 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​40
Prod 23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1015 $\color{#cf222e}{\Huge{\mathbf{−}}}$​311 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​704

The ⋯ menu's Import Cookies row was three menus deep (Import Cookies ›
browser › profile). It now opens a popover anchored to ⋯ with a search
field, a Last used row, one section per detected browser, and From File….
Typing filters by browser and profile; arrows, Enter and Esc work as in
other pickers. Imports, feedback and visibility are unchanged.
@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 toolbar’s cookie-import submenu is replaced with a searchable picker for detected browser profiles and file import. The picker groups profiles by browser, shows a last-used source when it matches the available profiles, and stores a selected source in local storage. Toolbar integration, interaction fixtures, shared menu styling variants, and picker translations are also added.

Merge Risk: Low · up to ef2a3

The new cookie import picker works, but screen readers may not announce the highlighted row correctly because the search input's active descendant can be out of sync with the visible highlight. This is a small accessibility gap that can be fixed as a follow-up and does not block the change.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description has a clear summary, visual proof with light and dark screenshots, testing notes, a performance statement, and a risk section with a revert path. It is mostly complete. Several templat… Add an ELI5 section and a Why section that explains the chosen picker design against alternatives. Add a real linked issue ("Fixes #NNN"). Set the Risk level to Low, Medium, or High. Complete the Performance line with the template wording (…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title "Make Import Cookies profiles searchable" matches the main change: the browser menu's nested Import Cookies submenu is replaced by a searchable profile picker, and the title names that core …
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 "Make Import Cookies profiles searchable" matches the main change: the browser menu's nested Import Cookies submenu is replaced by a searchable profile picker, and the title names that core feature. It is short, specific, and free of noise.

Full details: Description check

Explanation

The description has a clear summary, visual proof with light and dark screenshots, testing notes, a performance statement, and a risk section with a revert path. It is mostly complete. Several template items are missing or incomplete: there is no ELI5 section, the Why section is absent, the Linked Issue section is empty ("Fixes #" with no issue number), the Risk section lacks a Level value, the AI Disclosure section is blank, and the Review and Agent skill upstream boundary checkboxes are not addressed. The Testing checklist boxes are unchecked, and the test anti-pattern check is not confirmed. The Performance section has a sentence but is not finished with the template's "None, because" line. The description also says 73 fixture checks, while the objectives say 72. The description does not explain why the picker design was chosen over alternatives.

Resolution

Add an ELI5 section and a Why section that explains the chosen picker design against alternatives. Add a real linked issue ("Fixes #NNN"). Set the Risk level to Low, Medium, or High. Complete the Performance line with the template wording (for example, "None, because browser detection stays lazy and filtering runs only while the picker is open"). Confirm the test checkboxes and the anti-pattern check. Fill in the AI Disclosure section or leave it blank only if the author is a StablyAI team member. Address the Agent skill upstream boundary checkbox. Correct the fixture check count (73 in the description, 72 in the objectives summary).

  • 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: b94621d4-bc4f-4d62-b94b-1985c774eb57
Commits

Reviewing files that changed from the base of the PR and between 17837a8 and ef2a3a6.

Files selected for processing: 1

  • src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-cookie-import-picker.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.

@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

Minor comments: 1

src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-cookie-import-picker.tsx: 1

173-173: Minor · Functional Correctness · Poor tradeoff

Expose the highlighted row through the input's active descendant.

cmdk sets aria-activedescendant on the input and list only from its own selection state. The picker's controlled value={highlighted} does not update that state. On open, the first profile is highlighted, so the input and list have no active descendant while the first row shows as selected. After a query edit, the active descendant can keep the ID of a row that was filtered out.

The active descendant must name the row that is visually highlighted, on open and after every highlight change, including query edits. Keep the guard that prevents implicit file selection.

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: 6119224c-235f-4370-8775-95fd3afe6a90
Commits

Reviewing files that changed from the base of the PR and between fbc6829 and cfd5344.

Files selected for processing: 22

  • src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-cookie-import-last-used.ts
  • src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-cookie-import-picker-rows.test.ts
  • src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-cookie-import-picker-rows.ts
  • src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-cookie-import-picker-selection.test.ts
  • src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-cookie-import-picker-selection.ts
  • src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-cookie-import-picker.tsx
  • src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-toolbar-import-cookies-item.tsx
  • src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-toolbar-import-cookies-sub.tsx
  • src/renderer/src/components/browser-pane/assemble-chrome/toolbar/BrowserToolbarMenu.tsx
  • src/renderer/src/components/browser-pane/assemble-chrome/toolbar/browser-toolbar-menu-dropdown.fixture.tsx
  • src/renderer/src/components/browser-pane/assemble-chrome/toolbar/browser-toolbar-menu-dropdown.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: 1

  • src/renderer/src/components/browser-pane/assemble-chrome/profile-routing/browser-toolbar-import-cookies-sub.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.

@AmethystLiang
AmethystLiang merged commit 4a4cbdf into main Nov 24, 2026
56 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