Files
Synculous-2/synculous-client/src/app/layout.tsx
chelsea 97a166f5aa Fix medication system and rename to Synculous.
- Add all 14 missing database tables (medications, med_logs, routines, etc.)
- Rewrite medication scheduling: support specific days, every N days, as-needed (PRN)
- Fix taken_times matching: match by created_at date, not scheduled_time string
- Fix adherence calculation: taken / expected doses, not taken / (taken + skipped)
- Add formatSchedule() helper for readable display
- Update client types and API layer
- Rename brilli-ins-client → synculous-client
- Make client PWA: add manifest, service worker, icons
- Bind dev server to 0.0.0.0 for network access
- Fix SVG icon bugs in Icons.tsx
- Add .dockerignore for client npm caching

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-13 03:23:38 -06:00

46 lines
1.0 KiB
TypeScript

import type { Metadata } from "next";
import "./globals.css";
import { AuthProvider } from "@/components/auth/AuthProvider";
export const metadata: Metadata = {
title: "Synculous",
description: "Visual routine planner and timer for building healthy habits",
manifest: "/manifest.json",
themeColor: "#4f46e5",
appleWebApp: {
capable: true,
statusBarStyle: "default",
title: "Synculous",
},
viewport: {
width: "device-width",
initialScale: 1,
maximumScale: 1,
userScalable: false,
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<head>
<link rel="apple-touch-icon" href="/icon-192.png" />
</head>
<body className="antialiased">
<AuthProvider>
{children}
</AuthProvider>
<script
dangerouslySetInnerHTML={{
__html: `if('serviceWorker' in navigator){navigator.serviceWorker.register('/sw.js')}`,
}}
/>
</body>
</html>
);
}