Skip to content

Conversation

@PVeazie951
Copy link
Contributor

Summary

This PR fixes several UI → backend mismatches in the CI/CD configuration wizard by making pipeline options template-, stage-, and provider-aware. The result is a more accurate, predictable, and user-friendly pipeline configuration experience.

What Changed

🧩 Frontend (ConfigurePage)
• Template dropdown now only exposes backend-supported templates
• Pipeline options dynamically update when the template changes
• Runtime, install, test, and build inputs render only when relevant:
• Based on selected template
• Based on enabled stages (build/test/deploy)
• AWS deployment fields are hidden unless:
• Provider is AWS and
• Deploy stage is enabled
• Option labels and placeholders adapt to the selected template (Node vs Python)

🧠 State Management (Zustand)
• Template changes now rehydrate pipeline options with safe defaults
• Provider-specific fields (AWS/GCP) are preserved across template switches
• Prevents invalid combinations like npm commands on Python pipelines

⚙️ Backend (pipeline_generator)
• Runtime setup steps are now template-specific:
• actions/setup-node only for Node pipelines
• actions/setup-python only for Python pipelines
• Eliminates Node.js setup from Python-generated GitHub Actions YAML

PVeazie951 and others added 5 commits December 16, 2025 19:39
…r-aware

- Align template dropdown values with backend-supported templates
- Rehydrate pipeline options when template changes to prevent invalid configs
- Conditionally render runtime, install, test, and build inputs based on:
  - selected template (node_app, python_app, container_service)
  - enabled stages (build, test, deploy)
- Hide provider-specific deployment fields unless deploy stage is enabled
- Fix pipeline generator to emit runtime-specific setup steps:
  - Use setup-node only for node_app
  - Use setup-python only for python_app
- Prevent Node.js steps from leaking into Python-generated YAML

This ensures UI state, generated YAML, and backend expectations stay in sync
and removes misleading or non-applicable configuration paths.
…r-aware

- Align template dropdown values with backend-supported templates
- Rehydrate pipeline options when template changes to prevent invalid configs
- Conditionally render runtime, install, test, and build inputs based on:
  - selected template (node_app, python_app, container_service)
  - enabled stages (build, test, deploy)
- Hide provider-specific deployment fields unless deploy stage is enabled
- Fix pipeline generator to emit runtime-specific setup steps:
  - Use setup-node only for node_app
  - Use setup-python only for python_app
- Prevent Node.js steps from leaking into Python-generated YAML

This ensures UI state, generated YAML, and backend expectations stay in sync
and removes misleading or non-applicable configuration paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants