Checkpoint: Boîte à idées : table BDD, API tRPC (créer, lister, répondre, changer statut), page avec liste filtrée par statut et recherche, bouton Nouvelle demande, réponse admin avec statut colorisé, menu dans la sidebar

This commit is contained in:
Manus
2026-04-17 10:57:07 -04:00
parent b36a049ca5
commit 535dd19188
11 changed files with 1311 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ import {
RefreshCw,
Menu,
X,
Lightbulb,
} from "lucide-react";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
@@ -48,6 +49,14 @@ const NAV_GROUPS: NavGroup[] = [
{ label: "Appels à Projets", href: "/aap", icon: <Target size={16} /> },
],
},
{
label: "Boîte à idées",
icon: <Lightbulb size={18} />,
defaultOpen: true,
items: [
{ label: "Boîte à idées", href: "/boite-a-idees", icon: <Lightbulb size={16} /> },
],
},
{
label: "Administration",
icon: <Settings size={18} />,
@@ -71,6 +80,7 @@ export function AppLayout({ children, user, onLogout }: AppLayoutProps) {
const [mobileOpen, setMobileOpen] = useState(false);
const [openGroups, setOpenGroups] = useState<Record<string, boolean>>({
"Tableaux de bord": true,
"Boîte à idées": true,
"Administration": false,
});
const [location] = useLocation();