How tusharvarshney18/erpx-frontend works
ERPX is a browser-based ERP suite covering finance, sales, inventory, purchasing, banking, HR, reporting, and organization administration. Users enter through marketing or sign-in, establish an authenticated organization session, and access permission-aware application routes; the dashboard and domain pages provide operational results. Source evidence shows the auth/API and access/search relationships, plus dashboard and self-service dependencies. Many domain route implementations and backend behavior were not sampled, so those capability nodes are grouped by their exact source directory without inferred internal flows.
Main entry points: auth.tsx Auth session · SearchPalette.tsx Search palette · useShortcutTargets.ts Shortcut targets · index.tsx Marketing site
Components 24
Entry and identity
- Marketing site
src/routes/index.tsx - Sign in
src/routes/auth.tsx - Auth session
src/lib/auth.tsx
Application navigation
- Route registry
src/routeTree.gen.ts - App router
src/router.tsx - Visible navigation
src/lib/navigation-access.ts - Shortcut targets
src/hooks/useShortcutTargets.ts - Search palette
src/components/command/SearchPalette.tsx
ERP operations
- Dashboard
src/features/dashboard/dashboard-page.tsx - Accounting and reports
src/routes - Sales and CRM
src/routes - Inventory and purchasing
src/routes - Banking
src/routes - Organization admin
src/routes
Workforce
- HR management
src/routes - Employee self-service
src/features/self-service - Self-service API
src/lib/api/self-service.ts
Shared platform
- API client
src/lib/api/client.ts - Access policy
src/hooks/useAccess.ts - Design-system layout
src/design-system/components/layout - Design-system button
src/design-system/components/ui/button.tsx - Design class utility
src/design-system/lib/cn.ts - Shared UI kit
src/components/ui
Other components
- Visitor
Connections 17
- Visitor → Marketing site: views
src/routes/index.tsx - Marketing site → Sign in: starts signup
src/routes/index.tsx - Sign in → Auth session: authenticates
src/routes/auth.tsx - Auth session → API client: requests auth
src/lib/auth.tsx - App router → Route registry: loads registry
src/router.tsx - Dashboard → API client: loads data
src/features/dashboard/dashboard-page.tsx - Dashboard → Auth session: reads session
src/features/dashboard/dashboard-page.tsx - Employee self-service → Self-service API: requests records
src/features/self-service/my-attendance-page.tsx - Self-service API → API client: sends requests
src/lib/api/self-service.ts - Search palette → Access policy: checks permissions
src/components/command/SearchPalette.tsx - Search palette → Auth session: reads organization
src/components/command/SearchPalette.tsx - Search palette → Shortcut targets: resolves targets
src/components/command/SearchPalette.tsx - Shortcut targets → Access policy: gets access context
src/hooks/useShortcutTargets.ts - Shortcut targets → Visible navigation: filters destinations
src/hooks/useShortcutTargets.ts - Design-system layout → Design class utility: uses class utility
src/design-system/components/layout/org-switcher.tsx - Design-system button → Design class utility: uses class utility
- Shared UI kit → Marketing site: renders interface