From d89de20df257a41ed6f2932a24f955c65f544bf4 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Fri, 13 Feb 2026 10:56:35 +0100 Subject: [PATCH] feat: polish mobile hub design and navigation --- client/src/pages/mobile/dashboard.tsx | 121 +++++++++++++++----------- task.md | 5 ++ 2 files changed, 77 insertions(+), 49 deletions(-) diff --git a/client/src/pages/mobile/dashboard.tsx b/client/src/pages/mobile/dashboard.tsx index c276662..be85bc0 100644 --- a/client/src/pages/mobile/dashboard.tsx +++ b/client/src/pages/mobile/dashboard.tsx @@ -1,6 +1,5 @@ import TopBar from "@/components/topbar"; import OngoingReels from "@/components/ongoing-reels"; -import { useState } from "react"; import { Link, useLocation } from "wouter"; import { PlusCircle, @@ -12,81 +11,105 @@ import { Clock, Settings, Users, - Bot, - Database, - ChevronRight + ChevronRight, + Sparkles } from "lucide-react"; +import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card"; +import { Button } from "@/components/ui/button"; export default function DashboardMobile() { const [, setLocation] = useLocation(); const mainActions = [ - { icon: PlusCircle, label: "Nv. Post", href: "/new", color: "text-blue-500", bg: "bg-blue-500/10", border: "border-blue-500/20" }, - { icon: Video, label: "Nv. Reel", href: "/reel", color: "text-purple-500", bg: "bg-purple-500/10", border: "border-purple-500/20" }, - { icon: Calendar, label: "Calendrier", href: "/calendar", color: "text-amber-500", bg: "bg-amber-500/10", border: "border-amber-500/20" }, - { icon: BarChart3, label: "Analytics", href: "/analytics", color: "text-emerald-500", bg: "bg-emerald-500/10", border: "border-emerald-500/20" }, + { icon: PlusCircle, label: "Nv. Post", href: "/new", color: "text-blue-500", bg: "bg-blue-500/10", border: "border-blue-500/20", description: "Créer une publication" }, + { icon: Video, label: "Nv. Reel", href: "/reel", color: "text-purple-500", bg: "bg-purple-500/10", border: "border-purple-500/20", description: "Générer une vidéo IA" }, + { icon: Calendar, label: "Calendrier", href: "/calendar", color: "text-amber-500", bg: "bg-amber-500/10", border: "border-amber-500/20", description: "Voir le planning" }, + { icon: BarChart3, label: "Analytics", href: "/analytics", color: "text-emerald-500", bg: "bg-emerald-500/10", border: "border-emerald-500/20", description: "Statistiques" }, ]; const secondaryMenu = [ { icon: Images, label: "Médiathèque", href: "/media" }, - { icon: Wand2, label: "Éditeur", href: "/image-editor" }, + { icon: Wand2, label: "Éditeur d'images", href: "/image-editor" }, { icon: Clock, label: "Historique", href: "/history" }, - { icon: Users, label: "Pages", href: "/pages" }, + { icon: Users, label: "Pages connectées", href: "/pages" }, { icon: Settings, label: "Paramètres", href: "/settings" }, ]; - // Admin items could be added here if needed, or integrated into secondaryMenu - return (
{ }} hideMenuButton={true} />
+ + {/* Header Section */} +
+
+ +
+
+

+ Social Flow +

+

Tableau de bord

+
+
+ {/* 1. Status Section */} {/* 2. Main Action Grid */} -
-

Actions Rapides

-
- {mainActions.map((item) => { - const Icon = item.icon; - return ( - -
- - {item.label} -
- - ); - })} -
-
+ + + Actions Rapides + + +
+ {mainActions.map((item) => { + const Icon = item.icon; + return ( + +
+
+ +
+ {item.label} + {item.description} +
+ + ); + })} +
+
+
{/* 3. Secondary Menu List */} -
-

Menu

-
- {secondaryMenu.map((item) => { - const Icon = item.icon; - return ( - -
-
- + + + Menu + + +
+ {secondaryMenu.map((item) => { + const Icon = item.icon; + return ( + +
+
+ +
+ {item.label} +
- {item.label} - -
- - ); - })} -
-
+ + ); + })} +
+ +
diff --git a/task.md b/task.md index 01f4e8f..d8a52e9 100644 --- a/task.md +++ b/task.md @@ -171,6 +171,11 @@ Ajout d'une fonctionnalité complète de création de Reels Facebook permettant - [x] Create Secondary Menu List - [x] Remove `StatsCards` and `RecentPublications` from main view +### Phase 18: Mobile Hub Polish ✨ + +- [x] **Entry Point**: Verify no forced redirects to `/new`. +- [x] **Hub Design**: Refactor `DashboardMobile` with `Card` components and consistent styling. + ### Phase 13: Activation Agent BMad ✅ - [x] Activer l'agent `bmad-master.md`