diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx index 14880af..bebe26c 100644 --- a/apps/desktop/src/App.tsx +++ b/apps/desktop/src/App.tsx @@ -6,7 +6,7 @@ import { MoonStar, Plus, Send, - Settings2, + Sparkles, SunMedium, Upload, Workflow, @@ -67,14 +67,6 @@ function basename(path: string) { return parts.at(-1) || normalized; } -function formatStatusLabel(status?: string | null) { - if (!status) return "Draft"; - return status - .replace(/([a-z])([A-Z])/g, "$1 $2") - .replace(/_/g, " ") - .replace(/^./, (char) => char.toUpperCase()); -} - function loadTaskSelections(): Record { try { const raw = localStorage.getItem(TASK_SELECTIONS_KEY); @@ -378,200 +370,182 @@ export default function App() { return (
-
-
- - -
-
-
-
- Pick a model. Open a project. Prompt. Review. Ship. -
-
-

- {selectedTask ? selectedTask.title || "Task thread" : "What should Codra build?"} -

- - {selectedTask ? formatStatusLabel(selectedTask.status) : "Draft thread"} - -
+
+ + +
+
+
+
+ {selectedTask ? "Task thread" : "New thread"}
+

+ {selectedTask ? selectedTask.title || "Untitled thread" : "What should Codra build?"} +

+
-
- - } label="Handoff" /> - } label="Push" /> - - - -
-
- - {!isTauri && ( -
- - - Tauri runtime unavailable. Native folder selection and task execution only work inside the desktop app window. - -
- )} +
+ } label="New thread" onClick={handleNewThread} /> + } label="Handoff" /> + } title="Tools and layout placeholder" /> + } label="Push" /> + : } + onClick={handleThemeToggle} + title={`Switch to ${theme === "dark" ? "light" : "dark"} theme`} + /> +
+
-
- {!selectedTask ? ( -
-
-
-
- Open-source agentic coding app for TeraAI -
-

- What should Codra build? -

-

- Codra will show a plan before changing files. -

+ {!isTauri ? ( +
+ + Tauri runtime unavailable. Open Codra in the desktop app window for native workspace picking and task execution. +
+ ) : null} + +
+ {selectedTask ? ( + + ) : ( +
+
+
+
+
+
+ Desktop coding agent +
+

+ What should Codra build? +

+

+ Open a project, pick a model, and describe the change. Codra will plan before it edits anything. +

+
-
-
-
- }> - {workspaceLabel} - - {workspaceContext?.gitBranch ? `local • ${workspaceContext.gitBranch}` : "local workspace"} - {selectedModelLabel} - {selectedProviderRuntime} - {isScanningWorkspace ? Scanning workspace… : null} -
+
+
+ }>{workspaceLabel} + {workspaceContext?.gitBranch ? `local • ${workspaceContext.gitBranch}` : "local workspace"} + {isScanningWorkspace ? Scanning workspace… : null} +
+ +