fix(keep-notes): sidebar chevron, labels sync, batch org errors, perf guards

- Notebooks: chevron visible when expanded (remove overflow clip), functional expand state
- Labels: sync/cleanup by notebookId, reconcile after note move
- Settings: refresh notebooks after cleanup; label dialog routing
- ConnectionsBadge lazy-load; reminder check persistence; i18n keys

Made-with: Cursor
This commit is contained in:
Sepehr Ramezani
2026-04-13 22:07:09 +02:00
parent fa7e166f3e
commit 39671c6472
16 changed files with 469 additions and 303 deletions

View File

@@ -54,6 +54,9 @@ export interface NotebooksContextValue {
// Actions: Notes
moveNoteToNotebookOptimistic: (noteId: string, notebookId: string | null) => Promise<void>
/** Recharger la liste des carnets (ex. après maintenance étiquettes) */
refreshNotebooks: () => Promise<void>
// Actions: AI (stubs pour l'instant)
suggestNotebookForNote: (noteContent: string) => Promise<Notebook | null>
suggestLabelsForNote: (noteContent: string, notebookId: string) => Promise<string[]>
@@ -262,6 +265,7 @@ export function NotebooksProvider({ children, initialNotebooks = [] }: Notebooks
updateLabel,
deleteLabel,
moveNoteToNotebookOptimistic,
refreshNotebooks: loadNotebooks,
suggestNotebookForNote,
suggestLabelsForNote,
}), [
@@ -279,6 +283,7 @@ export function NotebooksProvider({ children, initialNotebooks = [] }: Notebooks
updateLabel,
deleteLabel,
moveNoteToNotebookOptimistic,
loadNotebooks,
suggestNotebookForNote,
suggestLabelsForNote,
])