fix: Add debounced Undo/Redo system to avoid character-by-character history

- Add debounced state updates for title and content (500ms delay)
- Immediate UI updates with delayed history saving
- Prevent one-letter-per-undo issue
- Add cleanup for debounce timers on unmount
This commit is contained in:
2026-01-04 14:28:11 +01:00
parent 355ffb59bb
commit 8d95f34fcc
4106 changed files with 630392 additions and 0 deletions

25
mcp-server/node_modules/.prisma/client/schema.prisma generated vendored Normal file
View File

@@ -0,0 +1,25 @@
generator client {
provider = "prisma-client-js"
output = "../node_modules/.prisma/client"
}
datasource db {
provider = "sqlite"
url = "file:../../keep-notes/prisma/dev.db"
}
model Note {
id String @id @default(cuid())
title String?
content String
color String @default("default")
type String @default("text")
checkItems String?
labels String?
images String?
isPinned Boolean @default(false)
isArchived Boolean @default(false)
order Int @default(0)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}