{{ message }}
feat(site): wire template builder entrypoint from templates list page#26756
Open
jeremyruppel wants to merge 3 commits into
Open
feat(site): wire template builder entrypoint from templates list page#26756jeremyruppel wants to merge 3 commits into
jeremyruppel wants to merge 3 commits into
Conversation
Route the 'New template' button to /templates/new/builder when the template builder is enabled in the deployment config, falling back to /starter-templates when disabled. Add createTemplates permission check to TemplateBuilderPage and gate the bases query to avoid 404s when the feature is disabled.
Use strict === false check so templateBuilderEnabled defaults to false while deployment config is loading or on error, preventing a brief wrong link target. Add story variants for the builder-enabled state.
The disabled field uses omitempty, so it is undefined (not false) when the builder is enabled. Use isSuccess to avoid the loading default issue while correctly treating undefined as not-disabled.
jeremyruppel
commented
Jun 26, 2026
Comment on lines
76
to
78
Contributor
Author
There was a problem hiding this comment.
@tracyjohnsonux @aqandrew this is the empty state for the templates view. right now these cards navigate to /templates/new?exampleId=docker. should we similarly deep link into template builder, at least for the base template?
Contributor
There was a problem hiding this comment.
If the template builder is the preferred method we want to funnel users to, then yeah I think that's a great idea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The templates list page "New template" button and the empty-state "View all starter templates" button now link to
/templates/new/builderwhen the template builder is enabled in the deployment config, falling back to/starter-templateswhen disabled.The
TemplateBuilderPagenow checkscreateTemplatespermission and redirects to/templatesif the user lacks access. ThetemplateBuilderBasesquery is also gated onenabledto avoid a 404 when the feature is disabled.Implementation details
TemplatesPagefetchesdeploymentConfig()(only when user hascreateTemplatespermission) and computestemplateBuilderEnabledusing=== falseto default safely while loading.templateBuilderEnabledis threaded throughTemplatesPageViewandEmptyTemplatesto conditionally set link targets.TemplateBuilderPageusesuseAuthenticated()to checkpermissions.createTemplatesbefore rendering.