feat(apollo-vertex): update Alert and Sonner styles and docs#345
feat(apollo-vertex): update Alert and Sonner styles and docs#345hfrancis31 wants to merge 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Dependency ReviewThe following issues were found:
Vulnerabilitiespnpm-lock.yamlOnly included vulnerabilities with severity high or higher. OpenSSF ScorecardScorecard details
Scanned Files
|
e8adf11 to
3ec52e4
Compare
- Alert: tinted uses opacity modifiers, outline uses bg-card for solid background - Alert: remove info and success statuses; supports default, warning, error only - Sonner: theme-aware color-mix backgrounds (card base light, popover base dark) - Sonner: explicit text/icon/close-button color overrides per status and theme - Docs: two visual styles (tinted, outline), correct status availability per component, Sonner props and API tables added Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3ec52e4 to
f940d95
Compare
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
Check warning
Code scanning / zizmor
detects commit SHAs that don't match their version comment tags Warning
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
Check warning
Code scanning / zizmor
detects commit SHAs that don't match their version comment tags Warning
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
Check warning
Code scanning / zizmor
detects commit SHAs that don't match their version comment tags Warning
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
Check warning
Code scanning / zizmor
detects commit SHAs that don't match their version comment tags Warning
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
Check warning
Code scanning / zizmor
detects commit SHAs that don't match their version comment tags Warning
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
Check warning
Code scanning / zizmor
detects commit SHAs that don't match their version comment tags Warning
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
Check warning
Code scanning / zizmor
detects commit SHAs that don't match their version comment tags Warning
| - name: Setup pnpm | ||
| if: steps.lockfile_check.outputs.changed == 'true' | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
Check warning
Code scanning / zizmor
detects commit SHAs that don't match their version comment tags Warning
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
Check warning
Code scanning / zizmor
detects commit SHAs that don't match their version comment tags Warning
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
Check warning
Code scanning / zizmor
detects commit SHAs that don't match their version comment tags Warning
| // Shared components | ||
| // ============================================================================ | ||
|
|
||
| function SectionTitle({ children }: { children: React.ReactNode }) { |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 days ago
In general, the way to fix an unused function is either to remove it if it is truly unnecessary or to start using it where intended. To avoid changing existing behavior, the safest fix here is to delete the unused SectionTitle component while leaving the rest of the file unchanged.
Concretely, in packages/apollo-wind/src/getting-started/getting-started.stories.tsx, remove the definition of SectionTitle (lines 24–26 in the snippet), which is the function:
function SectionTitle({ children }: { children: React.ReactNode }) {
return <h2 className="mb-2 text-2xl font-bold tracking-tight text-foreground">{children}</h2>;
}No new imports, methods, or variables are needed, and no other parts of the file need to be updated.
| @@ -21,10 +21,6 @@ | ||
| // Shared components | ||
| // ============================================================================ | ||
|
|
||
| function SectionTitle({ children }: { children: React.ReactNode }) { | ||
| return <h2 className="mb-2 text-2xl font-bold tracking-tight text-foreground">{children}</h2>; | ||
| } | ||
|
|
||
| function SectionDescription({ children }: { children: React.ReactNode }) { | ||
| return <p className="mb-6 text-base leading-7 text-muted-foreground">{children}</p>; | ||
| } |
Summary
infoandsuccessstatuses — component now supportsdefault,warning,erroronly. Outline variant usesbg-cardfor a solid opaque background. Tinted variant uses opacity modifiers per status.color-mixbackgrounds (--cardbase in light,--popoverbase in dark). Added explicit text, icon, and close button color overrides per status for both themes. Info toast usescard-foregroundsurface withprimary-foregroundtext for natural inversion across themes.Toasterprops andtoast()API tables.Test plan
/shadcn-components/alert,/shadcn-components/sonner, and/patterns/notifications/in-productdocs pages🤖 Generated with Claude Code