gsxdsm
af66b382e0
FN-8755: add undo and redo controls to file editor
Add localized CodeMirror history controls while preserving current editor mode during external content resets.
- Add native undo/redo commands, toolbar controls, keyboard shortcuts, and translations
- Reset history for accepted external replacements while retaining stale self-echo history
- Cover simultaneous content and read-only transitions and document editor shortcuts
Files changed:
.changeset/fn-8755-file-editor-history.md | 7 ++
docs/dashboard-guide.md | 2 +-
packages/dashboard/app/components/FileEditor.tsx | 96 ++++++++++++------
.../app/components/__tests__/FileEditor.test.tsx | 108 +++++++++++++++++++++
packages/dashboard/package.json | 3 +-
packages/i18n/locales/en/app.json | 2 +
packages/i18n/locales/es/app.json | 20 +++-
packages/i18n/locales/fr/app.json | 20 +++-
packages/i18n/locales/ko/app.json | 20 +++-
packages/i18n/locales/zh-CN/app.json | 20 +++-
packages/i18n/locales/zh-TW/app.json | 20 +++-
packages/i18n/src/resources.d.ts | 2 +
pnpm-lock.yaml | 45 ++++++---
13 files changed, 294 insertions(+), 71 deletions(-)
Fusion-Task-Id: FN-8755
Fusion-Task-Lineage: 1c0bdb9b-f866-4e01-8002-afe27f34d670
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-08-02 23:46:16 -07:00
..
2026-08-02 23:46:16 -07:00
2026-06-20 06:46:35 -07:00
2026-08-02 23:46:16 -07:00
2026-08-02 20:31:14 -07:00
2026-06-03 09:03:16 -07:00
2026-08-02 23:39:03 -07:00
2026-06-03 09:03:16 -07:00
2026-06-08 15:19:27 -07:00