Skip to content

toaster#177

Merged
andrre-ls merged 2 commits intomainfrom
toaster
Mar 24, 2026
Merged

toaster#177
andrre-ls merged 2 commits intomainfrom
toaster

Conversation

@andrre-ls
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Introduces a global toast notification (“toaster”) system to the Foundations UI, wires it into the root Astro layout, and adds supporting docs/examples and modal integration for correct top-layer stacking.

Changes:

  • Add a new Toaster React component + global toast() emitter using a shared store across Astro islands.
  • Dispatch ui:modal-open / ui:modal-close events from Modal so the toaster can adjust top-layer ordering when modals open.
  • Add documentation and preview examples for the toaster (plus a couple small layout/style tweaks).

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 14 comments.

Show a summary per file
File Description
src/styles/markdown.css Adds extra blockquote styling (rounded corners).
src/layouts/shell.astro Mounts the Toaster at the app shell root and hydrates it on load.
src/layouts/page.astro Changes right-side nav container overflow behavior.
src/foundations/ui/toaster/toaster.tsx New toaster implementation (store, rendering, animations, top-layer handling).
src/foundations/ui/toaster/page.mdx New component documentation page for Toaster.
src/foundations/ui/toaster/examples/toaster.preview.tsx Adds basic toaster preview example.
src/foundations/ui/toaster/examples/toaster-variants.preview.tsx Adds variant previews (default/positive/negative).
src/foundations/ui/toaster/examples/toaster-duration.preview.tsx Adds duration previews (default/short/infinite).
src/foundations/ui/toaster/examples/toaster-drawer.preview.tsx Adds a drawer + toaster interaction preview.
src/foundations/ui/toaster/examples/toaster-description.preview.tsx Adds a description-text preview.
src/foundations/ui/modal/modal.tsx Emits modal open/close events to coordinate with toaster stacking.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andrre-ls andrre-ls merged commit 1a6f308 into main Mar 24, 2026
2 checks passed
@andrre-ls andrre-ls deleted the toaster branch March 24, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants