refonte(front): palette unique noir/blanc/bleu, sidebar, skeletons/loading, perf cache + server streaming#125
Merged
Merged
Conversation
- app-sidebar: tokens sidebar partout (bg-sidebar-accent + text-sidebar-primary + barre gauche bleue pour l'actif), titres de sections discrets (Onglets, Outils Zone01, Préférences), logo en pastille bleue, items 18px homogènes - icons/zone-apps: retrait des fills verts/blancs en dur -> currentColor (les icônes héritent du token: bleu actif / muted sinon) - bottom-nav + app-tabs: alignés sur les tokens (actif bleu) S'adapte au retrait du theme-picker (contexte ui-preferences refondu sur la branche). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ession multi-thèmes Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ique) ~55 fichiers : code-reviews, planning (+ slotTypeConfig), students/skills/specialties/discord, analytics, history, settings, employees, 01deck, word_assistant, alternants, hub/docs, charts. Mapping : blue/cyan/indigo/violet->primary, emerald/green->success, amber/orange->warning, red/rose->destructive, gray/zinc/slate->muted/border. Présentation uniquement, zéro logique/fetch. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… config - alternants/page.tsx 1329->321 l. (6 sous-composants présentationnels _components/) - planning/page.tsx 648->495 l. (PersonView/TableView extraites) - primitives partagées components/dashboard/ (StatCard, FilterToolbar) ; FilterToolbar adoptée dans history - suppression code mort config (page-old + 3 *-management anciens, 0 importeur) Extraction structurelle/présentationnelle uniquement — state/fetch/handlers inchangés. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…te bleue) - nav-apps: icônes d'app maison Zone01 -> lucide cohérentes (LayoutDashboard, GraduationCap, CalendarDays, Wrench, Layers, Signature, Network, Settings2, Settings) - sidebar: logo = pastille bleue + LayoutDashboard (remplace l'ancien '01') - favicon: app/icon.svg (carré bleu + grille dashboard), suppression de l'ancien favicon.ico Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… de l'icône dashboard) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…story en server streaming Levier 1 — lib/client-cache.ts (stale-while-revalidate + dédup, sans dépendance) adopté sur ~15 pages client (employees, alternants, config, assistant, word_assistant, students discord/skills/specialties, code-reviews client) : retours/navigation instantanés, plus de re-fetch identique. Levier 3 — planning: employees+schedules en parallèle (Promise.all). Levier 2 — analytics & history convertis en Server Component (mêmes services getActivePromotions/ getEnrichedHistory) + îlot client : plus de fetch au montage. Mêmes endpoints/services/requêtes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…nt, messages assistant)
- students/[id] : useData pour /api/student/{id} + /api/zone01/external/{login} (fetchWithRetry),
redirect-404 préservé, toggle alternant optimiste via override local + revalidation.
- alternants : détail (contracts/documents) en useData keyé par id -> réouverture instantanée ;
refresh/ajout via mutateKey.
- assistant/[id] : historique en useData keyé par conversation (réouverture instantanée),
state local conservé pour l'envoi optimiste + redirect-on-fail.
Mêmes endpoints/services/requêtes. 01deck = Firebase (hors périmètre du cache HTTP).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…es.ts) Un fichier page Next.js ne peut exporter que le composant + la config de route. Le split alternants exportait des interfaces/constantes depuis page.tsx -> build cassé. Déplacé dans alternants/types.ts ; page + _components importent depuis ./types. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refonte front du dashboard (FRONT ONLY — zéro logique de fetch modifiée)
Branche
refonte/frontend-dashboard. Build Next vérifié OK (next buildexit 0). Endpoints/services/requêtes inchangés.Vagues
loading.tsx(squelette instantané), gros skeleton allégé.Perf chargement
lib/client-cache.ts(stale-while-revalidate + dédup, sans dépendance) sur ~18 pages → retours/navigation instantanés.🤖 Generated with Claude Code