Orchestrator 1.9 backport#2874
Orchestrator 1.9 backport#2874karthikjeeyar merged 3 commits intoredhat-developer:workspace/orchestratorfrom
Conversation
…loper#2834) Empty pruned form data (e.g. display-only ActiveText) made generateReviewTableData return undefined and NestedReviewTable throw. Return {} from generateReviewTableData and guard NestedReviewTable. Add regression test and changeset. Made-with: Cursor
Code Review by Qodo
1. Deep import may break tests
|
|
Review Summary by QodoFix orchestrator form validation errors and review step crashes
WalkthroughsDescription• Fix multi-step form validation errors being dropped or misplaced in nested fields • Handle empty form data in review step to prevent crashes • Correct deep nested field path handling in error aggregation • Fix UI styling issues in workflow results page components Diagramflowchart LR
A["Multi-step Forms"] -->|"Sequential async validation"| B["useGetExtraErrors"]
B -->|"Deep path handling"| C["safeSet utility"]
C -->|"Wrapped with active step"| D["toRootExtraErrors"]
D -->|"Root-shaped errors"| E["RJSF Form"]
F["Empty Form Data"] -->|"Fallback to empty object"| G["generateReviewTableData"]
G -->|"Safe data access"| H["NestedReviewTable"]
I["UI Components"] -->|"Styling fixes"| J["WorkflowResult & TextCodeBlock"]
File Changes1. workspaces/orchestrator/plugins/orchestrator-form-react/src/utils/generateReviewTableData.ts
|
6a8f615
into
redhat-developer:workspace/orchestrator



Cherrypick of below PR's
#2834
#2808
#2818