@devries-cameron20 / t3code Mirror · read-only / commits / 9ef1c0c9a3
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 17:15 UTC

wordmakr

Julius Marminge committed Feb 24, 2026 at 22:40 UTC 9ef1c0c9a3c056fd0ed309b5b0ba0cda72848dd0
1 file changed +32 -9
apps/web/src/components/Sidebar.tsx
+32 -9
@@ -7,7 +7,13 @@ import { useAppSettings } from "../appSettings";
7 import { isElectron } from "../env";
8 import { APP_STAGE_LABEL } from "../branding";
9 import { DEFAULT_MODEL } from "../model-logic";
10 -import { asProjectId, asThreadId, newCommandId, newProjectId, newThreadId } from "../lib/orchestrationIds";
10 +import {
11 + asProjectId,
12 + asThreadId,
13 + newCommandId,
14 + newProjectId,
15 + newThreadId,
16 +} from "../lib/orchestrationIds";
17 import { useStore } from "../store";
18 import { isChatNewLocalShortcut, isChatNewShortcut } from "../keybindings";
19 import { type Thread } from "../types";
@@ -120,6 +126,22 @@ function terminalStatusIndicator(thread: Thread): TerminalStatusIndicator | null
126 };
127 }
128
129 +function T3Wordmark() {
130 + return (
131 + <svg
132 + aria-label="T3"
133 + className="h-3 w-auto shrink-0 text-foreground"
134 + viewBox="15.5309 37 94.3941 56.96"
135 + xmlns="http://www.w3.org/2000/svg"
136 + >
137 + <path
138 + d="M33.4509 93V47.56H15.5309V37H64.3309V47.56H46.4109V93H33.4509ZM86.7253 93.96C82.832 93.96 78.9653 93.4533 75.1253 92.44C71.2853 91.3733 68.032 89.88 65.3653 87.96L70.4053 78.04C72.5386 79.5867 75.0186 80.8133 77.8453 81.72C80.672 82.6267 83.5253 83.08 86.4053 83.08C89.6586 83.08 92.2186 82.44 94.0853 81.16C95.952 79.88 96.8853 78.12 96.8853 75.88C96.8853 73.7467 96.0586 72.0667 94.4053 70.84C92.752 69.6133 90.0853 69 86.4053 69H80.4853V60.44L96.0853 42.76L97.5253 47.4H68.1653V37H107.365V45.4L91.8453 63.08L85.2853 59.32H89.0453C95.9253 59.32 101.125 60.8667 104.645 63.96C108.165 67.0533 109.925 71.0267 109.925 75.88C109.925 79.0267 109.099 81.9867 107.445 84.76C105.792 87.48 103.259 89.6933 99.8453 91.4C96.432 93.1067 92.0586 93.96 86.7253 93.96Z"
139 + fill="currentColor"
140 + />
141 + </svg>
142 + );
143 +}
144 +
145 export default function Sidebar() {
146 const { state, dispatch } = useStore();
147 const api = useNativeApi();
@@ -152,7 +174,8 @@ export default function Sidebar() {
174 if (!api) return Promise.resolve();
175 const threadId = newThreadId();
176 const createdAt = new Date().toISOString();
155 - const model = state.projects.find((project) => project.id === projectId)?.model ?? DEFAULT_MODEL;
177 + const model =
178 + state.projects.find((project) => project.id === projectId)?.model ?? DEFAULT_MODEL;
179 return (async () => {
180 await api.orchestration.dispatchCommand({
181 type: "thread.create",
@@ -272,7 +295,7 @@ export default function Sidebar() {
295 if (appSettings.confirmThreadDelete) {
296 const confirmed = await api.dialogs.confirm(
297 [
275 - `Delete thread \"${thread.title}\"?`,
298 + `Delete thread "${thread.title}"?`,
299 "This permanently clears conversation history for this thread.",
300 ].join("\n"),
301 );
@@ -404,8 +427,7 @@ export default function Sidebar() {
427 projectId: asProjectId(projectId),
428 });
429 } catch (error) {
407 - const message =
408 - error instanceof Error ? error.message : "Unknown error deleting project.";
430 + const message = error instanceof Error ? error.message : "Unknown error deleting project.";
431 console.error("Failed to remove project", { projectId, error });
432 toastManager.add({
433 type: "error",
@@ -449,13 +471,14 @@ export default function Sidebar() {
471 return (
472 <>
473 <SidebarHeader
452 - className={`gap-3 ${isElectron ? "drag-region h-[52px] px-4 pl-[76px]" : "px-3 py-2 sm:gap-2.5 sm:px-4 sm:py-3"}`}
474 + className={`gap-3 ${isElectron ? "drag-region h-[52px] px-4 pl-[88px]" : "px-3 py-2 sm:gap-2.5 sm:px-4 sm:py-3"}`}
475 >
476 <div className="flex items-center gap-2">
477 <SidebarTrigger className="shrink-0 md:hidden" />
456 - <div className="flex min-w-0 flex-1 items-center gap-2">
457 - <span className="truncate text-sm font-semibold tracking-tight text-foreground">
458 - T3 <span className="font-normal text-muted-foreground">Code</span>
478 + <div className="flex min-w-0 flex-1 items-center gap-1">
479 + <T3Wordmark />
480 + <span className="truncate text-base font-medium tracking-tight text-muted-foreground">
481 + Code
482 </span>
483 <span className="rounded-full bg-muted/50 px-1.5 py-0.5 text-[9px] font-medium uppercase tracking-widest text-muted-foreground/60">
484 {APP_STAGE_LABEL}