How nabhaan10/e-challans works
India Traffic Hub is a web application for managing the digital traffic-challan lifecycle. The documented workflow is citizen/officer access, rule-based challan issuance with evidence, citizen verification and payment, and appeal review; admin routes expose rule, user, payment, audit, and traffic-intelligence functions. The route tree and README establish these capabilities, but most feature-route implementations were not sampled, so the graph shows supported entry points and documented domains without asserting unverified service calls.
Main entry points: auth.tsx Sign in / register · index.tsx Public landing · route.tsx Session guard · auth.ts Role and session
Components 24
Access and shell
- Public landing
src/routes/index.tsx - Sign in / register
src/routes/auth.tsx - Session guard
src/routes/_authenticated/route.tsx - Application shell
src/components/AppShell.tsx - Role and session
src/lib/auth.ts
Challan lifecycle
- Issue challan
src/routes/_authenticated/officer.issue.tsx - Traffic rules
src/routes/_authenticated/rules.index.tsx - Challan management
src/routes/_authenticated/challans.index.tsx - Challan detail
src/routes/_authenticated/challans.$id.tsx - Public verification
src/routes/verify.$challanNo.tsx - Vehicle records
src/routes/_authenticated/vehicles.index.tsx - Appeals
src/routes/_authenticated/appeals.tsx - Payment operations
src/routes/_authenticated/admin.payments.tsx
Operations and insight
- Admin overview
src/routes/_authenticated/admin.index.tsx - User administration
src/routes/_authenticated/admin.users.tsx - Audit history
src/routes/_authenticated/admin.audit.tsx - Traffic map
src/routes/_authenticated/admin.map.tsx - Appeal assistant
src/routes/_authenticated/admin.assistant.tsx - Notifications
src/routes/_authenticated/notifications.tsx
Data and identity
- Supabase services
src/integrations/supabase/client.ts - Database schema
drizzle/schema.ts
Other components
- Citizen
- Officer
- Administrator
Connections 32
- Citizen → Public landing: opens
- Officer → Public landing: opens
- Administrator → Public landing: opens
- Public landing → Sign in / register: links to
- Public landing → Public verification: navigates to
- Citizen → Sign in / register: registers / signs in
- Officer → Sign in / register: signs in
- Administrator → Sign in / register: signs in
- Sign in / register → Supabase services: authenticates
- Sign in / register → Role and session: loads session
- Session guard → Role and session: checks session
- Session guard → Sign in / register: redirects unauthenticated
- Session guard → Application shell: renders
- Role and session → Supabase services: reads user and role
- Officer → Issue challan: issues
- Issue challan → Traffic rules: uses configured rules
- Citizen → Challan management: views
- Officer → Challan management: manages
- Challan management → Challan detail: opens
- Citizen → Public verification: checks challan
- Citizen → Vehicle records: views
- Citizen → Appeals: submits
- Officer → Appeals: reviews
- Citizen → Payment operations: pays challan
- Administrator → Payment operations: administers
- Administrator → Admin overview: views
- Administrator → User administration: manages
- Administrator → Audit history: reviews
- Administrator → Traffic map: explores traffic
- Administrator → Appeal assistant: uses
- Citizen → Notifications: views
- Supabase services → Database schema: persists application data