Market Dashboard — How it works
Technical anatomy of the market dashboard. Overview: Market Dashboard.
Routes & entry
| Route | Page root |
|---|---|
/dashboard | @pages/dashboard/DashboardPageContent |
/dashboard/[city] | @pages/dashboard/DashboardCityPageContent |
/dashboard/[city]/residential | @pages/dashboard/DashboardCityPageContent (residential) |
/dashboard/[city]/condos | @pages/dashboard/DashboardCityPageContent (condo) |
Providers
The dashboard index route mounts only SearchProvider (for the market queries); the per-city
report routes (/dashboard/[city]/*) mount no scoped providers. See
State Management.
Component tree
DashboardPageContent landing (config-driven)
├─ HeaderBanner "Market Insights"
└─ CityAccordion ×N one per @configs/location defaultCities
DashboardCityPageContent per-city report
└─ market statistics / charts (residential vs condo variants)Configuration
| Config | Drives |
|---|---|
@configs/location | defaultCities — which cities the landing view lists; areaCities — cities whose stats are queried by area. |
@configs/statistics | Stats/demographics display options; cityCardClasses — the classes behind a city card’s sold-price chart. |
@configs/features | dashboard gate. |
Gotchas & hints
- The landing view is fully config-driven:
DashboardPageContentmaps@configs/locationdefaultCitiestoCityAccordions — no cities in config means an empty dashboard. - A dashboard city can be a listing area. REBNY lists every unit in “New York City” and
files the borough as its county in
address.area, so SERHANT’s borough cards and reports queryarea=Kingsfor Brooklyn:cityGeoFilters(utils/filters.ts) reads@configs/locationareaCities— the stats API takesarea, notlocationId. - City reports split by class: the
[city]route reusesDashboardCityPageContentfor the combined, residential, and condo variants.
Workflow and verification
Source review: e30dd9b47, 2026-11-02. The cross-layer guide covers city report regeneration and cache ownership. Server fetchWidgetStats memoizes by city/class, uses cityGeoFilters, and rethrows transient failures while logging and returning null for other errors. City reports declare daily regeneration.
Last updated on