How lukyeesu/anping works
The tree and sampled UI identify Anping as a clinic-management application, with staff, appointments, patients, inventory, point of sale, reporting and administration workflows. Users enter through the React app; its domain screens handle clinic tasks and use shared Supabase and offline-storage layers. Appointment notifications and settings integrations provide a separate messaging branch. The README is only the Vite template, and most page implementations and data wiring were not sampled, so uncertain links are omitted.
Main entry points: App.jsx App shell · index.ts LINE messaging function · notificationHub.js Notification hub · main.jsx React entry
Components 22
Application
- React entry
src/main.jsx - App shell
src/App.jsx - Login screen
src/pages/LoginScreen.jsx
Clinic workflows
- Appointments
src/pages/AppointmentManager.jsx - Staff management
src/pages/StaffManager.jsx - Medical records
src/pages/MedicalRecords.jsx - Inventory
src/pages/InventoryManager.jsx - Catalog
src/pages/CatalogManager.jsx - Point of sale
src/pages/POSSystem.jsx - Calendar
src/pages/CalendarView.jsx - Finance
src/pages/FinancePage.jsx - Reports
src/pages/ReportsManager.jsx - Dashboards
src/pages/Dashboard.jsx - Executive dashboard
src/pages/ExecutiveDashboard.jsx - Settings
src/pages/SettingsManager.jsx
Data services
- Supabase client
src/lib/supabase.js - Supabase
api/db.js - Offline store
src/lib/offlineStore.js
Messaging
- Notification hub
src/lib/notificationHub.js - LINE messaging function
supabase/functions/line-messaging/index.ts
Other components
- Clinic user
- LINE service
Connections 23
- Clinic user → React entry: opens app
- React entry → App shell: renders
- App shell → Login screen: presents login
- App shell → Appointments: presents
- App shell → Staff management: presents
- App shell → Medical records: presents
- App shell → Inventory: presents
- App shell → Catalog: presents
- App shell → Point of sale: presents
- App shell → Calendar: presents
- App shell → Finance: presents
- App shell → Reports: presents
- App shell → Dashboards: presents
- App shell → Executive dashboard: presents
- App shell → Settings: presents
- App shell → Supabase client: calls
- App shell → Offline store: clears on logout
- Reports → Offline store: reads reports data
- Appointments → Notification hub: dispatches alerts
- Settings → Notification hub: sends test alert
- Notification hub → LINE messaging function: routes LINE alerts
- LINE messaging function → Supabase: reads settings
- LINE messaging function → LINE service: sends messages