feat(notes): vues structurées tableau/kanban, flashcards et MCP robuste
Some checks failed
CI / Lint, Test & Build (push) Failing after 57s
CI / Deploy production (on server) (push) Has been skipped

Ajoute la base organisable par carnet (schéma, champs partagés, valeurs par note)
avec activation guidée, tableau éditable, kanban et suppression de colonnes.
Corrige le multiselect en vue tableau et enrichit sidebar, grille et i18n FR/EN.
Inclut aussi les améliorations flashcards SM-2, l'audit consentement IA et la
robustesse du serveur MCP (config, validation, rate-limit, métriques).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Antigravity
2026-05-24 23:03:16 +00:00
parent ecd7e57c2e
commit 0784c94242
63 changed files with 10133 additions and 619 deletions

View File

@@ -113,6 +113,7 @@ model Notebook {
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
workflows Workflow[]
flashcardDeck FlashcardDeck?
schema NotebookSchema?
@@index([userId, order])
@@index([userId])
@@ -198,6 +199,7 @@ model Note {
sourceLiveBlocks LiveBlockRef[] @relation("SourceLiveBlocks")
targetLiveBlocks LiveBlockRef[] @relation("TargetLiveBlocks")
flashcards Flashcard[]
properties NoteProperty[]
@@index([isPinned])
@@index([isArchived])
@@ -859,6 +861,42 @@ model BridgeSuggestion {
@@index([clusterAId, clusterBId])
}
model NotebookSchema {
id String @id @default(cuid())
notebookId String @unique
viewSettings String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
notebook Notebook @relation(fields: [notebookId], references: [id], onDelete: Cascade)
properties NotebookProperty[]
}
model NotebookProperty {
id String @id @default(cuid())
schemaId String
name String
type String
options String?
position Int
schema NotebookSchema @relation(fields: [schemaId], references: [id], onDelete: Cascade)
noteValues NoteProperty[]
@@index([schemaId, position])
}
model NoteProperty {
id String @id @default(cuid())
noteId String
propertyId String
value String?
note Note @relation(fields: [noteId], references: [id], onDelete: Cascade)
property NotebookProperty @relation(fields: [propertyId], references: [id], onDelete: Cascade)
@@unique([noteId, propertyId])
@@index([noteId])
@@index([propertyId])
}
model FlashcardDeck {
id String @id @default(cuid())
userId String