From 3a2d554b69f71c71680024702f8364010f951b13 Mon Sep 17 00:00:00 2001 From: xEsiah Date: Wed, 4 Nov 2026 14:46:43 +0100 Subject: [PATCH] feat(ui): polish frontend UI Migrate remaining Tailwind utilities to v4 names and apply formatting; center auth form elements and unify the CoHaiSe Cloud branding header; use the activity icon for audio file placeholders. --- frontend/src/components/AppShell.tsx | 54 +++- frontend/src/components/AuthLayout.tsx | 2 +- frontend/src/components/FolderChat.tsx | 414 +++++++++++++++---------- frontend/src/components/icons.tsx | 2 +- frontend/src/components/toast.tsx | 57 +++- frontend/src/pages/ChangePassword.tsx | 9 +- frontend/src/pages/ConfirmEmail.tsx | 8 +- frontend/src/pages/ForgotPassword.tsx | 11 +- frontend/src/pages/Login.tsx | 4 +- frontend/src/pages/ResetPassword.tsx | 12 +- frontend/src/ui/components/Input.tsx | 8 +- 11 files changed, 371 insertions(+), 210 deletions(-) diff --git a/frontend/src/components/AppShell.tsx b/frontend/src/components/AppShell.tsx index 17364bf..074b29c 100644 --- a/frontend/src/components/AppShell.tsx +++ b/frontend/src/components/AppShell.tsx @@ -1,4 +1,10 @@ -import { createContext, useContext, useEffect, useState, type ReactNode } from "react"; +import { + createContext, + useContext, + useEffect, + useState, + type ReactNode, +} from "react"; import { NavLink, Outlet } from "react-router-dom"; import { cn } from "../ui/index.js"; import { useSession } from "../lib/session.js"; @@ -41,7 +47,11 @@ const ADMIN_NAV: NavItem[] = [ { to: "/admin/audit", label: "Journal", icon: ActivityIcon }, ]; -const ACCOUNT_NAV: NavItem = { to: "/profile", label: "Mon compte", icon: SettingsIcon }; +const ACCOUNT_NAV: NavItem = { + to: "/profile", + label: "Mon compte", + icon: SettingsIcon, +}; const navClass = ({ isActive }: { isActive: boolean }) => cn( @@ -78,7 +88,11 @@ export const AppShell = () => { const allNav = [...NAV, ...(isAdmin ? ADMIN_NAV : []), ACCOUNT_NAV]; const brand = ( - setMenuOpen(false)}> + setMenuOpen(false)} + > { const renderLink = (item: NavItem) => { const Icon = item.icon; return ( - setMenuOpen(false)}> + setMenuOpen(false)} + > {t(item.label)} @@ -107,7 +126,9 @@ export const AppShell = () => { }; return ( - +
@@ -117,11 +138,17 @@ export const AppShell = () => { {brand}
@@ -149,7 +176,6 @@ export const AppShell = () => { /> -