mirror of
https://github.com/temetro/temetro.git
synced 2026-07-27 12:18:56 +00:00
00152eb3cb
- Appointments now carry a date; the Calendar button opens a Google-Calendar style month grid (color-coded event chips, month nav, Today, click a day for its list). Today/Upcoming sections derive from dates. - Add-appointment dialog gains a date picker (Popover + Calendar). - Messages rebuilt as chat threads: an input-based composer that appends to a two-way timeline (no more toast covering the field), and the unread count is now a filter toggle. - Favicon: the brand logo now shows in the tab. Removed the stale default app/favicon.ico (which shadowed it) and added app/icon.png + app/apple-icon.png generated from the logo; dropped the redundant metadata.icons. - Sidebar: swapped Notes <-> Messages order (both kept). - New pages: Activity (signed-change audit timeline with hash chips + approval status) and Tasks (two-pane care-team to-do with add dialog). - Prescriptions: adding a medication now surfaces mock drug-interaction and allergy warnings against the patient's record. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
61 lines
1.9 KiB
TypeScript
61 lines
1.9 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist_Mono, Inter } from "next/font/google";
|
|
import "./globals.css";
|
|
import { cn } from "@/lib/utils";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
import { I18nProvider } from "@/components/i18n-provider";
|
|
import { ToastProvider } from "@/components/ui/toast";
|
|
|
|
// COSS font-variable contract: --font-sans, --font-heading, --font-mono.
|
|
const inter = Inter({ subsets: ["latin"], variable: "--font-sans" });
|
|
const interHeading = Inter({ subsets: ["latin"], variable: "--font-heading" });
|
|
const geistMono = Geist_Mono({ subsets: ["latin"], variable: "--font-mono" });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "temetro — AI assistant for clinicians",
|
|
description:
|
|
"Retrieve patient information by simply asking. The open-source AI assistant for clinicians.",
|
|
// Icons come from the app/icon.png + app/apple-icon.png file conventions.
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
suppressHydrationWarning
|
|
className={cn(
|
|
"h-full",
|
|
"antialiased",
|
|
inter.variable,
|
|
interHeading.variable,
|
|
geistMono.variable,
|
|
"font-sans"
|
|
)}
|
|
>
|
|
{/* suppressHydrationWarning: next-themes sets the theme class on <html>
|
|
before hydration, and browser extensions (e.g. ColorZilla's
|
|
cz-shortcut-listen) mutate <body>. Only ignores attribute diffs on
|
|
those elements, not their children. */}
|
|
<body
|
|
className="h-dvh overflow-hidden flex flex-col"
|
|
suppressHydrationWarning
|
|
>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="dark"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<ToastProvider>
|
|
<I18nProvider>{children}</I18nProvider>
|
|
</ToastProvider>
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|