From 5e937fa2a9dfaf1a03fddb7f066257dc1161d07b Mon Sep 17 00:00:00 2001 From: Adrien Delmastro Date: Thu, 12 Feb 2026 21:53:07 +0100 Subject: [PATCH 1/2] [WIP] - work in progress --- pwa/app/components/molecules/Header.tsx | 35 ++++++----- pwa/app/components/molecules/Sidebar.tsx | 79 ++++++++++++++++++++++-- pwa/app/components/tabs/temporal.tsx | 10 +++ pwa/app/globals.css | 4 +- 4 files changed, 105 insertions(+), 23 deletions(-) diff --git a/pwa/app/components/molecules/Header.tsx b/pwa/app/components/molecules/Header.tsx index ef26b7b..5ae00d1 100644 --- a/pwa/app/components/molecules/Header.tsx +++ b/pwa/app/components/molecules/Header.tsx @@ -7,20 +7,27 @@ interface HeaderProps { export default function Header({ onToggleSidebar }: HeaderProps) { return (
- -
- - +
+ +
+ + +
+
+
+
+ ACJJ +
) diff --git a/pwa/app/components/molecules/Sidebar.tsx b/pwa/app/components/molecules/Sidebar.tsx index 5571035..ff41ad2 100644 --- a/pwa/app/components/molecules/Sidebar.tsx +++ b/pwa/app/components/molecules/Sidebar.tsx @@ -1,7 +1,9 @@ +import { TrendingUp, ScatterChart, PieChart, BookOpen, FileText, ExternalLink, FileCode } from 'lucide-react' + const tabs = [ - { key: 'temporal', label: 'Temporal' }, - { key: 'points', label: 'Points' }, - { key: 'diagram', label: 'Diagram' }, + { key: 'temporal', label: 'Séries temporelles', icon: TrendingUp }, + { key: 'points', label: 'Nuage de points', icon: ScatterChart }, + { key: 'diagram', label: 'Diagramme circulaire', icon: PieChart }, ] as const export type TabKey = (typeof tabs)[number]['key'] @@ -19,8 +21,8 @@ export default function Sidebar({ activeTab, onTabChange, open }: SidebarProps)
-
-
+
+

FullStack Lab

@@ -34,16 +36,81 @@ export default function Sidebar({ activeTab, onTabChange, open }: SidebarProps) ))} + +
+

Infos

+
+ + +
+

Librairies

+
+ + +
+

API

+
+ +
) diff --git a/pwa/app/components/tabs/temporal.tsx b/pwa/app/components/tabs/temporal.tsx index 60befb8..5dea77c 100644 --- a/pwa/app/components/tabs/temporal.tsx +++ b/pwa/app/components/tabs/temporal.tsx @@ -194,6 +194,16 @@ export default function Temporal({ regions }: TemporalProps) { wrapperStyle={{ paddingTop: '20px', }} + content={({ payload }) => ( +
+ {payload?.map(entry => ( + + + {entry.value} + + ))} +
+ )} /> {visibleRegions.map(region => ( Date: Thu, 12 Feb 2026 22:49:41 +0100 Subject: [PATCH 2/2] [FEAT] - restrain date order --- pwa/app/components/tabs/temporal.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pwa/app/components/tabs/temporal.tsx b/pwa/app/components/tabs/temporal.tsx index 5dea77c..beca4bf 100644 --- a/pwa/app/components/tabs/temporal.tsx +++ b/pwa/app/components/tabs/temporal.tsx @@ -114,13 +114,17 @@ export default function Temporal({ regions }: TemporalProps) { + {startYear >= endYear && ( +

La date de début doit être antérieure à la date de fin.

+ )} + {regions.length > 0 && (
-- GitLab