How gohitha6nadikota/dealer-pulse works
DealerPulse is a server-rendered dealership performance dashboard for executives and branch managers. Users choose URL-backed date and branch filters, then inspect the overview, branch or sales-officer details, funnel outlook, and prioritized lead actions; lead timelines support follow-up. The documented server workflow loads, validates and enriches the dataset before analytics build page view models for rendering. The graph preserves the documented funnel, segmentation, status-conflict and action capabilities. Unsampled implementation links are shown only where the README documents them.
Main entry points: [id]/page.tsx Officer detail · app/page.tsx Overview page · [id]/page.tsx Branch detail · funnel/page.tsx Funnel outlook
Components 25
Dashboard pages
- Overview page
app/page.tsx - Branch directory
app/branches/page.tsx - Branch detail
app/branches/[id]/page.tsx - Officer detail
app/reps/[id]/page.tsx - Funnel outlook
app/funnel/page.tsx - Action Center
app/actions/page.tsx
Analytics and data
- Dataset loader
lib/data.ts - Validation and enrichment
lib/analytics/validate.ts - Shared scope metrics
lib/analytics/scope.ts - Overview view model
lib/analytics/overview.ts - Branch view model
lib/analytics/branch-view.ts - Officer view model
lib/analytics/rep-view.ts - Funnel analytics
lib/analytics/funnel-view.ts - Lead segmentation
lib/analytics/segments.ts - Status conflicts
lib/analytics/status-conflicts.ts - Action prioritization
lib/analytics/action-center.ts
Rendered views
- Dashboard summaries
components/dashboard/kpi-strip.tsx - Funnel displays
components/funnel/reconciliation-table.tsx - Lead source views
components/segments/lead-sources.tsx - Action list
components/actions/action-table.tsx - Lead table and timeline
components/leads/lead-table.tsx
Filters and drill-down
- URL filter parsing
lib/filters.ts - Action filters
lib/action-params.ts - Filter controls
components/filters/filter-bar.tsx
Other components
- Dashboard user
Connections 37
- Dashboard user → Overview page: opens dashboard
README.md - Dashboard user → Branch directory: browses branches
README.md - Dashboard user → Funnel outlook: reviews outlook
README.md - Dashboard user → Action Center: reviews actions
README.md - Overview page → Dataset loader: loads data
README.md - Branch detail → Dataset loader: loads data
README.md - Officer detail → Dataset loader: loads data
README.md - Funnel outlook → Dataset loader: loads data
- Action Center → Dataset loader: loads data
app/actions/page.tsx - Dataset loader → Validation and enrichment: validates and enriches
README.md - Overview page → URL filter parsing: parses URL
app/page.tsx - Branch detail → URL filter parsing: parses URL
app/branches/[id]/page.tsx - Officer detail → URL filter parsing: parses URL
app/reps/[id]/page.tsx - Action Center → URL filter parsing: parses URL
app/actions/page.tsx - Action Center → Action filters: parses action filters
app/actions/page.tsx - Overview page → Overview view model: builds view
app/page.tsx - Branch detail → Branch view model: builds view
app/branches/[id]/page.tsx - Officer detail → Officer view model: builds view
app/reps/[id]/page.tsx - Action Center → Action prioritization: builds actions
app/actions/page.tsx - Overview view model → Shared scope metrics: uses shared metrics
lib/analytics/scope.ts - Branch view model → Shared scope metrics: uses shared metrics
lib/analytics/scope.ts - Officer view model → Shared scope metrics: uses shared metrics
lib/analytics/scope.ts - Overview page → Dashboard summaries: renders summaries
app/page.tsx - Branch detail → Dashboard summaries: renders summaries
app/branches/[id]/page.tsx - Officer detail → Dashboard summaries: renders summaries
app/reps/[id]/page.tsx - Funnel outlook → Funnel analytics: builds funnel view
- Funnel outlook → Lead segmentation: shows segments
- Funnel outlook → Funnel displays: renders reconciliation
- Funnel outlook → Lead source views: renders sources
- Overview page → Status conflicts: shows conflict notice
app/page.tsx - Officer detail → Status conflicts: shows conflict notice
app/reps/[id]/page.tsx - Branch detail → Lead table and timeline: renders open leads
app/branches/[id]/page.tsx - Officer detail → Lead table and timeline: renders assigned leads
app/reps/[id]/page.tsx - Action Center → Action list: renders actions
app/actions/page.tsx - Overview page → Filter controls: renders filters
app/page.tsx - Branch detail → Filter controls: renders filters
app/branches/[id]/page.tsx - Officer detail → Filter controls: renders filters
app/reps/[id]/page.tsx