How kavee234/fund-management-project works
This is a browser-based shared fund ledger, delivered as a small installable web app. Users select a fund and authenticate, then view monthly member records and record contributions, receipts, and shared expenses; the app synchronizes shared state and refreshes approved views. The principal logic is concentrated in script.js, so its domain responsibilities are shown as separate components sharing that path. The excerpts show validation, refresh, and service-worker behavior, but do not expose the complete UI wiring or database operations; those links are omitted or marked unverified.
Main entry points: script.js Shared ledger sync · service-worker.js Offline cache worker · index.html Browser interface · supabase-config.js Supabase configuration
Components 13
Fund access
- Fund selection and PIN
script.js
Fund ledger
- Shared ledger sync
script.js - Contributions
script.js - Collection receipts
script.js - Shared expenses
script.js - Member and transaction views
script.js
Web app shell
- Browser interface
index.html - Offline cache worker
service-worker.js
Shared data
- Supabase configuration
supabase-config.js - Fund database setup
supabase-setup.sql - Privacy migration
supabase-privacy-migration.sql
Other components
- Fund user
- Supabase service
Connections 14
- Fund user → Fund selection and PIN: selects fund
script.js - Fund selection and PIN → Shared ledger sync: grants view
script.js - Shared ledger sync → Contributions: activates state
script.js - Shared ledger sync → Collection receipts: activates state
script.js - Shared ledger sync → Shared expenses: activates state
script.js - Shared ledger sync → Member and transaction views: refreshes view
script.js - Browser interface → Shared ledger sync: hosts app logic
- Shared ledger sync → Supabase service: syncs records
- Supabase configuration → Supabase service: configures endpoint
- Fund database setup → Supabase service: sets up storage
- Privacy migration → Supabase service: updates privacy
- Shared ledger sync → Offline cache worker: registers worker
script.js - Offline cache worker → Browser interface: caches shell
service-worker.js - Offline cache worker → Supabase configuration: caches config
service-worker.js