Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/web/src/components/settings/ScheduledTasksSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ import { Switch } from "../ui/switch";
import { Textarea } from "../ui/textarea";
import { stackedThreadToast, toastManager } from "../ui/toast";
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { searchableSetting } from "./settingsSearch";
import {
SettingsPageContainer,
SettingsRow,
Expand Down Expand Up @@ -407,7 +408,7 @@ export function ScheduledTasksSettings(target: {
return (
<SettingsPageContainer>
<SettingsSection
title="Scheduled tasks"
{...searchableSetting("scheduled-tasks")}
variant="plain"
headerAction={
<Button
Expand Down
11 changes: 11 additions & 0 deletions apps/web/src/components/settings/settingsSearch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ describe("searchSettings", () => {
expect(searchSettings("long lines", ITEMS).map((item) => item.id)).toEqual(["word-wrap"]);
});

it.each(["scheduled", "scheduled task", "scheduled tasks"])(
"finds the Scheduled tasks page for %s",
(query) => {
expect(searchSettings(query)[0]).toMatchObject({
id: "scheduled-tasks",
title: "Scheduled tasks",
to: "/settings/scheduled-tasks",
});
},
);

it("matches normalized title substrings", () => {
expect(searchSettings(" WORD WRAP ", ITEMS).map((item) => item.id)).toEqual(["word-wrap"]);
expect(searchSettings("glass").map((item) => item.id)).toEqual(["setting-glass-opacity"]);
Expand Down
5 changes: 5 additions & 0 deletions apps/web/src/components/settings/settingsSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,11 @@ export const SETTINGS_SEARCH_ITEMS = [
searchTerms: ["refresh availability versions auth state models background probes seconds off"],
providerSettingsOnly: true,
},
{
id: "scheduled-tasks",
title: "Scheduled tasks",
to: "/settings/scheduled-tasks",
},
{
id: "agent-browser-access",
title: "Agent browser access",
Expand Down
Loading