How quinnyen/catsplit-app works
CatSplit is a LINE LIFF-centered group expense-sharing app, with Google and guest access, backed by Firebase and Cloud Functions. The main flow is user sign-in or group invitation, group expense entry, shared balance and settlement, then recording transfers. Alongside it are personal ledgers, savings goals, and foreign-exchange trip tools. The graph also includes account identity operations and the shared localization layer. Some feature implementations were not sampled; those branches and relationships are based on README statements, while uncertain internal calls are omitted.
Main entry points: GroupPage.jsx Group timeline · App.jsx App router · AppContext.jsx Session and login · index.js Cloud API
Components 25
App and identity
- App router
src/App.jsx - Session and login
src/context/AppContext.jsx - OAuth callback
src/pages/AuthCallbackPage.jsx - Group listing
src/hooks/useMyGroups.js
Group expense sharing
- Group timeline
src/pages/GroupPage.jsx - Expense calculations
src/utils/expenseHelpers.js - Settlement and transfers
src/pages/SettlePage.jsx - Membership and settings
src/pages/MembersPage.jsx
Personal finance
- Personal ledger
src/features/ledger - Savings goals
src/pages/SavingsGoalPage.jsx - FX and trips
src/features/fx
Cloud services
- Firebase services
src/config/firebase.js - Cloud API
functions/index.js - Identity resolution
functions/identity.js - Identity binding
functions/bind.js - Account merge
functions/mergeFlow.js - Member operations
functions/memberOps.js
Shared services
- LINE LIFF
src/config/liff.js - Currency definitions
src/config/currencies.js - Localization provider
src/i18n/I18nProvider.jsx - Translation core
src/i18n/core.js - Localized labels
src/i18n/codes.js - English dictionary
src/i18n/en.js - Traditional Chinese dictionary
src/i18n/zh-TW.js
Other components
- Users
Connections 26
- Users → App router: opens
src/App.jsx - App router → Group timeline: routes to
src/App.jsx - App router → Session and login: uses session
src/App.jsx - App router → Group listing: loads groups
src/App.jsx - OAuth callback → Session and login: completes OAuth
src/pages/AuthCallbackPage.jsx - Session and login → LINE LIFF: initializes
src/context/AppContext.jsx - Session and login → Firebase services: authenticates
src/context/AppContext.jsx - Group listing → Firebase services: queries groups
src/hooks/useMyGroups.js - Group timeline → Expense calculations: filters entries
src/pages/GroupPage.jsx - Group timeline → Firebase services: reads group data
src/pages/GroupPage.jsx - Users → Group timeline: records expenses
README.md - Users → Settlement and transfers: settles balances
README.md - Users → Membership and settings: manages membership
README.md - Users → Personal ledger: tracks personal finances
README.md - Users → Savings goals: tracks savings
README.md - Users → FX and trips: uses FX tools
README.md - Cloud API → Identity resolution: resolves identity
functions/index.js - Cloud API → Identity binding: parses bind request
functions/index.js - Cloud API → Account merge: runs identity flow
functions/index.js - Account merge → Identity binding: uses bind flow
functions/mergeFlow.js - Account merge → Member operations: uses member operations
functions/mergeFlow.js - Localization provider → Translation core: translates with
src/i18n/I18nProvider.jsx - Localization provider → English dictionary: loads dictionary
src/i18n/I18nProvider.jsx - Localization provider → Traditional Chinese dictionary: loads dictionary
src/i18n/I18nProvider.jsx - Group timeline → Localized labels: uses category codes
src/pages/GroupPage.jsx - Expense calculations → Translation core: translates labels
src/utils/expenseHelpers.js