fix(web): neighborhood POI map — fix unparseable cluster color
Some checks failed
Deploy / Build AI Services Image (push) Failing after 5s
E2E Tests / Playwright E2E (push) Failing after 10s
Security Scanning / Security Gate (push) Has been cancelled
Security Scanning / Dependency Audit (pnpm) (push) Failing after 3s
Security Scanning / Trivy Scan — API Image (push) Failing after 53s
Security Scanning / Trivy Filesystem Scan (push) Failing after 29s
CI / Lint → Typecheck → Test → Build (22) (push) Waiting to run
Security Scanning / Trivy Scan — Web Image (push) Failing after 42s
Security Scanning / Trivy Scan — AI Services Image (push) Failing after 34s
CI / E2E Tests (push) Has been cancelled
Deploy / Deploy to Production (push) Has been cancelled
Deploy / Smoke Test Staging (push) Has been cancelled
Deploy / Rollback Staging (push) Has been cancelled
Deploy / Deploy to Staging (push) Has been cancelled
CI / AI Services (Python) — Smoke (push) Failing after 6s
Deploy / Smoke Test Production (push) Has been cancelled
CodeQL Analysis / CodeQL (javascript-typescript) (push) Failing after 53s
Deploy / Build API Image (push) Failing after 9s
Deploy / Build Web Image (push) Failing after 5s
Deploy / Rollback Production (push) Has been cancelled

Same Mapbox-gl issue as ListingMap: `hsl(var(--primary))` is rejected by
the GL color parser. Swap for a literal hex (#22c55e) matching the
design-system primary token.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ho Ngoc Hai
2026-04-29 17:57:12 +07:00
parent 925863e471
commit 405f2a3623

View File

@@ -195,10 +195,11 @@ export function NeighborhoodPOIMap({
filter: ['has', 'point_count'],
paint: {
// Small clusters: primary; medium: amber; large: red
// (Mapbox-gl's color parser rejects `hsl(var(--…))` — use literal hex)
'circle-color': [
'step',
['get', 'point_count'],
'hsl(var(--primary))',
'#22c55e', // primary (emerald-500) — matches design-system token
5,
'#f59e0b',
20,