How nabilsharudin/airost-intern works
ClubLedger is a campus-society budget and expense tracker. Members sign in, complete onboarding, then submit claims against projects; treasurers and admins review claims and manage budgets, while members can track spending and update their profiles. The dashboard route authenticates users, loads role-specific data and selects the relevant workspace; project pages provide a detailed ledger and activity view. README-described realtime updates and private receipt storage are included, though their backend implementation is not in the supplied tree. Some component links rely on the SOURCE INDEX or README rather than inspected implementations.
Main entry points: dashboard/page.tsx Dashboard router · supabaseClient.ts Browser client · server.ts Server client · [id]/page.tsx Project detail
Components 32
Entry and identity
- Login page
app/(auth)/login/page.tsx - Signup page
app/(auth)/signup/page.tsx - Auth form
components/auth/auth-form.tsx - Auth shell
components/auth/auth-shell.tsx - Email confirmation
app/auth/confirm/route.ts
Member account
- Onboarding route
app/onboarding/page.tsx - Onboarding flow
components/onboarding/onboarding-flow.tsx - Profile route
app/profile/page.tsx - Profile form
components/profile/profile-form.tsx - Role manager
components/dashboard/user-role-manager.tsx
Claims and budgets
- Dashboard router
app/dashboard/page.tsx - Demo dashboard
components/dashboard/demo-dashboard.tsx - Member workspace
components/dashboard/member-dashboard.tsx - Treasurer workspace
components/dashboard/treasurer-dashboard.tsx - Admin workspace
components/dashboard/admin-dashboard.tsx - Approval workspace
components/dashboard/approval-workspace.tsx - Claims tracker
components/dashboard/claims-tracker.tsx - Expense form
components/dashboard/expense-form.tsx - Expense ledger
components/dashboard/expense-ledger.tsx - Expense review
components/dashboard/expense-review-control.tsx
Project management
- Project detail
app/dashboard/projects/[id]/page.tsx - Project form
components/dashboard/project-form.tsx - Project editing
components/dashboard/project-edit-control.tsx - Project archive
components/dashboard/project-archive-control.tsx - Project activity
components/dashboard/project-activity-list.tsx
Supabase access
- Realtime refresh
components/dashboard/realtime-refresh.tsx - Server client
lib/supabase/server.ts - Browser client
lib/supabase/supabaseClient.ts - Supabase
- ClubLedger data
- Private receipts
Other components
- Visitor
Connections 46
- Visitor → Login page: opens
README.md - Visitor → Signup page: opens
README.md - Login page → Auth form: renders
app/(auth)/login/page.tsx - Signup page → Auth form: renders
app/(auth)/signup/page.tsx - Login page → Auth shell: renders
app/(auth)/login/page.tsx - Signup page → Auth shell: renders
app/(auth)/signup/page.tsx - Auth form → Browser client: authenticates
components/auth/auth-form.tsx - Auth form → Dashboard router: redirects
components/auth/auth-form.tsx - Auth form → Email confirmation: requests confirmation
components/auth/auth-form.tsx - Email confirmation → Server client: uses
app/auth/confirm/route.ts - Visitor → Onboarding route: completes setup
README.md - Onboarding route → Onboarding flow: renders
app/onboarding/page.tsx - Onboarding route → Server client: loads account
app/onboarding/page.tsx - Onboarding flow → Browser client: updates account
components/onboarding/onboarding-flow.tsx - Visitor → Profile route: manages profile
README.md - Profile route → Profile form: renders
app/profile/page.tsx - Profile route → Server client: loads account
app/profile/page.tsx - Profile form → Browser client: updates profile
components/profile/profile-form.tsx - Visitor → Dashboard router: opens
README.md - Dashboard router → Server client: loads session and data
app/dashboard/page.tsx - Dashboard router → Demo dashboard: selects demo
app/dashboard/page.tsx - Dashboard router → Member workspace: dispatches member
app/dashboard/page.tsx - Dashboard router → Treasurer workspace: dispatches treasurer
app/dashboard/page.tsx - Dashboard router → Admin workspace: dispatches admin
app/dashboard/page.tsx - Dashboard router → Realtime refresh: renders
app/dashboard/page.tsx - Admin workspace → Role manager: renders
components/dashboard/admin-dashboard.tsx - Admin workspace → Member workspace: renders
components/dashboard/admin-dashboard.tsx - Admin workspace → Treasurer workspace: renders
components/dashboard/admin-dashboard.tsx - Member workspace → Expense form: renders
components/dashboard/member-dashboard.tsx - Treasurer workspace → Approval workspace: renders
components/dashboard/treasurer-dashboard.tsx - Treasurer workspace → Claims tracker: renders
components/dashboard/treasurer-dashboard.tsx - Treasurer workspace → Project form: renders
components/dashboard/treasurer-dashboard.tsx - Expense ledger → Expense review: renders
components/dashboard/expense-ledger.tsx - Project detail → Server client: loads project data
app/dashboard/projects/[id]/page.tsx - Project detail → Expense ledger: renders
app/dashboard/projects/[id]/page.tsx - Project detail → Project activity: renders
app/dashboard/projects/[id]/page.tsx - Project detail → Project editing: renders
app/dashboard/projects/[id]/page.tsx - Project detail → Project archive: renders
app/dashboard/projects/[id]/page.tsx - Project editing → Browser client: updates project
components/dashboard/project-edit-control.tsx - Project archive → Browser client: archives project
components/dashboard/project-archive-control.tsx - Role manager → Browser client: changes roles
components/dashboard/user-role-manager.tsx - Server client → Supabase: connects
lib/supabase/server.ts - Browser client → Supabase: connects
lib/supabase/supabaseClient.ts - Supabase → ClubLedger data: reads and writes
README.md - Supabase → Private receipts: stores and signs
README.md - Realtime refresh → Browser client: subscribes
components/dashboard/realtime-refresh.tsx