Repository navigation
fix #563 - bug: Spacebar does not insert a space in the Dual Editor - #568
Conversation
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
🦋 Changeset detectedLatest commit: ce1ff99 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for openworkflow-editor ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the Dual Editor spacebar fix.
No open issues 🎉
What changed in this PR
Fixes #563 by preventing React Flow from intercepting Space in the Dual Editor’s text pane, while leaving diagram canvas panning unchanged.
Changes:
- Adds React Flow’s
nokeyclass to the text pane so Space reaches Monaco. - Adds an end-to-end regression test for typing text containing spaces in the YAML editor.
- Records a patch release for
@openworkflowspec/dual-editor.
| File | Description |
|---|---|
packages/dual-editor/tests-e2e/dual-editor.spec.ts |
Tests that spaces are preserved when typing in the YAML pane. |
packages/dual-editor/src/DualEditor.tsx |
Adds nokey to isolate text-pane keyboard input from React Flow. |
.changeset/fix-dual-editor-spacebar.md |
Documents the fix in a patch changeset. |
Review effort: Balanced
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
… nokey , like you say Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
There was a problem hiding this comment.
🟡 Changes recommended
Removed test commands leave the text and diagram editors’ Vitest and Playwright suites and the Dual Editor’s Vitest suites unrun in CI and release builds, allowing regressions to go unchecked.
4 open issues
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
Removing DiagramEditor breaks workflow visualization, diagram-to-text editing, and canvas panning, while disabled tests and lint checks weaken regression protection.
8 open issues
Restore the diagram canvas in Dual Editor Require the diagram canvas in the spacebar test Restore the existing browser regression tests Restore unit tests before the browser-test stage Restore the Dual Editor lint check Restore text editor tests to CI and release builds Restore diagram editor tests to CI and release builds Restore Dual Editor unit tests to CI and release builds
Review effort: Balanced
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
There was a problem hiding this comment.
🟡 Changes recommended
Critical regressions remove diagram rendering and prevent text edits from reaching host state, while disabled test and lint gates leave these failures unchecked.
9 open issues
Restore editor state updates and debounced content notifications · New Restore the diagram canvas in Dual Editor Require the diagram canvas in the spacebar test Restore the existing browser regression tests Restore unit tests before the browser-test stage Restore the Dual Editor lint check Restore text editor tests to CI and release builds Restore diagram editor tests to CI and release builds Restore Dual Editor unit tests to CI and release builds
Review effort: Balanced
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
There was a problem hiding this comment.
🟡 Changes recommended
The change removes diagram rendering and breaks external-content updates and host edit notifications, while disabling lint and regression-test gates that would catch these failures.
10 open issues
Restore external content and reset handling · New Restore editor state updates and debounced content notifications Restore the diagram canvas in Dual Editor Require the diagram canvas in the spacebar test Restore the existing browser regression tests Restore unit tests before the browser-test stage Restore the Dual Editor lint check Restore text editor tests to CI and release builds Restore diagram editor tests to CI and release builds Restore Dual Editor unit tests to CI and release builds
Review effort: Balanced
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Critical regressions remove diagram rendering and break edit notifications and external-content resets, while disabled tests and lint checks weaken CI safeguards.
9 open issues
Restore external content and reset handling Restore editor state updates and debounced content notifications Restore the diagram canvas in Dual Editor Restore the existing browser regression tests Restore unit tests before the browser-test stage Restore the Dual Editor lint check Restore text editor tests to CI and release builds Restore diagram editor tests to CI and release builds Restore Dual Editor unit tests to CI and release builds
1 resolved since last review
Review effort: Balanced
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Critical regressions remove the diagram canvas and disable host-content updates and edit notifications, while disabled lint and test gates allow these failures to go unchecked.
9 open issues
Restore external content and reset handling Restore editor state updates and debounced content notifications Restore the diagram canvas in Dual Editor Restore the existing browser regression tests Restore unit tests before the browser-test stage Restore the Dual Editor lint check Restore text editor tests to CI and release builds Restore diagram editor tests to CI and release builds Restore Dual Editor unit tests to CI and release builds
Review effort: Balanced
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Critical regressions remove the diagram pane and break content synchronization and host edit notifications, while disabled test suites and lint checks weaken CI and release validation.
9 open issues
Restore external content and reset handling Restore editor state updates and debounced content notifications Restore the diagram canvas in Dual Editor Restore the existing browser regression tests Restore unit tests before the browser-test stage Restore the Dual Editor lint check Restore text editor tests to CI and release builds Restore diagram editor tests to CI and release builds Restore Dual Editor unit tests to CI and release builds
Review effort: Balanced
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
There was a problem hiding this comment.
🟡 Changes recommended
Critical regressions remove the diagram pane and break host/text content synchronization, while disabled tests and lint checks weaken CI and release validation.
10 open issues
Restore external content and reset handling Restore editor state updates and debounced content notifications Restore the diagram canvas in Dual Editor Keep web-component tests in CI · New Restore the existing browser regression tests Restore unit tests before the browser-test stage Restore the Dual Editor lint check Restore text editor tests to CI and release builds Restore diagram editor tests to CI and release builds Restore Dual Editor unit tests to CI and release builds
Review effort: Balanced
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the text-pane spacebar fix.
No open issues 🎉
10 resolved since last review
Restore external content and reset handling Restore editor state updates and debounced content notifications Restore the diagram canvas in Dual Editor Keep web-component tests in CI Restore the existing browser regression tests Restore unit tests before the browser-test stage Restore the Dual Editor lint check Restore text editor tests to CI and release builds Restore diagram editor tests to CI and release builds Restore Dual Editor unit tests to CI and release builds
Review effort: Balanced


Closes #563
Summary
Apply React Flow's
nokeyclass to the Dual Editor text pane so Space reaches Monaco when the text editor has focus. Space + drag remains available on the diagram canvas.How to test
method: GETand press Space. The line should readmethod: GE T.Preview
Screencast.From.2026-11-26.11-19-29.mp4