Skip to content

feat(site/src/pages/TemplateBuilder): move sensitive-var note into module card - #28731

Draft
aqandrew wants to merge 1 commit into
mainfrom
feat/module-sensitive-var-banner
Draft

feat(site/src/pages/TemplateBuilder): move sensitive-var note into module card#28731
aqandrew wants to merge 1 commit into
mainfrom
feat/module-sensitive-var-banner

Conversation

@aqandrew

Copy link
Copy Markdown
Contributor

What

Moves the module sensitive-variable note ("<var> will be collected from developers at workspace creation.") inside the module's grey configuration card, positioned after the configuration section, instead of rendering it as a sibling <div> below the card.

Resolves DEVEX-829. This is an isolated slice of #27077 (its item 3), rebased onto current main; nothing else from that PR is included.

Why

The note describes variables belonging to a specific module, so it reads more clearly attributed when it lives within that module's card rather than floating beneath it.

Changes

  • ModuleConfiguration.tsx: add an optional sensitiveVariables?: TemplateBuilderModuleVariable[] prop and render the info note at the bottom of the grey card, after the "Additional settings" collapsible / "No configuration required." block. Code chips use bg-surface-tertiary so they don't blend into the grey (bg-surface-secondary) card.
  • ModuleSettingsStep.tsx: pass sensitiveVariables={sensitiveVars} and remove the sibling note <div> (and the now-unused InfoIcon import).
  • ModuleConfiguration.stories.tsx: add WithSensitiveVariables and NoConfigWithSensitiveVariables stories with play assertions on the note, covering both the "has optional fields" and "no configuration required" branches.

No behavior change beyond the note's location and styling.

Testing

  • pnpm check (biome) clean
  • pnpm lint:types (tsc) clean
  • pnpm vitest run --project=storybook src/pages/TemplateBuilder/ModuleConfiguration — 6 pass
  • pnpm vitest run --project=unit src/pages/TemplateBuilder — 61 pass
Context: remaining #27077 items

#27077 bundled four items. Items 2 (navigable sidebar) and 4 (trash-icon removal) shipped separately (#27351, #28153, plus item 4 already on main). Item 1 (gallery height / card sizing) was effectively superseded by #27437 (removed inner-scroll containers) and #27797 (grid + card typography), so it is intentionally not ported. This PR handles item 3, the last remaining piece.


Coder Agents generated, on behalf of @aqandrew.

…dule card

Render the 'collected from developers at workspace creation' note inside
the module's grey card, after the configuration section, instead of as a
sibling below the card. Add a sensitiveVariables prop to
ModuleConfiguration and stop rendering the note in ModuleSettingsStep.

Isolated slice of #27077 (item 3). DEVEX-829.
@linear-code

linear-code Bot commented Aug 27, 2026

Copy link
Copy Markdown

DEVEX-829

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