Skip to content

Edit the value of the Input node in a popover shared with the Const node - #73

Merged
chelproc merged 1 commit into
mainfrom
value-editor
Nov 1, 2026
Merged

chelproc merged 1 commit into
mainfrom
value-editor

Conversation

@chelproc

@chelproc chelproc commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

The value editor of the Const node is extracted into a shared ValueEditor component, and the Input node now uses it to edit values of more than 8 bits.

  • ValueEditor edits a value as text in binary, hexadecimal or UTF-8. The value is changed with the Apply button placed next to the mode buttons. With readOnly, the text cannot be edited, but the mode can still be changed.
  • With bitWidth, the value is padded with leading zeros to the bit width, and values that do not fit are rejected.
  • The Const node uses ValueEditor, and is read-only outside the edit mode.
  • The Input node shows an edit button next to values of more than 8 bits, which opens ValueEditor in a popover. Clicking the value no longer increments it, and wrappingIncrementSimulationValue is removed.
  • Values of more than 8 bits are shown in a monospace font.
Const node Input node
Const node Input node

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee with  Cloudflare Pages  Cloudflare Pages

Latest commit: c20fed4
Status: ✅  Deploy successful!
Preview URL: https://c94b607c.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev
Branch Preview URL: https://value-editor.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev

View logs

@chelproc
chelproc merged commit ea0f67a into main Nov 1, 2026
2 checks passed
@chelproc
chelproc deleted the value-editor branch November 1, 2026 04:49
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.

1 participant