Skip to content

fix #563 - bug: Spacebar does not insert a space in the Dual Editor - #568

Open
fantonangeli wants to merge 16 commits into
open-workflow-specification:mainfrom
fantonangeli:issue-563-bug-Spacebar-does-not-insert-a-space-in-the-Dual-Editor
Open

fantonangeli wants to merge 16 commits into
open-workflow-specification:mainfrom
fantonangeli:issue-563-bug-Spacebar-does-not-insert-a-space-in-the-Dual-Editor

Conversation

@fantonangeli

Copy link
Copy Markdown
Member

Closes #563

Summary

Apply React Flow's nokey class 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

  1. In Storybook, open Dual Editor > YAML Editor.
  2. Place the caret between the E and T in method: GET and press Space. The line should read method: GE T.
  3. Hold Space and drag on an empty part of the diagram canvas. The canvas should pan.
  4. Repeat both checks in the Vanilla Web Component example.

Preview

Screencast.From.2026-11-26.11-19-29.mp4

Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 10:20
@changeset-bot

changeset-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ce1ff99

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When 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

@netlify

netlify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for openworkflow-editor ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ce1ff99
🔍 Latest deploy log https://app.netlify.com/projects/openworkflow-editor/deploys/6b09609d44f6f9a3e54a8193
😎 Deploy Preview https://deploy-preview-568--openworkflow-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 nokey class 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>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 12:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the Dual Editor spacebar fix.

No open issues 🎉

Review effort: Balanced

Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 13:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the text-pane spacebar fix.

No open issues 🎉

Review effort: Balanced

… nokey , like you say

Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 14:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Removing DiagramEditor leaves the diagram pane empty, disabling workflow visualization, diagram editing, and Space+drag panning.

1 open issue

Review effort: Balanced

Comment thread packages/dual-editor/src/DualEditor.tsx Resolved
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 14:40
@fantonangeli
fantonangeli removed the request for review from Copilot November 26, 2026 14:41
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
@fantonangeli
fantonangeli requested a balanced review from Copilot and removed request for Copilot November 26, 2026 14:48
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 14:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread packages/dual-editor/package.json Resolved
Comment thread packages/text-editor/package.json Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 16:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread packages/dual-editor/src/DualEditor.tsx Resolved
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 16:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread packages/dual-editor/src/DualEditor.tsx Resolved
Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 17:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 17:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Fabrizio Antonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 10:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Spacebar does not insert a space in the Dual Editor

2 participants