How fotatoe24/dormvision works
DormVision is a multi-role dormitory management and accounting application. Owners manage rooms, tenant approvals, billing, payments, expenses and financial monitoring; tenants view bills/history and report payments with proof. Custom application sessions and explicit authorization mediate access to Supabase. The graph covers major README capabilities, plus platform administration and scheduled reminders. Some routes and domain implementations were not sampled, so documented capabilities are included but uncertain implementation links are omitted.
Main entry points: route.ts Payment reporting · auth.ts Session authorization · tenant/page.tsx Tenant dashboard · billing/page.tsx Tenant billing
Components 29
Access and accounts
- Login and signup
app/login/page.tsx - Account actions
lib/actions.ts - Session authorization
lib/auth.ts - Revocable sessions
lib/session-store.ts
Dorm operations
- Tenant dashboard
app/tenant/page.tsx - Registration status
lib/tenant-status.ts - Room management
app/admin/rooms/page.tsx - Tenant approvals
app/admin/tenant-requests/page.tsx
Billing and finance
- Tenant billing history
app/tenant/history/page.tsx - Tenant billing
app/tenant/billing/page.tsx - Payment reporting
app/api/payments/report/route.ts - Bill management
app/admin/billing/page.tsx - Payment review
app/admin/payments/page.tsx - Income and expenses
app/admin/expenses/page.tsx - Financial monitoring
app/admin/monitoring/page.tsx - Owner overview
app/admin/page.tsx - Invoice viewing and PDF
app/invoices/[id]/page.tsx - Receipt viewing and PDF
app/receipts/[id]/page.tsx
Platform oversight
- Platform administration
app/platform/page.tsx - Platform account actions
lib/platform-actions.ts
Application services
- Daily billing reminders
app/api/cron/daily/route.ts - Late-fee processing
lib/late-fees.ts - Billing calculations
lib/billing.ts - Database client
lib/supabase/admin.ts - Supabase PostgreSQL
- Email delivery
lib/reminder-emails.ts
Other components
- Dorm owner
- Tenant
- Platform administrator
Connections 33
- Dorm owner → Login and signup: signs in
- Tenant → Login and signup: signs in
- Login and signup → Account actions: submits credentials
- Account actions → Session authorization: issues session
lib/actions.ts - Session authorization → Revocable sessions: records and checks
lib/auth.ts - Session authorization → Database client: creates client
lib/auth.ts - Tenant → Tenant dashboard: views account
- Tenant dashboard → Registration status: checks approval
app/tenant/page.tsx - Dorm owner → Room management: manages rooms
- Dorm owner → Tenant approvals: approves registrations
- Tenant → Tenant billing: views bills
- Tenant → Tenant billing history: views history
- Tenant billing → Payment reporting: submits payment report
- Payment reporting → Registration status: checks tenancy
app/api/payments/report/route.ts - Payment reporting → Database client: writes payment
app/api/payments/report/route.ts - Dorm owner → Bill management: manages bills
- Dorm owner → Payment review: reviews payments
- Dorm owner → Income and expenses: records expenses
- Dorm owner → Financial monitoring: monitors finances
- Dorm owner → Owner overview: views overview
- Owner overview → Late-fee processing: applies fees
app/admin/page.tsx - Owner overview → Billing calculations: formats bill status
app/admin/page.tsx - Tenant dashboard → Late-fee processing: applies fees
app/tenant/page.tsx - Tenant billing → Billing calculations: uses billing rules
app/tenant/billing/page.tsx - Tenant → Invoice viewing and PDF: views invoice
- Tenant → Receipt viewing and PDF: views receipt
- Daily billing reminders → Late-fee processing: applies fees
app/api/cron/daily/route.ts - Daily billing reminders → Email delivery: sends reminders
app/api/cron/daily/route.ts - Platform administrator → Platform administration: administers platform
- Platform administration → Platform account actions: uses account actions
- Database client → Supabase PostgreSQL: connects to
- Revocable sessions → Supabase PostgreSQL: reads and writes sessions
lib/session-store.ts - Payment reporting → Supabase PostgreSQL: stores report and proof
app/api/payments/report/route.ts