🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

feat: add BaseTemplateParametersStep - #26426

Merged
jeremyruppel merged 3 commits into
mainfrom
jeremy/devex-284-fe-basetemplateparametersstep
Jun 17, 2026
Merged

feat: add BaseTemplateParametersStep#26426
jeremyruppel merged 3 commits into
mainfrom
jeremy/devex-284-fe-basetemplateparametersstep

Conversation

@jeremyruppel

@jeremyruppel jeremyruppel commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Implement the base template parameters wizard step, which renders a configuration form for base template variables using the existing TemplateConfiguration and ConfigurationField components.

  • Map TemplateBuilderModuleVariable to ConfigurationFieldDefinition (switch for bool, text input for string/number)
  • Read variable definitions from the cached bases query
  • Disable Continue button until all required non-sensitive variables have values (baseParametersComplete helper)
  • Step is automatically skipped when the selected base has no parameters (e.g. Docker)
  • Update toComposeRequest to include base_variable_values in the API payload

Relates to DEVEX-284.

Note

This PR was authored with Coder Agents.

@linear-code

linear-code Bot commented Jun 16, 2026

Copy link
Copy Markdown

DEVEX-284


function detailsUrl(baseId: string): string {
return `https://registry.coder.com/templates/${baseId}`;
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will come from the backend in a future PR

Add support for base template variables in the template builder:

- Add Variables field to BaseManifest, reusing ModuleVariable
- Add variables to kubernetes base.json (use_kubeconfig, namespace)
- Add Variables to codersdk.TemplateBuilderBase
- Add BaseVariableValues to compose and create-template requests
- Thread base variable values through the compose pipeline into
  BaseRenderContext
- Add baseVariablesToSDK helper in handler to convert and filter
  computed variables
- Restructure TestTemplateBuilderBases/OK as table-driven specs
  with per-base variable assertions
- Regenerate TypeScript types and API docs
Implement the base template parameters wizard step:

- Add BaseTemplateParametersStep component that renders a form for
  base template variables (text inputs for string/number, switches
  for bool), reading variable definitions from the cached bases query
- Wire the step into TemplateBuilderPageView for the base-parameters
  step ID
- Update BaseInfraSelectStep to set hasParameters from the base's
  variables, enabling the skip logic in the step registry
- Update toComposeRequest to include base_variable_values when set
- Add test for base_variable_values in compose request projection
@jeremyruppel
jeremyruppel force-pushed the jeremy/devex-284-be-base-template-variables branch from 7fa30b7 to c805e35 Compare June 17, 2026 15:59
@jeremyruppel
jeremyruppel force-pushed the jeremy/devex-284-fe-basetemplateparametersstep branch from 94f5fb5 to 25ac414 Compare June 17, 2026 15:59
Base automatically changed from jeremy/devex-284-be-base-template-variables to main June 17, 2026 16:22
@jeremyruppel jeremyruppel changed the title feat(site/src/pages/TemplateBuilder): add BaseTemplateParametersStep feat: add BaseTemplateParametersStep Jun 17, 2026
@jeremyruppel
jeremyruppel merged commit 1546a0a into main Jun 17, 2026
38 of 62 checks passed
@jeremyruppel
jeremyruppel deleted the jeremy/devex-284-fe-basetemplateparametersstep branch June 17, 2026 18:56
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants