fix(site/src/pages/TemplateBuilder): block continuing without base template or module selection (#26626)

Fixes DEVEX-520

The Template Builder wizard allowed users to continue past the base
template selection step without selecting a template, and past the
module selection step without selecting any modules.

Adds `canContinue` validation for the `base-infra` and
`module-select` steps in `computeCanContinue()`. The Continue button
is now disabled until a base template is selected on the first step
and at least one module is selected on the module selection step.

> Generated with [Coder Agents](https://coder.com/agents)
This commit is contained in:
Jeremy Ruppel
2026-06-23 15:20:48 -04:00
committed by GitHub
parent 7cf6a4d304
commit 61dfefb991
@@ -254,6 +254,8 @@ function computeCanContinue(
moduleVarMap: Record<string, Record<string, string>>,
): boolean {
switch (stepId) {
case "base-infra":
return state.selectedBase !== null;
case "base-parameters":
return baseParametersComplete(
basesData,