From fa166eabdde4b0769a25773f5fba845f56842008 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 16 Dec 2025 11:45:01 +0000 Subject: [PATCH] Version Packages --- .../.changeset/dynamic-ui-hidden.md | 37 ------------ .../.changeset/fix-extra-errors-wrong-step.md | 12 ---- .../fix-workflow-instance-browser-title.md | 7 --- .../.changeset/migrate-moment-to-luxon.md | 11 ---- .../.changeset/object-type-uiprops-support.md | 23 -------- .../.changeset/oneof-support-feature.md | 16 ----- .../.changeset/renovate-7505a0d.md | 7 --- .../plugins/orchestrator-backend/CHANGELOG.md | 9 +++ .../plugins/orchestrator-backend/package.json | 2 +- .../plugins/orchestrator-common/CHANGELOG.md | 7 +++ .../plugins/orchestrator-common/package.json | 2 +- .../orchestrator-form-api/CHANGELOG.md | 7 +++ .../orchestrator-form-api/package.json | 2 +- .../orchestrator-form-react/CHANGELOG.md | 59 +++++++++++++++++++ .../orchestrator-form-react/package.json | 2 +- .../orchestrator-form-widgets/CHANGELOG.md | 27 +++++++++ .../orchestrator-form-widgets/package.json | 2 +- .../plugins/orchestrator/CHANGELOG.md | 23 ++++++++ .../plugins/orchestrator/package.json | 2 +- .../CHANGELOG.md | 7 +++ .../package.json | 2 +- 21 files changed, 146 insertions(+), 120 deletions(-) delete mode 100644 workspaces/orchestrator/.changeset/dynamic-ui-hidden.md delete mode 100644 workspaces/orchestrator/.changeset/fix-extra-errors-wrong-step.md delete mode 100644 workspaces/orchestrator/.changeset/fix-workflow-instance-browser-title.md delete mode 100644 workspaces/orchestrator/.changeset/migrate-moment-to-luxon.md delete mode 100644 workspaces/orchestrator/.changeset/object-type-uiprops-support.md delete mode 100644 workspaces/orchestrator/.changeset/oneof-support-feature.md delete mode 100644 workspaces/orchestrator/.changeset/renovate-7505a0d.md diff --git a/workspaces/orchestrator/.changeset/dynamic-ui-hidden.md b/workspaces/orchestrator/.changeset/dynamic-ui-hidden.md deleted file mode 100644 index 4a3c5d2d4b..0000000000 --- a/workspaces/orchestrator/.changeset/dynamic-ui-hidden.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -'@red-hat-developer-hub/backstage-plugin-orchestrator-form-react': minor ---- - -Add dynamic conditional visibility for ui:hidden - -**Conditional Hiding Feature:** - -- Add `HiddenCondition` type supporting boolean and condition objects -- Implement `evaluateHiddenCondition` utility for evaluating hide conditions -- Support condition objects with `when`, `is`, `isNot`, and `isEmpty` operators -- Support composite conditions with `allOf` (AND) and `anyOf` (OR) logic -- Support nested field paths using dot notation (e.g., `config.server.port`) -- Update `HiddenFieldTemplate` to dynamically evaluate hide conditions based on form data -- Update `generateReviewTableData` to respect conditional hiding in review pages -- Hidden field visibility updates in real-time when form data changes - -**Condition 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:** - -- Update `orchestratorFormWidgets.md` with comprehensive examples of conditional hiding -- Add examples for all condition patterns and composite conditions -- Include complete real-world deployment configuration example - -**Testing:** - -- Add comprehensive unit tests for condition evaluation -- Test simple conditions, composite conditions, and nested conditions -- Test edge cases (empty values, nested paths) diff --git a/workspaces/orchestrator/.changeset/fix-extra-errors-wrong-step.md b/workspaces/orchestrator/.changeset/fix-extra-errors-wrong-step.md deleted file mode 100644 index 3f062da44f..0000000000 --- a/workspaces/orchestrator/.changeset/fix-extra-errors-wrong-step.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@red-hat-developer-hub/backstage-plugin-orchestrator-form-react': patch ---- - -Fix validation errors incorrectly shown on wrong step when navigating back. - -When using widgets with `validate:url`, the `getExtraErrors` callback 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: - -- Sets `extraErrors` to `undefined` when current step has no errors -- Updates step navigation to only check current step's errors before proceeding diff --git a/workspaces/orchestrator/.changeset/fix-workflow-instance-browser-title.md b/workspaces/orchestrator/.changeset/fix-workflow-instance-browser-title.md deleted file mode 100644 index cd7bc08acf..0000000000 --- a/workspaces/orchestrator/.changeset/fix-workflow-instance-browser-title.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@red-hat-developer-hub/backstage-plugin-orchestrator': patch ---- - -Fix browser tab showing `[object Object]` on workflow instance page - -Replace `` component with `t()` 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. diff --git a/workspaces/orchestrator/.changeset/migrate-moment-to-luxon.md b/workspaces/orchestrator/.changeset/migrate-moment-to-luxon.md deleted file mode 100644 index aead2159af..0000000000 --- a/workspaces/orchestrator/.changeset/migrate-moment-to-luxon.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@red-hat-developer-hub/backstage-plugin-orchestrator': patch ---- - -Migrate from Moment.js to Luxon for date/time handling - -**Breaking Change:** Removed deprecated Moment.js dependency - -- Replace `moment` and `react-moment` with `luxon` for all date/time operations -- Add `formatDuration` utility function that mimics moment's `.humanize()` behavior -- Add comprehensive unit tests for duration formatting diff --git a/workspaces/orchestrator/.changeset/object-type-uiprops-support.md b/workspaces/orchestrator/.changeset/object-type-uiprops-support.md deleted file mode 100644 index f9371b4d57..0000000000 --- a/workspaces/orchestrator/.changeset/object-type-uiprops-support.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -'@red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets': minor ---- - -Add object type support in ui:props for fetch:response:\* properties (RHIDP-11054) - -**Type System Enhancement:** - -- Updated `UiProps` type to accept `JsonValue` instead of `string` for `fetch:response:*` properties -- Enables using objects, arrays, and other JSON types in ui:props, not just strings -- Maintains full backward compatibility with existing string-based selectors - -**Runtime Safety:** - -- Added runtime validation in `useTemplateUnitEvaluator` to ensure selectors are strings when evaluated as JSONata expressions -- Provides clear error messages when invalid types are used - -**Documentation:** - -- Updated `orchestratorFormWidgets.md` to document object type support -- Added examples showing flexible ui:props configurations - -This change allows users to reference object attributes more easily in ui:props while maintaining type safety and backward compatibility. diff --git a/workspaces/orchestrator/.changeset/oneof-support-feature.md b/workspaces/orchestrator/.changeset/oneof-support-feature.md deleted file mode 100644 index 5687178ac6..0000000000 --- a/workspaces/orchestrator/.changeset/oneof-support-feature.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@red-hat-developer-hub/backstage-plugin-orchestrator-form-react': minor ---- - -Fix custom widgets not rendering in dependencies+oneOf (RHIDP-10952) - -**Widget Rendering Fix:** - -- Fix `generateUiSchema` to extract `ui:` properties from `dependencies` + `oneOf` branches -- Custom widgets (ActiveTextInput, ActiveDropdown, etc.) now render correctly in conditional schemas -- Resolves issue where widgets fell back to plain text inputs inside dependencies - -**Form Data Management:** - -- Update `pruneFormData` to correctly handle oneOf schemas with dependencies -- Clean up stale form data when switching between oneOf options diff --git a/workspaces/orchestrator/.changeset/renovate-7505a0d.md b/workspaces/orchestrator/.changeset/renovate-7505a0d.md deleted file mode 100644 index 6459ed2f50..0000000000 --- a/workspaces/orchestrator/.changeset/renovate-7505a0d.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@red-hat-developer-hub/backstage-plugin-orchestrator-backend': patch -'@red-hat-developer-hub/backstage-plugin-orchestrator-common': patch ---- - -Updated dependency `@types/express` to `4.17.25`. -Updated dependency `@openapitools/openapi-generator-cli` to `2.25.2`. diff --git a/workspaces/orchestrator/plugins/orchestrator-backend/CHANGELOG.md b/workspaces/orchestrator/plugins/orchestrator-backend/CHANGELOG.md index 347d61a9a6..b686e68342 100644 --- a/workspaces/orchestrator/plugins/orchestrator-backend/CHANGELOG.md +++ b/workspaces/orchestrator/plugins/orchestrator-backend/CHANGELOG.md @@ -1,5 +1,14 @@ ### Dependencies +## 8.5.1 + +### Patch Changes + +- d91ef65: Updated dependency `@types/express` to `4.17.25`. + Updated dependency `@openapitools/openapi-generator-cli` to `2.25.2`. +- Updated dependencies [d91ef65] + - @red-hat-developer-hub/backstage-plugin-orchestrator-common@3.3.1 + ## 8.5.0 ### Minor Changes diff --git a/workspaces/orchestrator/plugins/orchestrator-backend/package.json b/workspaces/orchestrator/plugins/orchestrator-backend/package.json index b8d513422b..c1328b6468 100644 --- a/workspaces/orchestrator/plugins/orchestrator-backend/package.json +++ b/workspaces/orchestrator/plugins/orchestrator-backend/package.json @@ -1,6 +1,6 @@ { "name": "@red-hat-developer-hub/backstage-plugin-orchestrator-backend", - "version": "8.5.0", + "version": "8.5.1", "license": "Apache-2.0", "main": "src/index.ts", "types": "src/index.ts", diff --git a/workspaces/orchestrator/plugins/orchestrator-common/CHANGELOG.md b/workspaces/orchestrator/plugins/orchestrator-common/CHANGELOG.md index 6457739349..850120d086 100644 --- a/workspaces/orchestrator/plugins/orchestrator-common/CHANGELOG.md +++ b/workspaces/orchestrator/plugins/orchestrator-common/CHANGELOG.md @@ -1,5 +1,12 @@ ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.13.1](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.13.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.13.1) (2024-08-02) +## 3.3.1 + +### Patch Changes + +- d91ef65: Updated dependency `@types/express` to `4.17.25`. + Updated dependency `@openapitools/openapi-generator-cli` to `2.25.2`. + ## 3.3.0 ### Minor Changes diff --git a/workspaces/orchestrator/plugins/orchestrator-common/package.json b/workspaces/orchestrator/plugins/orchestrator-common/package.json index 3def8b1321..48dd90ac52 100644 --- a/workspaces/orchestrator/plugins/orchestrator-common/package.json +++ b/workspaces/orchestrator/plugins/orchestrator-common/package.json @@ -1,6 +1,6 @@ { "name": "@red-hat-developer-hub/backstage-plugin-orchestrator-common", - "version": "3.3.0", + "version": "3.3.1", "license": "Apache-2.0", "main": "src/index.ts", "types": "src/index.ts", diff --git a/workspaces/orchestrator/plugins/orchestrator-form-api/CHANGELOG.md b/workspaces/orchestrator/plugins/orchestrator-form-api/CHANGELOG.md index 5dbec456e6..d4b3aa57a9 100644 --- a/workspaces/orchestrator/plugins/orchestrator-form-api/CHANGELOG.md +++ b/workspaces/orchestrator/plugins/orchestrator-form-api/CHANGELOG.md @@ -1,5 +1,12 @@ # @red-hat-developer-hub/backstage-plugin-orchestrator-form-api +## 2.4.1 + +### Patch Changes + +- Updated dependencies [d91ef65] + - @red-hat-developer-hub/backstage-plugin-orchestrator-common@3.3.1 + ## 2.4.0 ### Minor Changes diff --git a/workspaces/orchestrator/plugins/orchestrator-form-api/package.json b/workspaces/orchestrator/plugins/orchestrator-form-api/package.json index e9869b074d..f709e97b0b 100644 --- a/workspaces/orchestrator/plugins/orchestrator-form-api/package.json +++ b/workspaces/orchestrator/plugins/orchestrator-form-api/package.json @@ -1,7 +1,7 @@ { "name": "@red-hat-developer-hub/backstage-plugin-orchestrator-form-api", "description": "library for orchestrator form api, enabling creating a factory to extend the workflow execution form", - "version": "2.4.0", + "version": "2.4.1", "main": "src/index.ts", "types": "src/index.ts", "license": "Apache-2.0", diff --git a/workspaces/orchestrator/plugins/orchestrator-form-react/CHANGELOG.md b/workspaces/orchestrator/plugins/orchestrator-form-react/CHANGELOG.md index 2d447efa16..b934043d04 100644 --- a/workspaces/orchestrator/plugins/orchestrator-form-react/CHANGELOG.md +++ b/workspaces/orchestrator/plugins/orchestrator-form-react/CHANGELOG.md @@ -1,5 +1,64 @@ ### Dependencies +## 2.5.0 + +### Minor Changes + +- 5771568: Add dynamic conditional visibility for ui:hidden + + **Conditional Hiding Feature:** + - Add `HiddenCondition` type supporting boolean and condition objects + - Implement `evaluateHiddenCondition` utility for evaluating hide conditions + - Support condition objects with `when`, `is`, `isNot`, and `isEmpty` operators + - Support composite conditions with `allOf` (AND) and `anyOf` (OR) logic + - Support nested field paths using dot notation (e.g., `config.server.port`) + - Update `HiddenFieldTemplate` to dynamically evaluate hide conditions based on form data + - Update `generateReviewTableData` to respect conditional hiding in review pages + - Hidden field visibility updates in real-time when form data changes + + **Condition 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:** + - Update `orchestratorFormWidgets.md` with comprehensive examples of conditional hiding + - Add examples for all condition patterns and composite conditions + - Include complete real-world deployment configuration example + + **Testing:** + - Add comprehensive unit tests for condition evaluation + - Test simple conditions, composite conditions, and nested conditions + - Test edge cases (empty values, nested paths) + +- 2be9dcc: Fix custom widgets not rendering in dependencies+oneOf (RHIDP-10952) + + **Widget Rendering Fix:** + - Fix `generateUiSchema` to extract `ui:` properties from `dependencies` + `oneOf` branches + - Custom widgets (ActiveTextInput, ActiveDropdown, etc.) now render correctly in conditional schemas + - Resolves issue where widgets fell back to plain text inputs inside dependencies + + **Form Data Management:** + - Update `pruneFormData` to correctly handle oneOf schemas with dependencies + - Clean up stale form data when switching between oneOf options + +### Patch Changes + +- f030878: Fix validation errors incorrectly shown on wrong step when navigating back. + + When using widgets with `validate:url`, the `getExtraErrors` callback 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: + - Sets `extraErrors` to `undefined` when current step has no errors + - Updates step navigation to only check current step's errors before proceeding + +- Updated dependencies [d91ef65] + - @red-hat-developer-hub/backstage-plugin-orchestrator-common@3.3.1 + - @red-hat-developer-hub/backstage-plugin-orchestrator-form-api@2.4.1 + ## 2.4.0 ### Minor Changes diff --git a/workspaces/orchestrator/plugins/orchestrator-form-react/package.json b/workspaces/orchestrator/plugins/orchestrator-form-react/package.json index d1e65609ab..c449579d55 100644 --- a/workspaces/orchestrator/plugins/orchestrator-form-react/package.json +++ b/workspaces/orchestrator/plugins/orchestrator-form-react/package.json @@ -1,7 +1,7 @@ { "name": "@red-hat-developer-hub/backstage-plugin-orchestrator-form-react", "description": "Web library for the orchestrator-form plugin", - "version": "2.4.0", + "version": "2.5.0", "main": "src/index.ts", "types": "src/index.ts", "license": "Apache-2.0", diff --git a/workspaces/orchestrator/plugins/orchestrator-form-widgets/CHANGELOG.md b/workspaces/orchestrator/plugins/orchestrator-form-widgets/CHANGELOG.md index 06489d79fd..8a9b8c8cdc 100644 --- a/workspaces/orchestrator/plugins/orchestrator-form-widgets/CHANGELOG.md +++ b/workspaces/orchestrator/plugins/orchestrator-form-widgets/CHANGELOG.md @@ -1,5 +1,32 @@ # @red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets +## 1.6.0 + +### Minor Changes + +- 5c9f044: Add object type support in ui:props for fetch:response:\* properties (RHIDP-11054) + + **Type System Enhancement:** + - Updated `UiProps` type to accept `JsonValue` instead of `string` for `fetch:response:*` properties + - Enables using objects, arrays, and other JSON types in ui:props, not just strings + - Maintains full backward compatibility with existing string-based selectors + + **Runtime Safety:** + - Added runtime validation in `useTemplateUnitEvaluator` to ensure selectors are strings when evaluated as JSONata expressions + - Provides clear error messages when invalid types are used + + **Documentation:** + - Updated `orchestratorFormWidgets.md` to document object type support + - Added examples showing flexible ui:props configurations + + This change allows users to reference object attributes more easily in ui:props while maintaining type safety and backward compatibility. + +### Patch Changes + +- Updated dependencies [d91ef65] + - @red-hat-developer-hub/backstage-plugin-orchestrator-common@3.3.1 + - @red-hat-developer-hub/backstage-plugin-orchestrator-form-api@2.4.1 + ## 1.5.0 ### Minor Changes diff --git a/workspaces/orchestrator/plugins/orchestrator-form-widgets/package.json b/workspaces/orchestrator/plugins/orchestrator-form-widgets/package.json index dc2195a166..60a204e7b1 100644 --- a/workspaces/orchestrator/plugins/orchestrator-form-widgets/package.json +++ b/workspaces/orchestrator/plugins/orchestrator-form-widgets/package.json @@ -1,6 +1,6 @@ { "name": "@red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets", - "version": "1.5.0", + "version": "1.6.0", "license": "Apache-2.0", "main": "src/index.ts", "types": "src/index.ts", diff --git a/workspaces/orchestrator/plugins/orchestrator/CHANGELOG.md b/workspaces/orchestrator/plugins/orchestrator/CHANGELOG.md index 48818e1776..1c4c3e1eaf 100644 --- a/workspaces/orchestrator/plugins/orchestrator/CHANGELOG.md +++ b/workspaces/orchestrator/plugins/orchestrator/CHANGELOG.md @@ -1,5 +1,28 @@ ### Dependencies +## 5.3.1 + +### Patch Changes + +- 48fb7f2: Fix browser tab showing `[object Object]` on workflow instance page + + Replace `` component with `t()` 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 + - Replace `moment` and `react-moment` with `luxon` for all date/time operations + - Add `formatDuration` utility function that mimics moment's `.humanize()` behavior + - Add comprehensive unit tests for duration formatting + +- Updated dependencies [5771568] +- Updated dependencies [f030878] +- Updated dependencies [2be9dcc] +- Updated dependencies [d91ef65] + - @red-hat-developer-hub/backstage-plugin-orchestrator-form-react@2.5.0 + - @red-hat-developer-hub/backstage-plugin-orchestrator-common@3.3.1 + - @red-hat-developer-hub/backstage-plugin-orchestrator-form-api@2.4.1 + ## 5.3.0 ### Minor Changes diff --git a/workspaces/orchestrator/plugins/orchestrator/package.json b/workspaces/orchestrator/plugins/orchestrator/package.json index ab14891b5c..2ed3c84a90 100644 --- a/workspaces/orchestrator/plugins/orchestrator/package.json +++ b/workspaces/orchestrator/plugins/orchestrator/package.json @@ -1,6 +1,6 @@ { "name": "@red-hat-developer-hub/backstage-plugin-orchestrator", - "version": "5.3.0", + "version": "5.3.1", "license": "Apache-2.0", "main": "src/index.ts", "types": "src/index.ts", diff --git a/workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator/CHANGELOG.md b/workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator/CHANGELOG.md index 5ba539e261..6063df2b55 100644 --- a/workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator/CHANGELOG.md +++ b/workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator/CHANGELOG.md @@ -1,5 +1,12 @@ # @red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator +## 1.3.1 + +### Patch Changes + +- Updated dependencies [d91ef65] + - @red-hat-developer-hub/backstage-plugin-orchestrator-common@3.3.1 + ## 1.3.0 ### Minor Changes diff --git a/workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator/package.json b/workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator/package.json index 4a9b7d9068..bcaad61ba4 100644 --- a/workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator/package.json +++ b/workspaces/orchestrator/plugins/scaffolder-backend-module-orchestrator/package.json @@ -1,7 +1,7 @@ { "name": "@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator", "description": "The orchestrator module for @backstage/plugin-scaffolder-backend", - "version": "1.3.0", + "version": "1.3.1", "main": "src/index.ts", "types": "src/index.ts", "license": "Apache-2.0",