How necotan/milenote works
Milenote is a personal car-expense tracking web app. A user manages vehicles and records vehicle-related costs, including recurring payments; the app also provides maintenance alerts and monthly/yearly expense statistics. The sampled files show page-to-data-hook references and the Supabase browser client, while the README documents the broader capabilities and Supabase-backed persistence. Some subsystems are represented by their exact enclosing directory because their implementation was not sampled; relationships without direct evidence are omitted.
Main entry points: supabase.ts Browser client · page.tsx Expense records · useCars.ts Vehicle data hook · useRecords.ts Record data hook
Components 19
App experience
- App shell
components/AppShell.tsx - Login and signup
app/login/page.tsx - Profile and export
app/mypage/page.tsx - Localization
lib/i18n/index.tsx
Expense management
- Vehicle management
app/garage/page.tsx - Expense records
app/records/page.tsx - Recurring costs
components/RecurringTab.tsx - Recurring processing
components/RecurringCostProcessor.tsx
Maintenance and insights
- Maintenance alerts
app/maintenance/page.tsx - Alert rules
lib/maintenanceAlerts.ts - Expense statistics
app/stats/page.tsx - Yearly calculations
lib/yearlyStats.ts
Identity and data
- Current user hook
lib/hooks/useSupabaseUser.ts - Vehicle data hook
lib/hooks/useCars.ts - Record data hook
lib/hooks/useRecords.ts - Recurring data hook
lib/hooks/useRecurringCosts.ts - Browser client
utils/supabase.ts
Other components
- User
- Supabase
Connections 26
- User → Login and signup: signs in
- User → Vehicle management: manages vehicles
- User → Expense records: records expenses
- User → Expense statistics: views spending
- Expense records → Recurring costs: shows tab
app/records/page.tsx - Vehicle management → Current user hook: uses user
app/garage/page.tsx - Vehicle management → Vehicle data hook: loads vehicles
app/garage/page.tsx - Vehicle management → Record data hook: loads records
app/garage/page.tsx - Expense records → Vehicle data hook: loads vehicles
app/records/page.tsx - Expense records → Record data hook: loads records
app/records/page.tsx - Expense records → Recurring costs: renders
app/records/page.tsx - Recurring costs → Recurring data hook: uses data hook
components/RecurringTab.tsx - Maintenance alerts → Alert rules: uses alert rules
app/maintenance/page.tsx - Maintenance alerts → Vehicle data hook: loads vehicles
app/maintenance/page.tsx - Maintenance alerts → Record data hook: loads records
app/maintenance/page.tsx - Expense statistics → Vehicle data hook: loads vehicles
app/stats/page.tsx - Expense statistics → Record data hook: loads records
app/stats/page.tsx - Expense statistics → Yearly calculations: uses calculations
app/stats/page.tsx - Current user hook → Browser client: gets client
lib/hooks/useSupabaseUser.ts - Vehicle data hook → Browser client: gets client
lib/hooks/useCars.ts - Record data hook → Browser client: uses client
lib/hooks/useRecords.ts - Recurring data hook → Browser client: uses client
- Browser client → Supabase: connects
- App shell → Recurring processing: renders processor
components/AppShell.tsx - Login and signup → Browser client: uses client
app/login/page.tsx - App shell → Localization: uses localization
components/AppShell.tsx