mirror of
https://github.com/temetro/temetro.git
synced 2026-08-09 01:59:30 +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>
71 lines
1.8 KiB
TypeScript
71 lines
1.8 KiB
TypeScript
import {
|
|
BarChart3,
|
|
CalendarClock,
|
|
History,
|
|
ListTodo,
|
|
type LucideIcon,
|
|
Mail,
|
|
NotebookPen,
|
|
Pill,
|
|
Plus,
|
|
Settings,
|
|
Users,
|
|
} from "lucide-react";
|
|
|
|
export type NavSubItem = {
|
|
id: string;
|
|
// i18n key resolved with t() at render time.
|
|
labelKey: string;
|
|
icon?: LucideIcon;
|
|
link: string;
|
|
};
|
|
|
|
export type NavItem = {
|
|
id: string;
|
|
// i18n key resolved with t() at render time.
|
|
labelKey: string;
|
|
icon: LucideIcon;
|
|
link: string;
|
|
// Optional sub-pages revealed under this item in the sidebar.
|
|
subs?: NavSubItem[];
|
|
};
|
|
|
|
// Single source of truth for the primary navigation. Consumed by the sidebar
|
|
// (components/sidebar-02/app-sidebar.tsx) and the command palette
|
|
// (components/command-palette.tsx) so the two never drift.
|
|
export const navItems: NavItem[] = [
|
|
{ id: "new-chat", labelKey: "nav.newChat", icon: Plus, link: "/" },
|
|
{
|
|
id: "patients",
|
|
labelKey: "nav.patients",
|
|
icon: Users,
|
|
link: "/patients",
|
|
subs: [
|
|
{ id: "patients-list", labelKey: "nav.patients", link: "/patients" },
|
|
{
|
|
id: "appointments",
|
|
labelKey: "nav.appointments",
|
|
icon: CalendarClock,
|
|
link: "/appointments",
|
|
},
|
|
{
|
|
id: "prescriptions",
|
|
labelKey: "nav.prescriptions",
|
|
icon: Pill,
|
|
link: "/prescriptions",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: "analysis",
|
|
labelKey: "nav.analysis",
|
|
icon: BarChart3,
|
|
link: "/analysis",
|
|
},
|
|
{ id: "messages", labelKey: "nav.messages", icon: Mail, link: "/messages" },
|
|
{ id: "notes", labelKey: "nav.notes", icon: NotebookPen, link: "/notes" },
|
|
{ id: "tasks", labelKey: "nav.tasks", icon: ListTodo, link: "/tasks" },
|
|
{ id: "activity", labelKey: "nav.activity", icon: History, link: "/activity" },
|
|
{ id: "settings", labelKey: "nav.settings", icon: Settings, link: "/settings" },
|
|
];
|