Add Sonner toasts for student and quiz actions - #33
Merged
mrbubbles-src merged 3 commits intoFeb 6, 2026
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… components This commit enhances user feedback by integrating Sonner toast notifications for various actions within the student and quiz import components. Notifications are triggered for errors related to clipboard operations, JSON import issues, and student additions, improving the overall user experience. Additionally, the layout of the Toaster component is adjusted for better positioning.
This commit updates the Toaster component by improving its styling and adding custom icons for different toast types. The component now utilizes a more streamlined approach to theming and toast options, enhancing the user experience with better visual feedback for notifications.
mrbubbles-src
marked this pull request as ready for review
February 6, 2026 22:50
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
mrbubbles-src
deleted the
codex/create-branch-and-add-sonner-with-toasts
branch
February 6, 2026 22:51
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.
Motivation
Description
sonnerdependency and a theme-aware globalToasteratcomponents/ui/sonner.tsx, and mount it in the app root viaapp/layout.tsxwith<Toaster />.toast.success(...)notifications into student flows incomponents/students/student-form.tsx(add/import) andcomponents/students/student-table.tsx(edit/toggle/delete/clear) and add small helper handlers and JSDoc comments for clarity.toast.success(...)notifications into quiz workflows incomponents/quizzes/quiz-editor-form.tsx(create/update/delete quizzes and questions) andcomponents/quizzes/quiz-import-card.tsx(import), and add brief JSDoc comments where appropriate.Testing
bun add sonnerto installsonner@2.0.7, which completed successfully. (succeeded)bun --bun next dev, and Next reported the app ready athttp://localhost:3000. (succeeded)Codex Task