Skip to content

feat(site): add CollapsibleSection component and shared utilities#23990

Draft
DanielleMaywood wants to merge 1 commit intomainfrom
danielle/collapsible-section
Draft

feat(site): add CollapsibleSection component and shared utilities#23990
DanielleMaywood wants to merge 1 commit intomainfrom
danielle/collapsible-section

Conversation

@DanielleMaywood
Copy link
Copy Markdown
Contributor

🤖 This PR was written by Coder Agent on behalf of Danielle Maywood 🤖

PR 1/4 in a stack to unify agent settings pages.

Adds foundation pieces consumed by later PRs:

  • CollapsibleSection — bordered card with clickable header (title/description/badge/action slots), chevron toggle, aria-expanded/aria-controls via useId(), cn() for conditional classes. Stories include play functions testing toggle, keyboard nav (Enter/Space), and action slot stopPropagation.
  • AvatarData — adds min-w-0 to both flex containers (standard flexbox truncation fix).
  • SectionHeader — adds min-w-0 flex-1 for text truncation in constrained layouts.

Stack:

  1. ➡️ This PR — CollapsibleSection + shared fixes
  2. Behavior page CollapsibleSection cards
  3. Analytics DateRangePicker
  4. Unified Spend page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Pull Requests and issues created by the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant