Trim sidebar to New chat/Patients/Settings; document project vision

- app-sidebar: remove the "Saved" and "Conversations" nav items (dead #
  links) and the "temetro / Clinic" team switcher; footer is now a plain
  "temetro · open source" wordmark. Keep the notifications bell. Drop the
  now-unused Bookmark/MessageSquare/Logo/TeamSwitcher imports.
- CLAUDE.md (frontend): rewrite "What this is" to match the current
  patient-records flow (/patient cards, sparklines, create/edit dialog over
  the mock fixture) and point to the project vision; note team-switcher.tsx
  is unused.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Khalid Abdi
2026-06-01 21:34:00 +03:00
parent 750622e0db
commit a2654a87e1
2 changed files with 25 additions and 28 deletions
+7 -24
View File
@@ -10,19 +10,11 @@ import {
} from "@/components/ui/sidebar";
import { cn } from "@/lib/utils";
import { motion } from "framer-motion";
import {
Bookmark,
MessageSquare,
Plus,
Settings,
Users,
} from "lucide-react";
import { Plus, Settings, Users } from "lucide-react";
import Image from "next/image";
import { Logo } from "@/components/sidebar-02/logo";
import type { Route } from "./nav-main";
import DashboardNavigation from "@/components/sidebar-02/nav-main";
import { NotificationsPopover } from "@/components/sidebar-02/nav-notifications";
import { TeamSwitcher } from "@/components/sidebar-02/team-switcher";
const sampleNotifications = [
{
@@ -61,18 +53,6 @@ const dashboardRoutes: Route[] = [
icon: <Users className="size-4" />,
link: "#",
},
{
id: "conversations",
title: "Conversations",
icon: <MessageSquare className="size-4" />,
link: "#",
},
{
id: "saved",
title: "Saved",
icon: <Bookmark className="size-4" />,
link: "#",
},
{
id: "settings",
title: "Settings",
@@ -81,8 +61,6 @@ const dashboardRoutes: Route[] = [
},
];
const teams = [{ id: "1", name: "temetro", logo: Logo, plan: "Clinic" }];
export function DashboardSidebar() {
const { state } = useSidebar();
const isCollapsed = state === "collapsed";
@@ -131,7 +109,12 @@ export function DashboardSidebar() {
<DashboardNavigation routes={dashboardRoutes} />
</SidebarContent>
<SidebarFooter className="px-2">
<TeamSwitcher teams={teams} />
{!isCollapsed && (
<div className="flex items-baseline gap-2 px-2 py-1.5">
<span className="font-semibold text-foreground">temetro</span>
<span className="text-xs text-muted-foreground">open source</span>
</div>
)}
</SidebarFooter>
</Sidebar>
);