How tomtapia/admin-dashboard-template works
This is a React admin-dashboard template: a user signs in, enters a tenant-scoped, role-gated workspace, and uses routed pages to view or manage operational data. The app also provides analytics, billing, team and user administration, mail, calendar, support, integrations, settings, theming and localization. The graph follows documented routing and sampled calls; several feature pages and APIs are represented from the README and file tree, so their internal request paths are not asserted.
Main entry points: router.tsx Protected router · http.ts HTTP client · auth-context.tsx Session context · overview-page.tsx Overview dashboard
Components 25
Application shell
- App bootstrap
src/main.tsx - Protected router
src/app/router.tsx - Workspace shell
src/components/layout/app-shell.tsx - Sidebar navigation
src/components/layout/nav-items.ts
Identity and tenancy
- Session context
src/features/auth/auth-context.tsx - Authentication API
src/features/auth/auth-api.ts - Tenant context
src/features/tenants/tenant-context.tsx - HTTP client
src/lib/http.ts
Dashboard modules
- Overview dashboard
src/pages/overview-page.tsx - Analytics
src/pages/analytics-page.tsx - User administration
src/pages/users-page.tsx - Team management
src/pages/team-page.tsx - Billing
src/pages/billing-page.tsx - Transactions
src/pages/transactions-page.tsx - Mail and calendar
src/pages/mail-page.tsx - Support
src/pages/support-page.tsx - Integrations
src/pages/integrations-page.tsx - Notifications
src/pages/notifications-page.tsx - Settings and profile
src/pages/settings-page.tsx - Login page
src/pages/login-page.tsx
Shared experience
- Shared UI components
src/components/shared - Theme preferences
src/features/theme/theme-context.tsx - Localization
src/features/i18n/i18n.ts
Other components
- Dashboard user
- API backend
Connections 27
- Dashboard user → App bootstrap: opens app
- App bootstrap → Protected router: renders
- Protected router → Login page: routes to
src/app/router.tsx - Protected router → Workspace shell: wraps routes
src/app/router.tsx - Protected router → Overview dashboard: routes to
src/app/router.tsx - Protected router → Analytics: routes to
src/app/router.tsx - Protected router → User administration: routes to
src/app/router.tsx - Protected router → Team management: routes to
src/app/router.tsx - Protected router → Billing: routes to
src/app/router.tsx - Protected router → Transactions: routes to
src/app/router.tsx - Protected router → Mail and calendar: routes to
src/app/router.tsx - Protected router → Support: routes to
src/app/router.tsx - Protected router → Integrations: routes to
src/app/router.tsx - Protected router → Notifications: routes to
src/app/router.tsx - Protected router → Settings and profile: routes to
src/app/router.tsx - Workspace shell → Sidebar navigation: shows navigation
- Login page → Session context: starts session
- Session context → Authentication API: requests login
src/features/auth/auth-context.tsx - Session context → HTTP client: sets auth handlers
src/features/auth/auth-context.tsx - Authentication API → HTTP client: sends auth requests
src/features/auth/auth-api.ts - Tenant context → HTTP client: sets tenant scope
src/features/tenants/tenant-context.tsx - HTTP client → API backend: sends requests
- Overview dashboard → Shared UI components: renders shared UI
src/pages/overview-page.tsx - Overview dashboard → API backend: loads dashboard data
- Team management → API backend: loads team data
- Theme preferences → Settings and profile: provides themes
- Localization → Settings and profile: provides languages