Skip to content

Enh/kds 791 use error message from component#320

Open
robin-gerling wants to merge 4 commits intomasterfrom
enh/KDS-791-use-error-message-from-component
Open

Enh/kds 791 use error message from component#320
robin-gerling wants to merge 4 commits intomasterfrom
enh/KDS-791-use-error-message-from-component

Conversation

@robin-gerling
Copy link
Copy Markdown
Contributor

No description provided.

@robin-gerling robin-gerling requested a review from a team as a code owner April 15, 2026 10:03
@robin-gerling robin-gerling requested review from Copilot and knime-ghub-bot and removed request for Copilot April 15, 2026 10:03
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 15, 2026

🦋 Changeset detected

Latest commit: b61c690

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

This PR includes changesets to release 1 package
Name Type
@knime/jsonforms Patch

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

Copilot AI review requested due to automatic review settings April 15, 2026 10:05
@robin-gerling robin-gerling force-pushed the enh/KDS-791-use-error-message-from-component branch from 0ccaf10 to f29e13b Compare April 15, 2026 10:05
@robin-gerling robin-gerling requested review from a team and RainerSchmoeger as code owners April 15, 2026 10:05
@robin-gerling robin-gerling force-pushed the enh/KDS-791-use-error-message-from-component branch from f29e13b to ae9aab7 Compare April 15, 2026 10:06
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates JSONForms control validation rendering to prefer KDS component sub-text for error display (where supported), while retaining the custom wrapper for controls that cannot show sub-text directly.

Changes:

  • Add a shared helper (getValidationSubText) and pass the last validation error into sub-text for selected KDS-based controls (text/number/date-time format picker), with new/updated unit tests.
  • Extend withLabel with a validationDisplay option and update date/time renderers to explicitly use the custom error wrapper.
  • Minor layout/styling adjustments (label header sizing, description popover spacing, horizontal layout alignment tweak) plus a changeset for @knime/jsonforms.

Reviewed changes

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

Show a summary per file
File Description
packages/jsonforms/src/uiComponents/tests/TextControl.test.ts Adds messages to props and asserts last error is forwarded as KDS subText.
packages/jsonforms/src/uiComponents/tests/NumberControl.test.ts Adds messages to props and asserts last error is forwarded as KDS subText.
packages/jsonforms/src/uiComponents/tests/IntegerControl.test.ts Updates test props to include messages.
packages/jsonforms/src/uiComponents/tests/DateTimeFormatPickerControl.test.ts Adds messages to props and asserts last error is forwarded as KDS subText.
packages/jsonforms/src/uiComponents/TextControl.vue Computes and forwards validation sub-text to KdsTextInput.
packages/jsonforms/src/uiComponents/NumberControlBase.vue Computes and forwards validation sub-text to KdsNumberInput.
packages/jsonforms/src/uiComponents/DateTimeFormatPickerControl.vue Computes and forwards validation sub-text to KdsDateTimeFormatInput.
packages/jsonforms/src/renderers/zonedDateTimeRenderer.ts Switches withLabel to validationDisplay: "customWrapper".
packages/jsonforms/src/renderers/localTimeRenderer.ts Switches withLabel to validationDisplay: "customWrapper".
packages/jsonforms/src/renderers/localDateRenderer.ts Switches withLabel to validationDisplay: "customWrapper".
packages/jsonforms/src/renderers/dateTimeRenderer.ts Switches withLabel to validationDisplay: "customWrapper".
packages/jsonforms/src/renderers/checkboxRenderer.ts Removes withErrorMessage wrapper around checkbox renderer.
packages/jsonforms/src/layoutComponents/HorizontalLayout.vue Removes align-items rule from horizontal layout container.
packages/jsonforms/src/higherOrderComponents/control/withLabel.ts Adds validationDisplay config and changes default validation wrapping behavior.
packages/jsonforms/src/higherOrderComponents/control/validation/util.ts New helper to extract last validation error for sub-text.
packages/jsonforms/src/higherOrderComponents/control/errorMessage/withErrorMessage.ts Broadens config typing (fill optional, includes validationDisplay).
packages/jsonforms/src/higherOrderComponents/control/tests/withLabel.test.ts Updates expectations now that messages are passed through.
packages/jsonforms/src/higherOrderComponents/control/LabeledControl.vue Adds min-height to stabilize header height across label/button variants.
packages/jsonforms/src/higherOrderComponents/control/DescriptionPopover.vue Adjusts spacing via inline style on the info toggle button.
.changeset/neat-islands-drum.md Declares a patch release note for the jsonforms package.

Comment thread packages/jsonforms/src/higherOrderComponents/control/withLabel.ts
Comment thread packages/jsonforms/src/renderers/checkboxRenderer.ts
@robin-gerling robin-gerling force-pushed the enh/KDS-791-use-error-message-from-component branch from ae9aab7 to 9983feb Compare April 15, 2026 10:22
Copilot AI review requested due to automatic review settings April 15, 2026 11:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread packages/jsonforms/src/higherOrderComponents/control/DescriptionPopover.vue Outdated
@sonarqubecloud
Copy link
Copy Markdown

…out labels

KDS-791 (Use error message from component instead of custom implementation)
... for specific components. I.e., number input, text input, and date time format input

KDS-791 (Use error message from component instead of custom implementation)
KDS-791 (Use error message from component instead of custom implementation)
KDS-791 (Use error message from component instead of custom implementation)
@robin-gerling robin-gerling force-pushed the enh/KDS-791-use-error-message-from-component branch from 3c2f94a to b61c690 Compare April 15, 2026 12:39
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.

2 participants