How romancitodev/bluecode works
Bluecode is a healthcare administration dashboard organized around patient listings, with additional areas, personnel, reports, and authentication screens. Users navigate dashboard sections through a shared sidebar; the patient page composes filtering and patient-card UI. Authentication is handled by a NextAuth API route that verifies credentials through Prisma. The README provides no product-specific workflow documentation, and several screens’ implementations were not sampled, so their behavior and data connections are not inferred.
Main entry points: page.tsx Patient listing · sidebar.tsx Section navigation · route.ts Auth endpoint · cards.tsx Patient cards
Components 18
Authentication
- Login screen
src/app/(auth)/login/page.tsx - Admin screen
src/app/(auth)/admin/page.tsx - Auth endpoint
src/app/api/auth/[...nextauth]/route.ts - Session provider
src/context/AuthProvider.tsx - Prisma client
prisma/singleton.ts - Application database
prisma/schema.prisma
Dashboard
- Dashboard layout
src/app/(dashboard)/layout.tsx - Patient listing
src/app/(dashboard)/patients/page.tsx - Areas screen
src/app/(dashboard)/areas/page.tsx - Personnel screen
src/app/(dashboard)/personal/page.tsx - Reports screen
src/app/(dashboard)/reports/page.tsx
Shared UI
- Section navigation
src/components/sidebar.tsx - Add control
src/components/add.tsx - Patient filters
src/components/filter.tsx - Page title
src/components/title.tsx - Patient cards
src/components/cards.tsx - Patient card
src/components/flat-card.tsx
Other components
- Dashboard user
Connections 13
- Dashboard user → Login screen: opens
- Auth endpoint → Prisma client: uses
src/app/api/auth/[...nextauth]/route.ts - Auth endpoint → Application database: verifies login
src/app/api/auth/[...nextauth]/route.ts - Dashboard layout → Section navigation: renders
src/app/(dashboard)/layout.tsx - Section navigation → Patient listing: links to
src/components/sidebar.tsx - Section navigation → Areas screen: links to
src/components/sidebar.tsx - Section navigation → Personnel screen: links to
src/components/sidebar.tsx - Section navigation → Reports screen: links to
src/components/sidebar.tsx - Patient listing → Add control: renders
src/app/(dashboard)/patients/page.tsx - Patient listing → Patient filters: renders
src/app/(dashboard)/patients/page.tsx - Patient listing → Page title: renders
src/app/(dashboard)/patients/page.tsx - Patient listing → Patient cards: renders
src/app/(dashboard)/patients/page.tsx - Patient cards → Patient card: renders
src/components/cards.tsx