feat(frontend): Benachrichtigungssystem (Modul 26)

NotificationBell in der Kopfzeile: ungelesene Anzahl als Badge,
Dropdown mit Prioritaets-Badges (INFO/HINWEIS/WARNUNG/KRITISCH),
Klick markiert als gelesen und fuehrt zum verknuepften Objekt.
Ausserdem IDOR im Backend gefunden und behoben (siehe vorheriger
Commit) - live mit einem echten Datensatz verifiziert.
This commit is contained in:
Nick Szaunig committed 2026-08-22 22:50:45 +02:00
1 parent 75f0d4fd51
commit 0fc13952fb
5 files changed
+125 -2

No files matched your search

+3 -1
View File
@@ -5,6 +5,7 @@ import Link from "next/link";
import { usePathname, useRouter } from "next/navigation";
import { Hexagon, MoreHorizontal } from "lucide-react";
import { useAuth } from "@/lib/auth/auth-context";
import { NotificationBell } from "@/components/notification-bell";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
@@ -104,7 +105,8 @@ export default function AppLayout({ children }: { children: ReactNode }) {
</DropdownMenu>
</div>
</nav>
<div className="flex shrink-0 items-center gap-3 text-sm">
<div className="flex shrink-0 items-center gap-2 text-sm">
<NotificationBell />
<span className="hidden max-w-40 truncate text-muted-foreground md:inline">
{user.email}
</span>