FN-7872: add custom terminal shortcut buttons to the Preferences panel
Lets users define, edit, and remove custom terminal shortcut buttons (label + injected key sequence) from the terminal Preferences panel, persisted client-side.
- Add a customShortcuts list to terminalPreferences (kb-terminal-preferences localStorage) with add/edit/remove management
- Add decodeTerminalShortcutSequence to decode \n, \t, \r, \e/\x1b, and \\ escapes for injected sequences
- Render custom shortcut buttons in TerminalModal's shortcut panel, injecting via the focus-preserving sendLiteralShortcut path
- Add management UI (add/edit/remove) for custom shortcuts in the terminal Preferences panel, styled in TerminalModal.css
- Extend TerminalModal and terminalPreferences test coverage for the new custom shortcut behavior
- Document custom terminal shortcuts in docs/dashboard-guide.md
- Add a minor changeset for @runfusion/fusion
Files changed:
.changeset/fn-7872-terminal-custom-shortcuts.md | 7 +
docs/dashboard-guide.md | 7 +-
.../dashboard/app/components/TerminalModal.css | 106 +++++++++++
.../dashboard/app/components/TerminalModal.tsx | 202 ++++++++++++++++++++-
.../components/__tests__/TerminalModal.test.tsx | 183 +++++++++++++++++++
.../utils/__tests__/terminalPreferences.test.ts | 68 +++++++
.../dashboard/app/utils/terminalPreferences.ts | 140 +++++++++++++-
7 files changed, 708 insertions(+), 5 deletions(-)
Fusion-Task-Id: FN-7872
Fusion-Task-Lineage: 9b2df0da-0eb7-4cec-a42b-767e23ff4c2c
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>