Conversation
There was a problem hiding this comment.
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
ToasterReact component + globaltoast()emitter using a shared store across Astro islands. - Dispatch
ui:modal-open/ui:modal-closeevents fromModalso 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.