Skip to Content

Market Dashboard — How it works

Technical anatomy of the market dashboard. Overview: Market Dashboard.

Routes & entry

RoutePage 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

ConfigDrives
@configs/locationdefaultCities — which cities the landing view lists; areaCities — cities whose stats are queried by area.
@configs/statisticsStats/demographics display options; cityCardClasses — the classes behind a city card’s sold-price chart.
@configs/featuresdashboard gate.

Gotchas & hints

  • The landing view is fully config-driven: DashboardPageContent maps @configs/location defaultCities to CityAccordions — 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 query area=Kings for Brooklyn: cityGeoFilters (utils/filters.ts) reads @configs/location areaCities — the stats API takes area, not locationId.
  • City reports split by class: the [city] route reuses DashboardCityPageContent for 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