Version Packages (orchestrator) #1907
Open
+226
−169
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Releases
@red-hat-developer-hub/[email protected]
Minor Changes
5771568: Add dynamic conditional visibility for ui:hidden
Conditional Hiding Feature:
HiddenConditiontype supporting boolean and condition objectsevaluateHiddenConditionutility for evaluating hide conditionswhen,is,isNot, andisEmptyoperatorsallOf(AND) andanyOf(OR) logicconfig.server.port)HiddenFieldTemplateto dynamically evaluate hide conditions based on form datagenerateReviewTableDatato respect conditional hiding in review pagesCondition Object Patterns:
{ when: "field", is: "value" }- Hide when field equals value{ when: "field", is: ["val1", "val2"] }- Hide when field equals any value (OR){ when: "field", isNot: "value" }- Hide when field does NOT equal value{ when: "field", isEmpty: true }- Hide when field is empty{ allOf: [...] }- Hide when ALL conditions are true (AND){ anyOf: [...] }- Hide when ANY condition is true (OR)Documentation:
orchestratorFormWidgets.mdwith comprehensive examples of conditional hidingTesting:
c35d07c: Add fetch:error:ignoreUnready and fetch:response:default options for form widgets
Feature 1: fetch:error:ignoreUnready
When using widgets with
fetch:retriggerdependencies, the initial fetch often fails because dependent fields don't have values yet. This results in HTTP errors being displayed during initial load.fetch:error:ignoreUnreadyoption to suppress fetch error display until allfetch:retriggerdependencies have non-empty valuesFeature 2: fetch:response:default
Widgets previously required
fetch:response:valuefor defaults, meaning fetch must succeed. This adds static fallback defaults.fetch:response:defaultoption for static default values applied immediately on form initializationOrchestratorForm, ensuring controlled components work correctlyUsage Examples:
{ "action": { "ui:widget": "ActiveTextInput", "ui:props": { "fetch:url": "...", "fetch:retrigger": ["current.appName"], "fetch:error:ignoreUnready": true, "fetch:response:default": "create" } } }2be9dcc: Fix custom widgets not rendering in dependencies+oneOf (RHIDP-10952)
Widget Rendering Fix:
generateUiSchemato extractui:properties fromdependencies+oneOfbranchesForm Data Management:
pruneFormDatato correctly handle oneOf schemas with dependenciesPatch Changes
f030878: Fix validation errors incorrectly shown on wrong step when navigating back.
When using widgets with
validate:url, thegetExtraErrorscallback validates all fields across all steps and returns a nested error object. The previous logic had full error object when the current step had no errors, causing validation errors from other steps to appear on the wrong step.This fix:
extraErrorstoundefinedwhen current step has no errors8524940: Fix TypeScript compilation errors in orchestrator plugins
Updated dependencies [8524940]
Updated dependencies [d91ef65]
@red-hat-developer-hub/[email protected]
Minor Changes
c35d07c: Add fetch:error:ignoreUnready and fetch:response:default options for form widgets
Feature 1: fetch:error:ignoreUnready
When using widgets with
fetch:retriggerdependencies, the initial fetch often fails because dependent fields don't have values yet. This results in HTTP errors being displayed during initial load.fetch:error:ignoreUnreadyoption to suppress fetch error display until allfetch:retriggerdependencies have non-empty valuesFeature 2: fetch:response:default
Widgets previously required
fetch:response:valuefor defaults, meaning fetch must succeed. This adds static fallback defaults.fetch:response:defaultoption for static default values applied immediately on form initializationOrchestratorForm, ensuring controlled components work correctlyUsage Examples:
{ "action": { "ui:widget": "ActiveTextInput", "ui:props": { "fetch:url": "...", "fetch:retrigger": ["current.appName"], "fetch:error:ignoreUnready": true, "fetch:response:default": "create" } } }5c9f044: Add object type support in ui:props for fetch:response:* properties (RHIDP-11054)
Type System Enhancement:
UiPropstype to acceptJsonValueinstead ofstringforfetch:response:*propertiesRuntime Safety:
useTemplateUnitEvaluatorto ensure selectors are strings when evaluated as JSONata expressionsDocumentation:
orchestratorFormWidgets.mdto document object type supportThis change allows users to reference object attributes more easily in ui:props while maintaining type safety and backward compatibility.
Patch Changes
@red-hat-developer-hub/[email protected]
Patch Changes
8524940: Fix TypeScript compilation errors in orchestrator plugins
48fb7f2: Fix browser tab showing
[object Object]on workflow instance pageReplace
<Trans>component witht()function for page title to ensure a string is returned instead of an element, which was causing[object Object]to appear in the browser tab title.cc27a4b: Migrate from Moment.js to Luxon for date/time handling
Breaking Change: Removed deprecated Moment.js dependency
momentandreact-momentwithluxonfor all date/time operationsformatDurationutility function that mimics moment's.humanize()behaviorUpdated dependencies [5771568]
Updated dependencies [c35d07c]
Updated dependencies [f030878]
Updated dependencies [8524940]
Updated dependencies [2be9dcc]
Updated dependencies [d91ef65]
@red-hat-developer-hub/[email protected]
Patch Changes
@types/expressto4.17.25.Updated dependency
@openapitools/openapi-generator-clito2.25.2.@red-hat-developer-hub/[email protected]
Patch Changes
@types/expressto4.17.25.Updated dependency
@openapitools/openapi-generator-clito2.25.2.@red-hat-developer-hub/[email protected]
Patch Changes
@red-hat-developer-hub/[email protected]
Patch Changes