Skip to content

feat(project-creation): Make alert frequency collapsible via ScmCollapsibleSection#117849

Merged
jaydgoss merged 2 commits into
masterfrom
jaygoss/scm-collapsible-alert-frequency
Jun 22, 2026
Merged

feat(project-creation): Make alert frequency collapsible via ScmCollapsibleSection#117849
jaydgoss merged 2 commits into
masterfrom
jaygoss/scm-collapsible-alert-frequency

Conversation

@jaydgoss

@jaydgoss jaydgoss commented Jun 16, 2026

Copy link
Copy Markdown
Member

TLDR

Applies ScmCollapsibleSection to the alert-frequency section of ScmProjectDetailsCore, folding it behind a toggle in the project-creation flow. Onboarding keeps the always-expanded header. This is the first production consumer of the component.

Details

  • Gated with collapsible = analyticsFlow === 'project-creation'.
  • The chevron and "Alert frequency" title replace the IconSiren header, and the "Get notified when things go wrong" subtitle moves into the collapsible body so it hides when collapsed.
  • Onboarding renders the original IconSiren header with an always-expanded body. The body markup is shared between both branches, so onboarding stays visually unchanged.
  • Removes the knip production-entry exemption that feat(project-creation): Add reusable collapsible section for create flow #117847 added for ScmCollapsibleSection. Now that the component has a production consumer, the exemption is redundant and would trip knip's config-hint check.

