Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(site/src/pages/TemplateBuilder): use variable defaults as field values, not just placeholders - #27032

Merged
jeremyruppel merged 1 commit into
mainfrom
fix/template-builder-default-values
Jul 6, 2026
Merged

fix(site/src/pages/TemplateBuilder): use variable defaults as field values, not just placeholders#27032
jeremyruppel merged 1 commit into
mainfrom
fix/template-builder-default-values

Conversation

@jeremyruppel

Copy link
Copy Markdown
Contributor

Variables with defaults showed the default as placeholder text in an empty field. If the user did not type anything, an empty value was sent instead of the default. Now the default pre-populates the field value so it is visible and editable.

Fixes both BaseTemplateParametersStep and ModuleSettingsStep by falling back to defaultPlaceholder(v.default) instead of "" when no user value exists.

Fixes DEVEX-584

Note

This PR was authored by Coder Agents on behalf of @jeremyruppel.

… just placeholders

Previously, variables with defaults showed the default as placeholder
text in an empty field. If the user did not type anything, an empty
value was sent instead of the default. Now the default pre-populates
the field value so it is visible and editable.

Fixes both BaseTemplateParametersStep and ModuleSettingsStep.
@linear-code

linear-code Bot commented Jul 6, 2026

Copy link
Copy Markdown

DEVEX-584

@jeremyruppel
jeremyruppel requested a review from aqandrew July 6, 2026 22:47
@jeremyruppel
jeremyruppel marked this pull request as ready for review July 6, 2026 22:47
@jeremyruppel jeremyruppel changed the title fix(site/TemplateBuilder): use variable defaults as field values, not just placeholders fix(site/src/pages/TemplateBuilder): use variable defaults as field values, not just placeholders Jul 6, 2026
@jeremyruppel
jeremyruppel merged commit 8afdf0f into main Jul 6, 2026
55 of 58 checks passed
@jeremyruppel
jeremyruppel deleted the fix/template-builder-default-values branch July 6, 2026 23:28
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants