feat: implement user account management features including profile display and password change functionality

This commit is contained in:
Julien Froidefond
2025-10-16 22:27:06 +02:00
parent 3cd58f63e6
commit 83f523c11a
11 changed files with 501 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
"use client";
import { Home, Library, Settings, LogOut, RefreshCw, Star, Download } from "lucide-react";
import { Home, Library, Settings, LogOut, RefreshCw, Star, Download, User } from "lucide-react";
import { usePathname, useRouter } from "next/navigation";
import { cn } from "@/lib/utils";
import { signOut } from "next-auth/react";
@@ -274,6 +274,16 @@ export function Sidebar({ isOpen, onClose, initialLibraries, initialFavorites }:
<h2 className="mb-2 px-4 text-lg font-semibold tracking-tight">
{t("sidebar.settings.title")}
</h2>
<button
onClick={() => handleLinkClick("/account")}
className={cn(
"w-full flex items-center rounded-lg px-3 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground",
pathname === "/account" ? "bg-accent" : "transparent"
)}
>
<User className="mr-2 h-4 w-4" />
{t("sidebar.account")}
</button>
<button
onClick={() => handleLinkClick("/settings")}
className={cn(