From 61dfefb9912bb7f7a2f8cea72bb428a85461553b Mon Sep 17 00:00:00 2001 From: Jeremy Ruppel Date: Tue, 23 Jun 2026 15:20:48 -0400 Subject: [PATCH] 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) --- site/src/pages/TemplateBuilder/TemplateBuilderPageView.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/src/pages/TemplateBuilder/TemplateBuilderPageView.tsx b/site/src/pages/TemplateBuilder/TemplateBuilderPageView.tsx index 5050018096..4a11562bb1 100644 --- a/site/src/pages/TemplateBuilder/TemplateBuilderPageView.tsx +++ b/site/src/pages/TemplateBuilder/TemplateBuilderPageView.tsx @@ -254,6 +254,8 @@ function computeCanContinue( moduleVarMap: Record>, ): boolean { switch (stepId) { + case "base-infra": + return state.selectedBase !== null; case "base-parameters": return baseParametersComplete( basesData,