feat: architectural grid editor fullPage + slash commands + doc info panel + AI title

This commit is contained in:
Antigravity
2026-05-07 22:29:02 +00:00
parent 0d8252aec0
commit e458b63115
126 changed files with 7652 additions and 1110 deletions

View File

@@ -5,6 +5,7 @@ import prisma from '@/lib/prisma'
import { auth } from '@/auth'
import bcrypt from 'bcryptjs'
import { z } from 'zod'
import { normalizeThemeId } from '@/lib/apply-document-theme'
const ProfileSchema = z.object({
name: z.string().min(2, "Name must be at least 2 characters"),
@@ -88,10 +89,12 @@ export async function updateTheme(theme: string) {
const session = await auth()
if (!session?.user?.id) return { error: 'Unauthorized' }
const normalized = normalizeThemeId(theme)
try {
await prisma.user.update({
where: { id: session.user.id },
data: { theme },
data: { theme: normalized },
})
revalidatePath('/')
revalidatePath('/settings/profile')