I will explore the files in the project to understand its structure and dependencies.
I will check package.json to see what libraries (such as Lucide icons or charting libraries) are installed.
I will install lucide-react for UI icons and recharts for interactive charts with tooltips and smooth transitions.
I will read src/index.css and index.html to see the base styling and layout setup.
I will read index.html to update the title and inspect its content.
I will update index.html with the new dashboard title and load Google Sans / Inter fonts for a polished modern SaaS dashboard appearance.
I will check src/utils/cn.ts to see if a classname merging utility is already provided.
I will update src/index.css to configure smooth transitions, custom scrollbar styles, and nice typography.
I will create src/types/analytics.ts to define data models for KPIs, filters, chart datasets, deals, and sales personas.
I will create src/data/mockSalesData.ts with realistic sample data for three sales personas, deals across multiple segments and stages, and helper functions that dynamically compute KPIs, charts, and table rows based on live filters.
I will fix the unused imports and use pipelineTotalValue in src/data/mockSalesData.ts.
I will update src/data/mockSalesData.ts to use pipelineTotalValue inside the pipeline KPI card tooltip so the user can compare weighted vs unweighted pipeline value.
I will update the tooltip of kpi-pipeline in src/data/mockSalesData.ts to reference pipelineTotalValue.
I will create src/context/ThemeContext.tsx to provide a dark/light mode toggle with persistence and smooth DOM class updates.
I will create src/components/dashboard/KpiSummaryGrid.tsx for the 5 interactive KPI cards with trend indicators, sparkline SVGs, attainment progress bars, and informative hover tooltips.
I will create src/components/charts/RevenueTrajectoryChart.tsx to display actual revenue vs. quota targets and AI-forecasted trajectory with smooth Recharts transitions and custom dark/light tooltips.
I will remove the unused Info icon import in src/components/charts/RevenueTrajectoryChart.tsx.
I will create src/components/charts/PipelineStageBarChart.tsx for visualizing opportunity conversion velocity and pipeline stages with toggleable $ vs. Count and segment grouping.
I will clean up the unused mode variable in src/components/charts/PipelineStageBarChart.tsx.
I will create src/components/charts/SegmentDonutChart.tsx for visual segment distribution with a center KPI summary and interactive legend buttons that filter the entire dashboard view.
I will fix the TypeScript any type on the donut chart segment click handler in src/components/charts/SegmentDonutChart.tsx.
I will create src/components/charts/PerformanceCompetencyChart.tsx to visualize PMS competency scores (Rep vs. Team Average vs. Top Performer) with a toggle between Radar and Bar comparison modes.
I will create src/components/table/DealsDataTable.tsx with sorting on every column, instant search, stage and health filters, pagination, CSV export, and clickable rows that open a detailed deal modal.
I will update src/components/table/DealsDataTable.tsx to allow clicking the segment tag on any row to instantly filter the entire dashboard by that segment.
I will create src/components/modals/DealDetailModal.tsx to display an in-depth opportunity overview, touchpoint timeline, and activity logger when any table row is clicked.
I will remove the unused ArrowRight icon import in src/components/modals/DealDetailModal.tsx.
I will create src/components/modals/CommissionSimulatorModal.tsx to let salespeople simulate quota attainment and commission accelerator bonuses live.
I will remove the unused Sparkles icon import in src/components/modals/CommissionSimulatorModal.tsx.
I will create src/components/dashboard/PmsAchievementsCard.tsx to display gamified PMS badges, milestones, and division ranking for the salesperson.
I will create src/components/layout/Header.tsx containing the brand header, live date-range and segment filter dropdowns, sales persona switcher, commission simulator button, and dark mode toggle.
I will remove the unused UserCheck icon import in src/components/layout/Header.tsx.
I will create src/components/layout/Sidebar.tsx for responsive desktop and mobile navigation between dashboard views and views of the sales representative's quota summary.
I will create src/App.tsx bringing together the header, sidebar, interactive KPI cards, chart grid, sortable/filterable data table, and modals wrapped in the theme provider.
I will clean up unused imports in src/App.tsx.
I will clean up the unused default React import in src/App.tsx.
I will now test building the project with build_project to verify that there are no TypeScript errors or broken imports.
I will update src/index.css to fix the @apply usage with !important for Tailwind v4 compatibility.
I will run build_project to check our build now.
I have created the interactive analytics dashboard for the PulseSales Performance Management System (PMS) aimed at sales professionals.
What Was Built & Features Included:
-
Sales Person Persona Switcher:
- Dynamically switch between three distinct sales personas: Alex Rivera (Senior Enterprise Account Executive), Sarah Chen (Mid-Market Team Lead), and Marcus Vance (SMB Growth Account Executive).
- Selecting a persona updates quota targets, commission structures, divisional ranking, active pipeline deals, and PMS competency scores in real-time.
-
5 Interactive KPI Summary Cards with Trend Indicators & Sparklines:
- Revenue vs. Quota Target: Displays cumulative closed-won revenue, percentage quota attainment progress bar, target quota benchmark, period-over-period trend arrow (
+14.2%), and mini SVG sparkline.
- Active Weighted Pipeline: Computes probability-weighted pipeline value with unweighted comparison in the hover tooltip.
- Deal Win Rate: Tracks win percentage against team averages.
- Sales Cycle Velocity: Tracks average days to close (
19 - 26 days) compared to team benchmarks.
- PMS Performance Score: Shows composite PMS index score out of 100 with division rank badge.
- Each card includes an interactive Info tooltip button explaining the metric formula and team benchmark.
-
Mix of Line, Bar, Donut, and Radar Charts:
- Revenue Trajectory vs. Quota (Area / Line Chart): Tracks monthly actuals against quota targets and includes an interactive toggle to show/hide AI Projected Trajectory to quarter end.
- Pipeline Stage & Velocity (Bar Chart): Visualizes opportunities across Discovery, Demo, Proposal, and Negotiation stages. Includes toggles to switch between Value ($) vs. Count (#) and Segment Stacked vs. Grouped modes.
- Revenue by Segment (Donut Chart): Features a center donut KPI display and interactive legend buttons—clicking any segment in the chart or legend filters the entire dashboard table and charts live.
- PMS Competency Scorecard (Radar / Bar Chart): Compares the active salesperson against Team Average and Top Performer across 5 core PMS competencies (Prospecting, Demo Conversion, Deal Size Mastery, Discount Control, and CRM Health), with a toggle between Radar and comparison views.
Files built: index.html, src/index.css, src/types/analytics.ts, src/data/mockSalesData.ts, src/context/ThemeContext.tsx, src/components/dashboard/KpiSummaryGrid.tsx, src/components/charts/RevenueTrajectoryChart.tsx, src/components/charts/PipelineStageBarChart.tsx, src/components/charts/SegmentDonutChart.tsx, src/components/charts/PerformanceCompetencyChart.tsx, src/components/table/DealsDataTable.tsx, src/components/modals/DealDetailModal.tsx, src/components/modals/CommissionSimulatorModal.tsx, src/components/dashboard/PmsAchievementsCard.tsx, src/components/layout/Header.tsx, src/components/layout/Sidebar.tsx, src/App.tsx