Grapevine_Disease_Detection/vineye-admin/app/layout.tsx
Yanis 720dd34fdd add MyPlantsScreen + ScanDetailScreen + enriched admin + API mobile + project summary
Mobile:
- Replace LibraryScreen with MyPlantsScreen (date-grouped scan list, swipe actions, search, pull-to-refresh)
- Add ScanDetailScreen (immersive hero, confidence bar, cepage card, share/delete)
- Add DiseaseDetailScreen + GuideDetailScreen (hero pattern, animated entry)
- Add useScanDetail, useHistory (useCallback fix), dateGrouping utility
- Connect diseases/guides to admin API with cache + offline fallback
- Add NetworkContext, ToastContext, Skeleton loading components
- Extend ScanRecord type (isFavorite, location)
- Full i18n FR/EN for all new screens

Admin (vineye-admin):
- Enrich Disease/Guide Prisma schema (timeline, conditions, actions, sections)
- Enriched disease-form (7 sections) + guide-form (structured sections editor)
- Add mobile public API endpoints (diseases, guides by slug)
- Add Prisma migration + enriched seed data
- UI polish: sidebar, login, layout updates

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 03:19:39 +02:00

45 lines
1 KiB
TypeScript

import type { Metadata } from "next";
import { Roboto } from "next/font/google";
import { Toaster } from "@/components/ui/sonner";
import "./globals.css";
const roboto = Roboto({
variable: "--font-roboto",
subsets: ["latin"],
display: "swap",
weight: ["300", "400", "500", "700"],
});
export const metadata: Metadata = {
title: "VinEye Admin",
description: "Panel d'administration VinEye — Gestion des maladies de la vigne",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html
lang="fr"
className={`${roboto.variable} h-full antialiased`}
>
<body className="min-h-full flex flex-col">
{children}
<Toaster
position="top-right"
richColors
toastOptions={{
style: {
background: "oklch(0.17 0.005 60)",
border: "1px solid oklch(0.25 0.006 60)",
color: "oklch(0.93 0.005 80)",
},
}}
/>
</body>
</html>
);
}