Environment is Tailwind v4 with Vite + React 19. I have stock photos for property thumbnails. Now let me install the animation and icon libraries.
Now I'll set up the design foundation — HTML shell with fonts & dark-mode init, the theme system, and utility libraries.
Foundation is in. Next, the data engine — realistic portfolio data with 24 months of seeded time-series per property, tenant rosters, and monthly financials.
Now the state layer — a dashboard context that recomputes every metric from the range/segment filters, plus a size-observer hook for responsive charts.
State is wired. Now the custom SVG chart components — smooth line/area chart, spring-animated stacked bars, and an interactive donut — plus a shared tooltip and sparkline.
Charts done. Now the UI layer: KPI cards with animated numbers, header, filters, sidebar/navigation, top-properties list, and the data table.
Now the sortable, filterable, paginated data table with Properties/Tenants tabs, search, and CSV export.
All components in place. Now composing the full dashboard in App.tsx.
main.tsx is fine as-is. Let's build to verify everything compiles.
Build passes. Now a few refinements: anchoring the bar-chart tooltip to each bar's top, and tuning occupancy equilibrium for a more realistic status spread.
Two more polish touches — subtle hover feedback on panels — then final build.
The build is clean. Keystone — Real Estate Portfolio Analytics is ready.
What was built
Live, simulation-grade data engine — Seeded generation of a 12-property portfolio (apartments, villas, townhouses, studios, a penthouse across 5 districts) with 24 months of per-property financials: revenue with seasonal drift, opex with maintenance spikes, occupancy random walks, and rent arrears — plus a 76-tenant roster with leases, balances, and payment statuses. Every number on screen traces back to this underlying data.
Global filters that update everything — A 3M/6M/12M/24M range control with a sliding spring pill, and a property-type dropdown. Both feed a single React context that recomputes all KPIs, charts, rankings, and tables. The donut is double-linked: clicking a slice or legend row filters the entire dashboard.
KPI cards — Gross revenue, NOI, occupancy, and active leases, each with spring-animated count-up numbers, vs-previous-period delta chips, and per-metric sparklines.
Three hand-built chart systems (custom SVG/HTML, no chart library):
- Line chart — smooth Catmull-Rom revenue/expense curves with draw-in animation, path morphing on filter change, toggleable legend, cursor-following guide line and spring-tracked dots with a rich hover tooltip
- Stacked bar chart — collected vs. outstanding rent with spring-height bars and per-bar tooltips showing collection rate
- Donut — CSS-transitioned slice morphs, hover expansion, animated center readout, click-to-filter interactivity
Data table — Properties/Tenants tabs with sliding indicator, 8 sortable columns (direction-aware defaults), live search, status/type badges, occupancy micro-bars, real CSV export of the current view, and animated paginated rows.
Design system — Warm paper/dark charcoal themes via CSS variables with a system-aware toggle (persisted, no flash of wrong theme), Space Grotesk + Inter type pairing, dot-texture backdrop, slim desktop nav rail with tooltips, mobile bottom bar, sticky glass header, and "coming soon" toasts for out-of-scope modules. Fully responsive from 360px to widescreen.
Files built: index.html, src/index.css, src/lib/rng.ts, src/lib/format.ts, src/data/portfolio.ts, src/hooks/useSize.ts, src/state/dashboard.tsx, src/components/charts/shared.tsx, src/components/charts/Sparkline.tsx, src/components/charts/TrendChart.tsx, src/components/charts/CollectionsChart.tsx, src/components/charts/DonutChart.tsx, src/components/KpiGrid.tsx, src/components/Header.tsx, src/components/Filters.tsx, src/components/Nav.tsx, src/components/Thumb.tsx, src/components/TopProperties.tsx, src/components/DataTable.tsx, src/App.tsx