Skip to content

Conversation

@rhdh-bot
Copy link
Collaborator

@rhdh-bot rhdh-bot commented Dec 5, 2025

Releases

@red-hat-developer-hub/backstage-plugin-orchestrator-form-react@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

@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

@red-hat-developer-hub/backstage-plugin-orchestrator@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

@red-hat-developer-hub/backstage-plugin-orchestrator-backend@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

@red-hat-developer-hub/backstage-plugin-orchestrator-common@3.3.1

Patch Changes

  • d91ef65: Updated dependency @types/express to 4.17.25.
    Updated dependency @openapitools/openapi-generator-cli to 2.25.2.

@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

@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

@github-actions github-actions bot force-pushed the changesets-release/orchestrator/main branch 4 times, most recently from e0dded5 to 5022e04 Compare December 11, 2025 09:45
@github-actions github-actions bot force-pushed the changesets-release/orchestrator/main branch from 5022e04 to f55cf0d Compare December 16, 2025 07:50
@github-actions github-actions bot force-pushed the changesets-release/orchestrator/main branch from f55cf0d to fa166ea Compare December 16, 2025 11:45
@sonarqubecloud
Copy link

@github-actions
Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@github-actions github-actions bot added the stale label Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant