Skip to content

feat: TemplateCustomizationsStep and compose POST (DEVEX-287)#26433

Open
jeremyruppel wants to merge 3 commits into
jeremy/devex-287-be-template-builder-fixesfrom
jeremy/devex-287-fe-templatecustomizationsstep
Open

feat: TemplateCustomizationsStep and compose POST (DEVEX-287)#26433
jeremyruppel wants to merge 3 commits into
jeremy/devex-287-be-template-builder-fixesfrom
jeremy/devex-287-fe-templatecustomizationsstep

Conversation

@jeremyruppel

Copy link
Copy Markdown
Contributor

Part of the Template Builder wizard PR stack.

Frontend changes

  1. TemplateCustomizationsStep: Final wizard step with org picker, icon picker, name/display name/description/icon fields, and redirect on success.

  2. Refactor: Moved queries/mutation from PageView to Page container, extracted renderStepContent switch and computeCanContinue switch into standalone functions.


Note

Generated by Coder Agents on behalf of @jeremyruppel

@linear-code

linear-code Bot commented Jun 16, 2026

Copy link
Copy Markdown

DEVEX-287

@jeremyruppel jeremyruppel marked this pull request as ready for review June 16, 2026 19:49
@jeremyruppel jeremyruppel force-pushed the jeremy/devex-287-fe-templatecustomizationsstep branch from 51379b8 to 1adc078 Compare June 16, 2026 20:42
@jeremyruppel jeremyruppel force-pushed the jeremy/devex-287-be-template-builder-fixes branch from 8868d03 to 9ec0473 Compare June 16, 2026 20:42
@jeremyruppel jeremyruppel force-pushed the jeremy/devex-287-fe-templatecustomizationsstep branch from 1adc078 to d7194e4 Compare June 17, 2026 15:59
@jeremyruppel jeremyruppel force-pushed the jeremy/devex-287-be-template-builder-fixes branch 2 times, most recently from df0f468 to e41a23d Compare June 17, 2026 18:58
@jeremyruppel jeremyruppel force-pushed the jeremy/devex-287-fe-templatecustomizationsstep branch from d7194e4 to cb247fd Compare June 17, 2026 18:58
…and compose POST

Implement the final wizard step and template creation flow:

- Add createTemplateFromBuilder API client method and react-query
  mutation for POST /api/v2/templatebuilder/compose/template
- Add TemplateCustomizationsStep with organization picker
  (OrganizationAutocomplete), name, display name, description,
  and icon picker (IconField) fields
- Extend wizard state with name and icon fields; add
  toCreateTemplateRequest projection
- Wire Create Template button to mutation; on success redirect to
  the new template's files page with justCreated state
- Show mutation error inline on the customizations step
- Disable Create Template button while mutation is pending
- Require non-empty name to proceed on customizations step
…ct step renderer

Move data-fetching concerns out of the PageView into the Page:

- Move useQuery (bases) and useMutation (createTemplate) to
  TemplateBuilderPage via a container component
- Pass resolved data and callbacks as props to TemplateBuilderPageView
- Extract inline ternary chain into renderStepContent switch function
- Extract canContinue logic into computeCanContinue switch function
- Export StepId from steps.ts for use in the switch functions
…into Page

Remove the unnecessary TemplateBuilderPageViewContainer component.
All query/mutation state now lives directly in TemplateBuilderPage.
@jeremyruppel jeremyruppel force-pushed the jeremy/devex-287-fe-templatecustomizationsstep branch from cb247fd to c3d7b98 Compare June 18, 2026 13:43
@jeremyruppel jeremyruppel force-pushed the jeremy/devex-287-be-template-builder-fixes branch from e41a23d to 6589566 Compare June 18, 2026 13:43
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.

1 participant