Skip to content

feat(site): create Template Builder components #25123

Merged
jeremyruppel merged 8 commits into
mainfrom
jeremy/template-builder-components
Jun 8, 2026
Merged

feat(site): create Template Builder components #25123
jeremyruppel merged 8 commits into
mainfrom
jeremy/template-builder-components

Conversation

@jeremyruppel

Copy link
Copy Markdown
Contributor

This PR introduces several components used in the Template Builder designs:

Base template card
Screenshot 2026-05-11 at 10 10 49 AM

Base template customization
Screenshot 2026-05-11 at 10 11 55 AM

Module card
Screenshot 2026-05-11 at 10 17 43 AM

Module customization
Screenshot 2026-05-11 at 10 11 20 AM

Selection overview
Screenshot 2026-05-11 at 10 11 02 AM

Parts of this PR were written by Claude Code 🤖 and other parts by yours truly 👨‍💻

@jeremyruppel jeremyruppel requested a review from aslilac May 11, 2026 14:18
@github-actions github-actions Bot added the stale This issue is like stale bread. label May 22, 2026
@github-actions github-actions Bot closed this May 26, 2026
@jeremyruppel jeremyruppel reopened this May 29, 2026
@jeremyruppel jeremyruppel removed the stale This issue is like stale bread. label May 29, 2026
@jeremyruppel jeremyruppel requested a review from aqandrew May 29, 2026 18:31
@jeremyruppel jeremyruppel force-pushed the jeremy/template-builder-components branch from 0948f05 to 85b17e5 Compare May 29, 2026 18:31
Comment thread site/src/pages/TemplateBuilder/ModuleConfiguration.stories.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/ModuleConfiguration.stories.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/ModuleConfiguration.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/SelectionSummary.tsx
Comment thread site/src/pages/TemplateBuilder/SelectionSummary.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/SelectionSummary.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/SelectionSummary.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/TemplateConfiguration.stories.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/TemplateConfiguration.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/ModuleCard.tsx
Comment thread site/src/pages/TemplateBuilder/TemplateCard.tsx
Comment thread site/src/pages/TemplateBuilder/ModuleCard.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/ModuleCard.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/ModuleCard.tsx Outdated
return (
<div
className={cn(
"border-0 border-l border-border border-solid mx-4 -translate-x-px",

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.

IMO we should make the step divider's border color correspond with the step number above, to make the connection/progression between steps clearer.

Image Image

What do you think @chrifro?

@jeremyruppel jeremyruppel Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

wow, I'm not sure where I got that divider line color from! double checked the Figma and the divider never changes color as you progress through the steps– it's always that secondary gray. @aqandrew what do you think of this vs green?

Screenshot 2026-06-05 at 2 31 27 PM Screenshot 2026-06-05 at 2 33 11 PM

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.

I took those two screenshots after setting different StepDivider border colors in DevTools on my machine! Didn't mean to gaslight you 😆

I was recommending the white/green borders as a possible improvement over what was designed. I know I'm late giving design feedback (seeing as the latest Figma comments are from 1-2 months ago), but I'm curious to know what you/Christin think about my proposal

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oh haaaaaa my bad! gotcha, ok I asked design on the Figma. I am thinking of merging this as-is though and we can change the line color depending on the answer

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.

SGTM, I'm good with adding that in a followup PR if that's what we decide on. I'd be happy to implement it too 🙂

Comment thread site/src/pages/TemplateBuilder/ModuleConfiguration.tsx
Comment thread site/src/pages/TemplateBuilder/ModuleConfiguration.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/TemplateConfiguration.tsx Outdated
Comment thread site/src/pages/TemplateBuilder/TemplateCard.tsx
jeremyruppel and others added 8 commits June 5, 2026 14:24
…uilder

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…nition-driven

Replace the children API on ModuleConfiguration and TemplateConfiguration
with a typed fields array rendered by a shared ConfigurationField
dispatcher. Text fields reuse the existing FormField; select, radio, and
switch fields are covered by local wrappers. This removes the ad-hoc field
helpers the stories previously had to invent and stops duplicating
SelectField across both story files.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Use semantic HTML: section, header, figure, h3 elements
- Add aria-labelledby to ModuleCard and TemplateCard
- Refactor StepIndicator to use cva for variant styling
- Define named props types for BaseTemplateSelection and ModuleSelection
- Remove unnecessary flex classes, lean on native block flow
- Fix View Details link width in ModuleCard
Co-authored-by: Andrew Aquino <dawneraq@gmail.com>
@jeremyruppel jeremyruppel force-pushed the jeremy/template-builder-components branch from b6a41d6 to 681b59f Compare June 5, 2026 18:24
@jeremyruppel jeremyruppel requested review from aqandrew and aslilac June 5, 2026 19:59

@aqandrew aqandrew 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.

Thanks for addressing my PR comments! I'm good with this if you accept the Chromatic changes

@jeremyruppel

Copy link
Copy Markdown
Contributor Author

accept the Chromatic changes

I've accepted all of the changes for this PR– there's still a few that are for Agents so I'm going to leave those

@jeremyruppel jeremyruppel merged commit fff58bd into main Jun 8, 2026
28 of 29 checks passed
@jeremyruppel jeremyruppel deleted the jeremy/template-builder-components branch June 8, 2026 12:59
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 8, 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