Skip to content

refactor: extract shared StepOne component across both deploy flows - #1279

Open
pranithraoibm wants to merge 17 commits into
IBM:mainfrom
pranithraoibm:1376-pr-8b
Open

refactor: extract shared StepOne component across both deploy flows#1279
pranithraoibm wants to merge 17 commits into
IBM:mainfrom
pranithraoibm:1376-pr-8b

Conversation

@pranithraoibm

Copy link
Copy Markdown
Contributor
  • Added SharedStepOne to Shared/steps/which receives all data as props, renders name, version, and component dropdowns with model/provider toggle and error banner
  • Replaced DigitalAssistant/steps/StepOne.tsx → DAStepOne.tsx, delegates rendering to SharedStepOne, retains DA-specific provider deduplication and default model seeding logic
  • Replaced Services/steps/StepOne.tsx → ServicesStepOne.tsx, delegates rendering to SharedStepOne, moves default model seeding useEffect here from the root (was ServicesDeployFlow)
  • Added onComponentError to BaseStepProps in Shared/types.ts; removed onSchemaError from DA's local StepProps
  • Added hasComponentError state + gate to ServicesDeployFlow which was already present in DA, now both flows block Next on component load failure

@pranithraoibm

Copy link
Copy Markdown
Contributor Author

@ryanmarc FYI this PR has changes from PR7 and PR 8a as well.

Signed-off-by: Pranith Rao <pranith.rao@ibm.com>
@pranithraoibm
pranithraoibm requested a review from ryanmarc August 18, 2026 21:22
Signed-off-by: Pranith Rao <pranith.rao@ibm.com>
@pranithraoibm
pranithraoibm requested a review from ryanmarc August 19, 2026 13:53
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.

2 participants