Skip to content

Commit 9ef4986

Browse files
committed
Redesign UI with dark Vercel shadcn system
1 parent 4f1524f commit 9ef4986

51 files changed

Lines changed: 3836 additions & 1565 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bun.lock

Lines changed: 572 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "radix-nova",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"iconLibrary": "lucide",
14+
"rtl": false,
15+
"aliases": {
16+
"components": "@/components",
17+
"utils": "@/lib/utils",
18+
"ui": "@/components/ui",
19+
"lib": "@/lib",
20+
"hooks": "@/hooks"
21+
},
22+
"menuColor": "default",
23+
"menuAccent": "subtle",
24+
"registries": {}
25+
}

convex/chatSessions.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const appendMessages = mutation({
4343
const identity = await ctx.auth.getUserIdentity()
4444
if (!identity) throw new Error("Not authenticated")
4545

46-
const session = await ctx.db.get(args.sessionId)
46+
const session = await ctx.db.get("chatSessions", args.sessionId)
4747
if (!session || session.tokenIdentifier !== identity.tokenIdentifier) {
4848
throw new Error("Session not found")
4949
}
@@ -57,7 +57,7 @@ export const appendMessages = mutation({
5757
if (args.title) {
5858
patch.title = args.title
5959
}
60-
await ctx.db.patch(args.sessionId, patch)
60+
await ctx.db.patch("chatSessions", args.sessionId, patch)
6161
return null
6262
},
6363
})
@@ -68,7 +68,7 @@ export const get = query({
6868
const identity = await ctx.auth.getUserIdentity()
6969
if (!identity) return null
7070

71-
const session = await ctx.db.get(args.sessionId)
71+
const session = await ctx.db.get("chatSessions", args.sessionId)
7272
if (!session || session.tokenIdentifier !== identity.tokenIdentifier) {
7373
return null
7474
}
@@ -128,9 +128,9 @@ export const remove = mutation({
128128
const identity = await ctx.auth.getUserIdentity()
129129
if (!identity) throw new Error("Not authenticated")
130130

131-
const session = await ctx.db.get(args.sessionId)
131+
const session = await ctx.db.get("chatSessions", args.sessionId)
132132
if (session && session.tokenIdentifier === identity.tokenIdentifier) {
133-
await ctx.db.delete(args.sessionId)
133+
await ctx.db.delete("chatSessions", args.sessionId)
134134
}
135135
return null
136136
},

eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const eslintConfig = defineConfig([
1515
"build/**",
1616
"next-env.d.ts",
1717
"convex/_generated/**",
18+
".agents/**",
1819
]),
1920
// Convex recommended rules (includes no-old-registered-function-syntax,
2021
// require-args-validator, explicit-table-ids, no-filter-in-query,
@@ -38,7 +39,9 @@ const eslintConfig = defineConfig([
3839
languageOptions: {
3940
parser: tsParser,
4041
parserOptions: {
41-
projectService: true,
42+
projectService: {
43+
allowDefaultProject: ["vitest.config.ts"],
44+
},
4245
tsconfigRootDir: import.meta.dirname,
4346
},
4447
},

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,20 @@
1717
"@clerk/themes": "^2.4.57",
1818
"@daytona/sdk": "^0.167.0",
1919
"@lobehub/icons": "^5.4.0",
20+
"class-variance-authority": "^0.7.1",
21+
"clsx": "^2.1.1",
2022
"convex": "^1.35.1",
2123
"lucide-react": "^1.11.0",
2224
"next": "16.2.4",
2325
"node-polyfill-webpack-plugin": "^4.1.0",
26+
"radix-ui": "^1.4.3",
2427
"react": "19.2.4",
2528
"react-dom": "19.2.4",
2629
"react-markdown": "^10.1.0",
2730
"rehype-highlight": "^7.0.2",
31+
"shadcn": "^4.4.0",
32+
"tailwind-merge": "^3.5.0",
33+
"tw-animate-css": "^1.4.0",
2834
"unenv": "^1.10.0"
2935
},
3036
"devDependencies": {

src/__tests__/components/chat/use-chat.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ vi.mock("@/lib/providers/check-credit", () => ({
1818
}))
1919

2020
const mockCreateSession = vi.fn().mockResolvedValue("test-session-id")
21-
const mockAppendMessages = vi.fn().mockResolvedValue(null)
2221

2322
vi.mock("convex/react", () => ({
2423
useMutation: () => mockCreateSession,

0 commit comments

Comments
 (0)