feat: note history modal with restore, diff comparison, and dynamic UI updates
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m14s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m14s
- Complete rewrite of note-history-modal: version list with inline restore/delete,
split diff view with synced scrolling, rich preview for markdown/richtext/checklist
- Fix restore not updating editor: use key={id-updatedAt} on NoteInlineEditor to
force remount on restore, and add sync useEffect to reset local state on prop changes
- Add sync useEffect in NoteEditor for external note updates
- Add historyEnabled to NOTE_LIST_SELECT (no more 'Activer' on every modal open)
- Replace browser confirm() with shadcn AlertDialog for delete confirmation
- Add i18n keys: currentVersion, compareVersions, diffTitle, diffSelectHint, deleteVersionDesc
- Install diff + @types/diff for visual line diffing
- Fix MasonryGrid render-phase sync to preserve local sizes
- Update notes-tabs-view merge logic for restored note propagation
- Remove debug console.log from restoreNoteVersion
This commit is contained in:
@@ -167,7 +167,8 @@
|
||||
"versionSaved": "Version saved",
|
||||
"deleteVersion": "Delete this version",
|
||||
"versionDeleted": "Version deleted",
|
||||
"deleteVersionConfirm": "Delete this version permanently?",
|
||||
"deleteVersionConfirm": "Delete this version?",
|
||||
"deleteVersionDesc": "This action cannot be undone. The version will be permanently deleted from the history.",
|
||||
"historyMode": "History mode",
|
||||
"historyModeManual": "Manual (commit button)",
|
||||
"historyModeAuto": "Automatic (smart)",
|
||||
@@ -183,6 +184,10 @@
|
||||
"enableHistory": "Enable history",
|
||||
"historyEmpty": "No versions available",
|
||||
"historySelectVersion": "Select a version to preview its content",
|
||||
"currentVersion": "current",
|
||||
"compareVersions": "Compare",
|
||||
"diffTitle": "Comparison",
|
||||
"diffSelectHint": "Click on 2 versions in the list to compare them",
|
||||
"sortBy": "Sort by",
|
||||
"sortDateDesc": "Date (newest)",
|
||||
"sortDateAsc": "Date (oldest)",
|
||||
|
||||
Reference in New Issue
Block a user