Skip to content

✨ feat: replace native alert() error popups with @mind-studio/ui Toaster - #15

Merged
rep0x merged 1 commit into
mainfrom
feat/replace-native-alerts-with-toaster
Jun 21, 2026
Merged

✨ feat: replace native alert() error popups with @mind-studio/ui Toaster#15
rep0x merged 1 commit into
mainfrom
feat/replace-native-alerts-with-toaster

Conversation

@rep0x

@rep0x rep0x commented Jun 21, 2026

Copy link
Copy Markdown
Member

Summary

Replaces the 8 browser alert() error popups in DriveBrowser and FilePreview with themed toast.error(...) notifications from Sonner, and renders <Toaster position="bottom-right" /> once at the app root in src/app/layout.tsx.

  • Imports toast from sonner in both component files (matches the projects-app convention).
  • Promotes sonner (^2.0.7) from a transitive dependency of @mind-studio/ui to a direct dependency so the import is declared explicitly.
  • Toaster is imported from @mind-studio/ui alongside the existing ThemeProvider.

Quality gates

  • npm run lint — passes (exit 0); only pre-existing warnings/infos, zero introduced by this change.
  • npm run typecheck — passes.
  • npm run test — passes (no test files).

🤖 Generated with Claude Code

Swaps 8 browser alert() calls in DriveBrowser and FilePreview for themed
toast.error notifications, and renders <Toaster/> at the app root.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rep0x
rep0x merged commit 90c8fef into main Jun 21, 2026
1 check passed
@rep0x
rep0x deleted the feat/replace-native-alerts-with-toaster branch June 21, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant