How lukemorales/bancointer works
Banco Inter Internet Banking is a React redesign centered on a sign-in-to-dashboard experience: users enter through Welcome, authentication gates the dashboard, and the dashboard presents account, statement, investment, banking-product, and navigation views. Account data is generated locally for the signed-in user; theme and account preferences are stored in browser local storage. The graph preserves the major visible product areas and key data-generation layers. Some component wiring is omitted where the sampled source does not show the caller.
Main entry points: auth.tsx Authentication state · AccountSummary Account summary · index.tsx Route dispatch · generate-investments.ts Investment generator
Components 21
App and Routing
- Application shell
src/App.tsx - Route dispatch
src/routes/index.tsx - Private route gate
src/routes/PrivateRoute.tsx
Identity and Preferences
- Welcome sign-in
src/pages/Welcome/index.tsx - Authentication state
src/contexts/auth.tsx - Theme preferences
src/contexts/theme.tsx - Account menu
src/components/Header/AccountDropdown/index.tsx
Banking Dashboard
- Dashboard layout
src/pages/Dashboard/index.tsx - Sidebar navigation
src/pages/Dashboard/SideBar - Main content layout
src/pages/Dashboard/MainContent - Account summary
src/pages/Dashboard/MainContent/AccountSummary - Bank products
src/pages/Dashboard/MainContent/BankProducts - Navigation cards
src/pages/Dashboard/MainContent/NavigationCards - Dashboard content config
src/constants
Account Data
- Account data builder
src/utils/generate-account-data.ts - Statement generator
src/utils/generate-statements.ts - Investment generator
src/utils/generate-investments.ts - Month intervals
src/utils/generate-months-interval.ts - Currency formatter
src/utils/format-currency.ts
Other components
- Banking user
- Browser local storage
Connections 26
- Banking user → Welcome sign-in: starts at
README.md - Application shell → Route dispatch: renders
src/App.tsx - Route dispatch → Welcome sign-in: routes to
src/routes/index.tsx - Route dispatch → Private route gate: guards dashboard
src/routes/index.tsx - Private route gate → Authentication state: checks sign-in
src/routes/PrivateRoute.tsx - Route dispatch → Dashboard layout: routes to
src/routes/index.tsx - Welcome sign-in → Authentication state: signs in
src/pages/Welcome/index.tsx - Authentication state → Account data builder: builds account
src/contexts/auth.tsx - Authentication state → Browser local storage: reads and writes
src/contexts/auth.tsx - Theme preferences → Browser local storage: reads and writes
src/contexts/theme.tsx - Application shell → Theme preferences: selects active theme
src/App.tsx - Dashboard layout → Sidebar navigation: renders
src/pages/Dashboard/index.tsx - Dashboard layout → Main content layout: renders
src/pages/Dashboard/index.tsx - Account summary → Authentication state: reads account
src/pages/Dashboard/MainContent/AccountSummary/index.tsx - Account summary → Statement generator: uses hidden data
src/pages/Dashboard/MainContent/AccountSummary/index.tsx - Account summary → Investment generator: uses hidden data
src/pages/Dashboard/MainContent/AccountSummary/index.tsx - Account summary → Currency formatter: formats amounts
src/pages/Dashboard/MainContent/AccountSummary/index.tsx - Account summary → Dashboard content config: uses transitions
src/pages/Dashboard/MainContent/AccountSummary/index.tsx - Bank products → Dashboard content config: reads product config
src/pages/Dashboard/MainContent/BankProducts/index.tsx - Account data builder → Statement generator: generates statements
src/utils/generate-account-data.ts - Account data builder → Investment generator: generates investments
src/utils/generate-account-data.ts - Statement generator → Month intervals: uses month intervals
src/utils/generate-statements.ts - Investment generator → Month intervals: uses month intervals
src/utils/generate-investments.ts - Investment generator → Currency formatter: formats values
src/utils/generate-investments.ts - Account menu → Authentication state: signs out
src/components/Header/AccountDropdown/index.tsx - Account menu → Theme preferences: toggles theme
src/components/Header/AccountDropdown/index.tsx