Skip to content

feat(project-creation): Add reusable collapsible section for create flow#117847

Draft
jaydgoss wants to merge 1 commit into
jaygoss/vdy-77-project-creation-ui-polish-and-analytics-passfrom
jaygoss/scm-collapsible-section
Draft

feat(project-creation): Add reusable collapsible section for create flow#117847
jaydgoss wants to merge 1 commit into
jaygoss/vdy-77-project-creation-ui-polish-and-analytics-passfrom
jaygoss/scm-collapsible-section

Conversation

@jaydgoss

@jaydgoss jaydgoss commented Jun 16, 2026

Copy link
Copy Markdown
Member

TLDR

Introduces ScmCollapsibleSection, a reusable collapsible section for the SCM project-creation flow, and uses it to fold the "What do you want to instrument?" feature cards behind a toggle. Enabled in project creation only; the onboarding flow stays always-expanded.

Details

  • ScmCollapsibleSection puts the chevron and title in one transparent toggle button (mirroring the core Disclosure look) with an optional trailing slot pinned right. The body animates its own height (auto to 0) so sibling layout="position" cards below reflow through normal document flow, and initial={false} skips the mount animation so it renders in its defaultExpanded state.
  • It is a local variant of the core Disclosure rather than a consumer: Disclosure.Content hides with display: none, which cannot tween and would not reflow the sibling cards, and Disclosure.Title's full-width stretched button cannot express a content-hugging toggle without forking the shared component.
  • Applied to ScmFeatureSelectionCards via collapsible={!isOnboarding} from ScmPlatformFeaturesCore. The component is built to be reused, with the alert-frequency section in scmProjectDetailsCore as a likely next adopter.

Stack

Draft: more changes coming on this branch.

…apsibleSection

Introduce ScmCollapsibleSection, a reusable collapsible section for the SCM
project-creation flow, and use it to fold the "What do you want to
instrument?" feature cards. Enabled only in project creation (via
`collapsible={!isOnboarding}` from ScmPlatformFeaturesCore); the onboarding
flow keeps the cards always expanded with a plain heading.

ScmCollapsibleSection puts the chevron and title in one transparent toggle
button (mirroring the core Disclosure look) with an optional trailing slot
pinned right, and animates the body's own height (auto<->0) so sibling
layout="position" cards below follow via normal document flow.
initial=false keeps it from animating on mount. The body is indented to align
with the title copy.

It is a local variant of the core Disclosure rather than a consumer:
Disclosure.Content hides with display:none (can't tween, won't reflow the
sibling cards), and Disclosure.Title's full-width stretched button can't
express a content-hugging toggle without forking the shared component.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant