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

@@ -17,6 +17,8 @@ export async function GET(request: NextRequest) {
const searchParams = request.nextUrl.searchParams
const includeArchived = searchParams.get('archived') === 'true'
const search = searchParams.get('search')
const notebookId = searchParams.get('notebookId')
const limit = searchParams.get('limit') ? parseInt(searchParams.get('limit')!) : undefined
let where: any = {
userId: session.user.id,
@@ -27,6 +29,10 @@ export async function GET(request: NextRequest) {
where.isArchived = false
}
if (notebookId) {
where.notebookId = notebookId
}
if (search) {
where.OR = [
{ title: { contains: search, mode: 'insensitive' } },
@@ -40,7 +46,8 @@ export async function GET(request: NextRequest) {
{ isPinned: 'desc' },
{ order: 'asc' },
{ updatedAt: 'desc' }
]
],
...(limit ? { take: limit } : {}),
})
return NextResponse.json({