Skip to content
Merged
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
4 changes: 2 additions & 2 deletions apps/desktop/scripts/smoke-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* the first render). For production mode (no React DevTools message), we
* instead check that no fatal errors appeared.
*/
import { spawn, execSync } from "node:child_process";
import { execSync, spawn } from "node:child_process";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";

Expand Down Expand Up @@ -75,7 +75,7 @@ child.on("exit", () => {
for (const f of failures) {
console.error(` • ${f}`);
}
console.error("\nFull output:\n" + output);
console.error(`\nFull output:\n${output}`);
process.exit(1);
}

Expand Down
25 changes: 25 additions & 0 deletions apps/renderer/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/index.css",
"baseColor": "zinc",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"rtl": false,
"aliases": {
"components": "#/components",
"utils": "#/lib/utils",
"ui": "#/components/ui",
"lib": "#/lib",
"hooks": "#/hooks"
},
"registries": {
"@coss": "https://coss.com/ui/r/{name}.json"
}
}
2 changes: 1 addition & 1 deletion apps/renderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Electron Todo</title>
</head>
<body class="bg-slate-100">
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down
5 changes: 5 additions & 0 deletions apps/renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@
},
"dependencies": {
"@acme/contracts": "workspace:*",
"@base-ui/react": "^1.1.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"highlight.js": "^11.11.1",
"lucide-react": "^0.563.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-markdown": "^10.1.0",
"rehype-highlight": "^7.0.2",
"remark-gfm": "^4.0.1",
"tailwind-merge": "^3.4.0",
"zod": "^3.24.1"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions apps/renderer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function Layout() {

if (!api) {
return (
<div className="flex h-screen flex-col bg-[#0c0c0c] text-[#e0e0e0]">
<div className="flex h-screen flex-col bg-background text-foreground">
<div className="drag-region h-[52px] shrink-0" />
<div className="flex flex-1 items-center justify-center">
<p className="text-sm text-[#a0a0a0]/60">
<p className="text-sm text-muted-foreground">
Native bridge unavailable. Launch through Electron.
</p>
</div>
Expand All @@ -43,7 +43,7 @@ function Layout() {
}

return (
<div className="flex h-screen overflow-hidden bg-[#0c0c0c] text-[#e0e0e0]">
<div className="flex h-screen overflow-hidden bg-background text-foreground">
<EventRouter />
<Sidebar />
<ChatView />
Expand Down
2 changes: 1 addition & 1 deletion apps/renderer/src/components/ChatMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const markdownComponents: Components = {

export default function ChatMarkdown({ text }: ChatMarkdownProps) {
return (
<div className="chat-markdown text-sm leading-relaxed text-[#d0d0d0]">
<div className="chat-markdown text-sm leading-relaxed text-foreground/80">
<ReactMarkdown
remarkPlugins={[remarkGfm]}
rehypePlugins={[[rehypeHighlight, { detect: true, ignoreMissing: true }]]}
Expand Down
Loading