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

Skip to content

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

Merged
aqandrew merged 5 commits into
mainfrom
feat/module-sensitive-var-banner
Sep 4, 2026
Merged

feat(site/src/pages/TemplateBuilder): move sensitive-var note into module card#28731
aqandrew merged 5 commits into
mainfrom
feat/module-sensitive-var-banner

Conversation

@aqandrew

@aqandrew aqandrew commented Aug 27, 2026

Copy link
Copy Markdown
Contributor
old new
image image

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

@aqandrew
aqandrew marked this pull request as ready for review September 2, 2026 23:24

@chrifro chrifro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're touching this anyway, could you use the smaller icon size for the i icon. Currently 18px, should be 14px 🙏

@aqandrew

aqandrew commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

While you're touching this anyway, could you use the smaller icon size for the i icon. Currently 18px, should be 14px 🙏

For sure, done in 157cfef!

@aqandrew
aqandrew enabled auto-merge (squash) September 4, 2026 21:12
@aqandrew
aqandrew merged commit 50212a6 into main Sep 4, 2026
26 checks passed
@aqandrew
aqandrew deleted the feat/module-sensitive-var-banner branch September 4, 2026 21:15
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants