Skip to content

fix: ReadOnlyProperties view - #371

Open
lornakelly wants to merge 1 commit into
open-workflow-specification:feature/node-editingfrom
lornakelly:read-only-fields
Open

fix: ReadOnlyProperties view#371
lornakelly wants to merge 1 commit into
open-workflow-specification:feature/node-editingfrom
lornakelly:read-only-fields

Conversation

@lornakelly

@lornakelly lornakelly commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Continuing on from #367

The new ReadOnlyProperties is the dedicated view for when isReadOnly prop is true (MVP).

Currently the read only fields are displayed as different field controls disabled. This PR addresses this and displays read only fields as they should be displayed. Initially we implemented so that the same fields would switch from read only to editing but after design sessions it is better to keep them completely separate

Before
Screenshot 2026-08-28 at 16 44 42

After
Screenshot 2026-08-28 at 16 45 43

@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for openworkflow-editor ready!

Name Link
🔨 Latest commit 545d64c
🔍 Latest deploy log https://app.netlify.com/projects/openworkflow-editor/deploys/6a91afcfdfab420008b341f8
😎 Deploy Preview https://deploy-preview-371--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.

@lornakelly
lornakelly requested a lite review from Copilot August 28, 2026 15:47
@lornakelly lornakelly changed the title fix: Read only property mode fix: ReadOnlyProperties view Aug 28, 2026

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.

Pull request overview

Updates the side-panel “Properties” rendering so read-only properties are presented as static text/shape summaries (not disabled form controls), aligning the UI with the new ReadOnlyProperties view direction from #367.

Changes:

  • Replaces property-row rendering with a static PropertyValue presenter (including long-string blocks and array/object shape placeholders).
  • Adds/updates CSS to support monospace value rendering and long-value blocks.
  • Adds dedicated ReadOnlyProperties tests and updates NodeDetailsView tests to assert text-based rendering.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/open-workflow-diagram-editor/tests/side-panel/ReadOnlyProperties.test.tsx Adds focused coverage for static rendering across all DetailField kinds.
packages/open-workflow-diagram-editor/tests/side-panel/NodeDetailsView.test.tsx Updates assertions from disabled controls to literal text; adds “no form controls” expectation.
packages/open-workflow-diagram-editor/src/styles.css Introduces a shared --dec-font-mono CSS variable.
packages/open-workflow-diagram-editor/src/side-panel/SidePanel.css Styles for .dec-sidebar-value* and long-value blocks; switches error field to use --dec-font-mono.
packages/open-workflow-diagram-editor/src/side-panel/Fields.tsx Implements PropertyValue and routes PropertyField to use it instead of form controls.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Signed-off-by: lornakelly <lornakelly88@gmail.com>

@handreyrc handreyrc 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.

LGTM!

Thanks

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.

3 participants