YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(ai-presets): call the copy dialog "Duplicate AI"
Manas Raghuwanshi105f5ad9d7e9
diff --git a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.test.tsx b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.test.tsxindex c90a26b29..4e50378be 100644--- a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.test.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.test.tsx@@ -612,10 +612,10 @@ describe("AIPresetsSelector preset copy", () => {render(<AIPresetsSelector compact showModelOnly />);fireEvent.click(screen.getByRole("combobox"));- fireEvent.click(screen.getByRole("button", { name: "Copy screenpipe" }));+ fireEvent.click(screen.getByRole("button", { name: "Duplicate screenpipe" }));- const dialog = screen.getByRole("dialog", { name: "Copy Preset" });- expect(within(dialog).getByRole("heading", { name: "Copy AI" })).toBeInTheDocument();+ const dialog = screen.getByRole("dialog", { name: "Duplicate Preset" });+ expect(within(dialog).getByRole("heading", { name: "Duplicate AI" })).toBeInTheDocument();expect(within(dialog).getByDisplayValue("screenpipe 2")).toBeEnabled();expect(within(dialog).getByRole("button", { name: "create copy" })).toBeInTheDocument();expect(within(dialog).queryByText(/edit/i)).not.toBeInTheDocument();@@ -630,7 +630,7 @@ describe("AIPresetsSelector preset copy", () => {);fireEvent.click(screen.getByRole("combobox"));- fireEvent.click(screen.getByRole("button", { name: "Copy screenpipe" }));+ fireEvent.click(screen.getByRole("button", { name: "Duplicate screenpipe" }));fireEvent.click(screen.getByRole("button", { name: "create copy" }));await waitFor(() =>@@ -664,9 +664,9 @@ describe("AIPresetsSelector preset copy", () => {render(<AIPresetsSelector compact showModelOnly />);fireEvent.click(screen.getByRole("combobox"));- fireEvent.click(screen.getByRole("button", { name: "Copy screenpipe" }));+ fireEvent.click(screen.getByRole("button", { name: "Duplicate screenpipe" }));fireEvent.click(- within(screen.getByRole("dialog", { name: "Copy Preset" })).getByRole("button", {+ within(screen.getByRole("dialog", { name: "Duplicate Preset" })).getByRole("button", {name: "Close",}),);diff --git a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsxindex eb15a7bae..52f734772 100644--- a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx@@ -679,7 +679,7 @@ export function AIProviderConfig({{{create: ui("Choose your AI"),edit: ui("Edit AI"),- copy: ui("Copy AI"),+ copy: ui("Duplicate AI"),}[mode]}</h2></div>@@ -1437,7 +1437,7 @@ export const AIPresetDialog = ({{{create: ui("Create New Preset"),edit: ui("Edit Preset"),- copy: ui("Copy Preset"),+ copy: ui("Duplicate Preset"),}[mode]}</DialogTitle><DialogDescription>@@ -2259,7 +2259,7 @@ export const AIPresetsSelector = ({variant="ghost"size="icon"className="h-6 w-6 shrink-0"- aria-label={ui("Copy {value1}", { value1: preset.id })}+ aria-label={ui("Duplicate {value1}", { value1: preset.id })}onClick={(e) => {e.stopPropagation();handleDuplicatePreset(preset);