Stack

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 16, 2026
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-section branch from 7c6a809 to c20e5e2 Compare June 16, 2026 21:32
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-alert-frequency branch from acde609 to 7d94fd3 Compare June 16, 2026 21:38
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-section branch from c20e5e2 to b56d395 Compare June 16, 2026 21:46
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-alert-frequency branch from 7d94fd3 to 370a8cb Compare June 16, 2026 21:46
@jaydgoss jaydgoss marked this pull request as ready for review June 17, 2026 18:17
@jaydgoss jaydgoss requested a review from a team as a code owner June 17, 2026 18:17
@jaydgoss jaydgoss requested a review from a team June 17, 2026 21:25
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-alert-frequency branch from 370a8cb to 433a8e8 Compare June 18, 2026 17:43
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-alert-frequency branch from 433a8e8 to 54178a9 Compare June 22, 2026 16:01
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-section branch from 513fc52 to 31441bf Compare June 22, 2026 16:01
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-section branch from 31441bf to 8c502bd Compare June 22, 2026 16:43
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-alert-frequency branch from 54178a9 to ed068d0 Compare June 22, 2026 16:43
jaydgoss added a commit that referenced this pull request Jun 22, 2026
…low (#117846)

## TLDR

Typography and copy polish across the SCM project-creation flow:
normalized heading levels and text sizing, and simplified the
create-project intro copy.

## Details

- Dropped section headings from `h2`/`xl` to `h3` and stepped body text
from `lg` to `md` across `scmFeatureInfoCards`,
`scmFeatureSelectionCards`, `scmProjectDetailsCore`, and
`scmCreateProject`.
- Simplified the create-project intro copy and removed the docs link.

## Stack

- [#117731](#117731): SCM
integration selector (base of this PR)
- **PR 2 (this) #117846:** Typography and copy polish
- [#117847](#117847): Reusable
collapsible section (stacked on this)
- [#117849](#117849):
Alert-frequency collapsible

Draft: more changes coming on this branch.
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-section branch from 8c502bd to a191798 Compare June 22, 2026 16:57
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-alert-frequency branch from ed068d0 to 26e25df Compare June 22, 2026 16:57
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-section branch from a191798 to d935cd4 Compare June 22, 2026 17:15
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-alert-frequency branch from 26e25df to 4c80589 Compare June 22, 2026 17:17
@jaydgoss jaydgoss requested a review from a team as a code owner June 22, 2026 17:17
Base automatically changed from jaygoss/scm-collapsible-section to master June 22, 2026 17:26
jaydgoss added a commit that referenced this pull request Jun 22, 2026
…low (#117847)

## TLDR

Introduces `ScmCollapsibleSection`, a reusable collapsible section for
the SCM project-creation flow. The component lands on its own here and
is not yet consumed in production; the alert-frequency follow-up
(#117849) is its first consumer.

## 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.
- The component has no production consumer in this PR, so it is added to
the knip production entry points (see `knip.config.ts`). #117849 removes
that exemption when it wires the component into alert frequency.

## Stack

- [#117731](#117731): SCM
integration selector (merged)
- [#117846](#117846): Typography
and copy polish (merged)
- **PR 3 (this) #117847:** Reusable collapsible section
- [#117849](#117849):
Alert-frequency collapsible (stacked on this)
jaydgoss added 2 commits June 22, 2026 12:28
…psibleSection

Apply ScmCollapsibleSection to the alert-frequency section in
ScmProjectDetailsCore so it folds away in the project-creation flow
(`collapsible = analyticsFlow === 'project-creation'`). Onboarding keeps the
section always expanded.

When collapsible, the chevron and title sit in the toggle and the "Get
notified when things go wrong" subtitle moves into the collapsible body so it
hides when collapsed. Onboarding renders the same header (bold label +
subtitle) with the alert control always visible.
Alert frequency now consumes ScmCollapsibleSection in production, so the
production-entry exemption added alongside the component is redundant and
would trip knip's config-hint check. Remove it.
@jaydgoss jaydgoss force-pushed the jaygoss/scm-collapsible-alert-frequency branch from 4c80589 to 176241c Compare June 22, 2026 17:30
@jaydgoss jaydgoss merged commit cdbbc6b into master Jun 22, 2026
77 checks passed
@jaydgoss jaydgoss deleted the jaygoss/scm-collapsible-alert-frequency branch June 22, 2026 20:19
sehr-m pushed a commit that referenced this pull request Jun 23, 2026
…low (#117846)

## TLDR

Typography and copy polish across the SCM project-creation flow:
normalized heading levels and text sizing, and simplified the
create-project intro copy.

## Details

- Dropped section headings from `h2`/`xl` to `h3` and stepped body text
from `lg` to `md` across `scmFeatureInfoCards`,
`scmFeatureSelectionCards`, `scmProjectDetailsCore`, and
`scmCreateProject`.
- Simplified the create-project intro copy and removed the docs link.

## Stack

- [#117731](#117731): SCM
integration selector (base of this PR)
- **PR 2 (this) #117846:** Typography and copy polish
- [#117847](#117847): Reusable
collapsible section (stacked on this)
- [#117849](#117849):
Alert-frequency collapsible

Draft: more changes coming on this branch.
sehr-m pushed a commit that referenced this pull request Jun 23, 2026
…low (#117847)

## TLDR

Introduces `ScmCollapsibleSection`, a reusable collapsible section for
the SCM project-creation flow. The component lands on its own here and
is not yet consumed in production; the alert-frequency follow-up
(#117849) is its first consumer.

## 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.
- The component has no production consumer in this PR, so it is added to
the knip production entry points (see `knip.config.ts`). #117849 removes
that exemption when it wires the component into alert frequency.

## Stack

- [#117731](#117731): SCM
integration selector (merged)
- [#117846](#117846): Typography
and copy polish (merged)
- **PR 3 (this) #117847:** Reusable collapsible section
- [#117849](#117849):
Alert-frequency collapsible (stacked on this)
sehr-m pushed a commit that referenced this pull request Jun 23, 2026
…psibleSection (#117849)

## TLDR

Applies `ScmCollapsibleSection` to the alert-frequency section of
`ScmProjectDetailsCore`, folding it behind a toggle in the
project-creation flow. Onboarding keeps the always-expanded header. This
is the first production consumer of the component.

## Details

- Gated with `collapsible = analyticsFlow === 'project-creation'`.
- The chevron and "Alert frequency" title replace the `IconSiren`
header, and the "Get notified when things go wrong" subtitle moves into
the collapsible body so it hides when collapsed.
- Onboarding renders the original `IconSiren` header with an
always-expanded body. The body markup is shared between both branches,
so onboarding stays visually unchanged.
- Removes the knip production-entry exemption that #117847 added for
`ScmCollapsibleSection`. Now that the component has a production
consumer, the exemption is redundant and would trip knip's config-hint
check.

## Stack

- [#117731](#117731): SCM
integration selector (merged)
- [#117846](#117846): Typography
and copy polish (merged)
- [#117847](#117847): Reusable
collapsible section (base of this PR)
- **PR 4 (this) #117849:** Alert-frequency collapsible
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.

2 participants