Skip to content

Add Sonner toasts for student and quiz actions - #33

Merged
mrbubbles-src merged 3 commits into
mainfrom
codex/create-branch-and-add-sonner-with-toasts
Feb 6, 2026
Merged

Add Sonner toasts for student and quiz actions#33
mrbubbles-src merged 3 commits into
mainfrom
codex/create-branch-and-add-sonner-with-toasts

Conversation

@mrbubbles-src

Copy link
Copy Markdown
Owner

Motivation

  • Provide immediate user feedback for roster and quiz operations by adding toast notifications and a centralized toast container.

Description

  • Add the sonner dependency and a theme-aware global Toaster at components/ui/sonner.tsx, and mount it in the app root via app/layout.tsx with <Toaster />.
  • Wire toast.success(...) notifications into student flows in components/students/student-form.tsx (add/import) and components/students/student-table.tsx (edit/toggle/delete/clear) and add small helper handlers and JSDoc comments for clarity.
  • Wire toast.success(...) notifications into quiz workflows in components/quizzes/quiz-editor-form.tsx (create/update/delete quizzes and questions) and components/quizzes/quiz-import-card.tsx (import), and add brief JSDoc comments where appropriate.

Testing

  • Ran bun add sonner to install sonner@2.0.7, which completed successfully. (succeeded)
  • Started the dev server with bun --bun next dev, and Next reported the app ready at http://localhost:3000. (succeeded)
  • Attempted an automated Playwright smoke check to add a student and capture a screenshot, but Playwright failed to launch Chromium in the container (SIGSEGV), so the UI interaction check could not complete. (failed)
  • No unit test suite was executed as part of this change. (not run)

Codex Task

@vercel

vercel Bot commented Feb 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
teacherbuddy Ready Ready Preview, Comment Feb 6, 2026 10:50pm

… 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
mrbubbles-src marked this pull request as ready for review February 6, 2026 22:50
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@mrbubbles-src
mrbubbles-src merged commit c6b7f1f into main Feb 6, 2026
6 checks passed
@mrbubbles-src
mrbubbles-src deleted the codex/create-branch-and-add-sonner-with-toasts branch February 6, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant