Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

update project removal copy (#981)

Donald Silveiraab0002f99d6f
diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx
index 37fb45d01..9d911e2f0 100644
--- a/apps/web/src/components/Sidebar.tsx
+++ b/apps/web/src/components/Sidebar.tsx
@@ -895,7 +895,7 @@ export default function Sidebar() {
const api = readNativeApi();
if (!api) return;
const clicked = await api.contextMenu.show(
- [{ id: "delete", label: "Delete", destructive: true }],
+ [{ id: "delete", label: "Remove project", destructive: true }],
position,
);
if (clicked !== "delete") return;
@@ -908,14 +908,12 @@ export default function Sidebar() {
toastManager.add({
type: "warning",
title: "Project is not empty",
- description: "Delete all threads in this project before deleting it.",
+ description: "Delete all threads in this project before removing it.",
});
return;
}
- const confirmed = await api.dialogs.confirm(
- [`Delete project "${project.name}"?`, "This action cannot be undone."].join("\n"),
- );
+ const confirmed = await api.dialogs.confirm(`Remove project "${project.name}"?`);
if (!confirmed) return;
try {
@@ -930,11 +928,11 @@ export default function Sidebar() {
projectId,
});
} catch (error) {
- const message = error instanceof Error ? error.message : "Unknown error deleting project.";
+ const message = error instanceof Error ? error.message : "Unknown error removing project.";
console.error("Failed to remove project", { projectId, error });
toastManager.add({
type: "error",
- title: `Failed to delete "${project.name}"`,
+ title: `Failed to remove "${project.name}"`,
description: message,
});
}