Skip to content

Commit 1c6fa21

Browse files
RedstoneKopfclaude
andcommitted
fix(web): settings search reaches the project import row
Without its own scope the entry inherited the Projects page's project scope, but the import row only renders when no project is selected. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent f10a9e5 commit 1c6fa21

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎apps/web/src/components/settings/settingsSearch.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ describe("settings search targets", () => {
205205
expect(isSettingsSearchScopeAvailable(updates.scope, "environment")).toBe(true);
206206
expect(isSettingsSearchScopeAvailable(updates.scope, "all")).toBe(true);
207207
expect(isSettingsSearchScopeAvailable(updates.scope, "project")).toBe(false);
208+
// The import row only renders while no project is selected.
209+
const importProjects = getSettingsSearchTargetScope("import-projects")!;
210+
expect(isSettingsSearchScopeAvailable(importProjects.scope, "all")).toBe(true);
211+
expect(isSettingsSearchScopeAvailable(importProjects.scope, "environment")).toBe(true);
212+
expect(isSettingsSearchScopeAvailable(importProjects.scope, "project")).toBe(false);
208213
const streaming = getSettingsSearchTargetScope("response-streaming")!;
209214
expect(streaming.scope).toBe("project-defaults");
210215
expect(isSettingsSearchScopeAvailable(streaming.scope, "project")).toBe(true);

‎apps/web/src/components/settings/settingsSearch.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ export const SETTINGS_SEARCH_ITEMS = [
273273
id: "import-projects",
274274
title: "Import from Claude Code and Codex",
275275
to: "/settings/projects",
276+
scope: "environment-defaults",
276277
searchTerms: ["import projects threads conversations history sessions transcripts"],
277278
},
278279
{

0 commit comments

Comments
 (0)