Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions workspaces/orchestrator/.changeset/dynamic-ui-hidden.md

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions workspaces/orchestrator/.changeset/migrate-moment-to-luxon.md

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions workspaces/orchestrator/.changeset/oneof-support-feature.md

This file was deleted.

7 changes: 0 additions & 7 deletions workspaces/orchestrator/.changeset/renovate-7505a0d.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
23 changes: 23 additions & 0 deletions workspaces/orchestrator/plugins/orchestrator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
### Dependencies

## 5.3.1

### Patch Changes

- 48fb7f2: Fix browser tab showing `[object Object]` on workflow instance page

Replace `<Trans>` 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
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down