feat: integrate Sentry for error tracking and enhance user notifications

- Added Sentry integration for error tracking across various components, including error boundaries and user actions.
- Updated global error handling to capture exceptions and provide detailed feedback to users.
- Enhanced user notifications with toast messages for actions such as credit management, image generation, and canvas exports.
- Improved user experience by displaying relevant messages during interactions, ensuring better visibility of system states and errors.
This commit is contained in:
Matthias
2026-03-27 18:14:04 +01:00
parent 5da0204163
commit 2f89465e82
35 changed files with 2822 additions and 186 deletions

View File

@@ -3,6 +3,8 @@
import { authClient } from "@/lib/auth-client";
import { useRouter } from "next/navigation";
import Link from "next/link";
import { toast } from "@/lib/toast";
import { msg } from "@/lib/toast-messages";
export default function Home() {
const { data: session, isPending } = authClient.useSession();
@@ -32,7 +34,10 @@ export default function Home() {
Zum Dashboard
</Link>
<button
onClick={() => authClient.signOut().then(() => router.refresh())}
onClick={() => {
toast.info(msg.auth.signedOut.title);
void authClient.signOut().then(() => router.refresh());
}}
className="rounded-lg border border-border px-6 py-3 text-sm hover:bg-accent"
>
Abmelden