I am going to check the project file structure to understand the layout and available resources for our interactive "How Poor Are You? Calculator" (Target Persona: L) Analytics Dashboard.
I am now going to read package.json to inspect the installed dependencies and see what packages we need to install (such as recharts, lucide-react, and framer-motion).
I am now installing lucide-react for iconography, recharts for interactive line, bar, donut, and custom analytics charts, and framer-motion for engaging transitions and animated elements.
I will now read src/index.css to see the styling configuration and how Tailwind CSS is set up.
I will now update index.html to give the application a fitting title ("HPAY Analytics // Target Persona: L Reality & Financial Score Dashboard") and responsive meta settings.
I will now read index.html to see the existing content so I can correctly update the title and styling meta tags.
I will now edit index.html to set the app title and add smooth font rendering attributes.
I will now update src/index.css to import Tailwind CSS and add rules for fonts (Plus Jakarta Sans and JetBrains Mono for metrics), scrollbars, dark mode transitions, and card glowing effects.
I will now create src/types/dashboard.ts to define all TypeScript interfaces for dashboard filters, KPI cards, charts, individual user profiles, and the interactive calculator parameters.
I will now edit src/types/dashboard.ts to fix the property names in the WeekendBurnPoint interface by making them valid identifiers without unquoted spaces and ampersands.
I will now create src/data/mockData.ts containing the user profiles database, persona segment metadata, and the live dynamic calculation engines that adjust KPIs and chart datasets based on active date-range, segment, and income filters.
I will now edit src/data/mockData.ts to remove the unused SegmentType import and the unused daysCount variable to ensure zero TypeScript lint warnings.
I will now edit src/data/mockData.ts to remove the unused daysCount variable.
I will now create src/components/Navbar.tsx which houses the platform header, view mode tab switcher, dark mode toggle with smooth visual transitions, and the interactive global filters (Time range, Persona L Segment, and Income tier) that live-update all dashboard visualizations.
I will now edit src/components/Navbar.tsx to remove the unused TrendingDown icon import.
I will now create src/components/KPICards.tsx to display the high-impact KPI summary cards, equipped with dynamic trend indicators, trend status badges, explanatory tooltips, and smooth SVG sparkline graphs embedded in each card.
I will now create src/components/charts/TrendLineChart.tsx to visualize the time-series correlation between Average L-Score (financial fragility) and liquid savings depletion using Recharts with customized tooltips, gradient fills, and interactive metric filters.
I will now create src/components/charts/ExpenseDonutChart.tsx featuring an interactive Recharts Pie/Donut chart with custom hover states, animated slices, and an interactive side table analyzing monthly expenditure leakages.
I will now create src/components/charts/CohortBarChart.tsx to compare financial fragility metrics across different Persona L sub-cohorts using interactive multi-metric bar charts.
I will now edit src/components/charts/CohortBarChart.tsx to replace the unused entry parameter with an underscore to eliminate the TypeScript lint warning.
I will now create src/components/charts/WeekendBurnChart.tsx to display a stacked bar chart illustrating weekly financial patterns and illustrating the exact magnitude of payday Friday and Saturday nightlife depletion.
I will now create src/components/CalculatorSandbox.tsx, delivering an interactive simulation engine where users manipulate sliders for income, luxury habits, subscriptions, and savings to calculate their personalized L-Score, financial archetype badge, and automated reality diagnosis in real-time.
I will now edit src/components/CalculatorSandbox.tsx to remove the unused ShieldAlert icon import and escape the arrow character (→) in JSX to eliminate TypeScript compilation warnings.
I will now edit line 558 of src/components/CalculatorSandbox.tsx to change -> to → for valid JSX syntax.
I will now create src/components/ProfileModal.tsx to display a comprehensive popup auditor report whenever a user clicks on an individual assessment profile in the data table.
I will now edit src/components/ProfileModal.tsx to remove the four unused icon imports (Wallet, TrendingUp, Award, and Calendar).
I will now create src/components/DataTable.tsx featuring a sortable, filterable, and searchable datagrid of Persona L profiles with instant row inspection via our popup modal.
I will now edit src/components/DataTable.tsx to remove the unused Filter import to ensure clean TypeScript compilation.
I will now create src/components/AIInsights.tsx featuring an AI Leakage Detective that diagnoses anomalies across cohorts and an interactive "What-If" simulation tool that dynamically projects group financial health under different habit adjustment scenarios.
I will now edit src/components/AIInsights.tsx to remove the unused ShieldAlert, CheckCircle2, and DollarSign imports.
I will now create src/App.tsx to serve as the unified master controller for our analytics dashboard, managing state for the theme toggle, view mode tabs, live date & segment filters, and coordinating real-time chart synchronization across the entire platform.
I will now edit src/App.tsx to remove unused icon imports and remove the unused React default import to ensure zero compiler warnings.
I am now running build_project to test compilation and verify that the complete web application builds cleanly with zero TypeScript or packaging errors.
I have created an interactive analytics dashboard for the "How Poor Are You? Calculator" (Target Persona: L // Lifestyle Overleverage Index).
✨ What Was Built & Designed:
-
🌟 Brand & Architectural Framing (Target Persona: L):
- Persona L represents modern Lifestyle Overleverage—users earning steady salaries or juggling high-interest convenience habits (BNPL fashion, artisanal cafe/matcha runs, VIP weekend nightlife, and subscription stacks) while running low on real emergency cash buffers.
- Designed with an aesthetic dark mode (with instant light/dark toggle), glassmorphic elements, monospace financial readout counters, and responsive mobile/desktop layouts.
-
📊 Global Real-Time Filters (Affects Every Chart & Card Live):
- Date-Range Filtering: Switch between Last 7 Days, Last 30 Days, Last 90 Days, YTD, and All-Time to see trends shift instantly.
- Segment / Cohort Filters: Filter telemetry by archetypes:
- 👥 All "L" Personas
- 🥑 Avocado Aristocrats (high cafe/brunch spend)
- 💻 Tech Cash-Poor / HENRY (High Earner, Not Rich Yet)
- 🛍️ BNPL Fashionistas (pay-in-4 installment loopers)
- 🍜 Ramen Royalty (instant noodle survival while holding speculative assets)
- 🔄 Subscription Overlords (15+ concurrent streaming/SaaS memberships)
- Income Tier Filtering: Segment by annual take-home brackets (
<$35k to $120k+).
-
🔥 4 Key Performance Indicator (KPI) Summary Cards:
- Average L-Score (0–100): The calculated Broke Index with dynamic upward/downward trend indicators and embedded SVG sparkline trajectories.
- Average Survival Runway (Days): Measures exact days users can survive with $0 income before bank accounts hit empty.
- Luxury Burn Rate (%): Discretionary expenditure percentage vs. biological/housing essentials.
- Ramen-to-Rent Ratio (RRI): Fixed rent pressure vs. low-cost diet substitutions.
-
📈 Interactive Recharts Suite (with Hover Tooltips & Smooth Transitions):
- Trend Line & Area Chart: Displays how L-Scores surge inverses to checking account drawdowns (especially around weekend paydays). Features interactive toggle buttons (Combined view, L-Score focus, ).
Files built: index.html, src/index.css, src/types/dashboard.ts, src/data/mockData.ts, src/components/Navbar.tsx, src/components/KPICards.tsx, src/components/charts/TrendLineChart.tsx, src/components/charts/ExpenseDonutChart.tsx, src/components/charts/CohortBarChart.tsx, src/components/charts/WeekendBurnChart.tsx, src/components/CalculatorSandbox.tsx, src/components/ProfileModal.tsx, src/components/DataTable.tsx, src/components/AIInsights.tsx, src/App.tsx