feat: UC-A/B/C demo — 50 mock properties, district scoring, gold/silver cards visible
- Add 50 mock properties (prop-050–099) tuned for UC-A (Fahrradhändler RETAIL),
UC-B (Umzugsfirma OFFICE Zürich-West) and UC-C (Vermögensverwalter PREMIUM)
- District-aware scoreLocation: district match→100, city-only→70 when need
specifies districts, canton→60, no match→35; fixes UC-C prop-001 over-scoring
- mustHaveScorer: add klimatisierung keyword; parking minimum count logic
- Soft factor scale fix: integer 0–100 values no longer multiplied ×100
- footfall: map passerbyFrequency string (HIGH→85, MEDIUM_HIGH→68…) before
enrichment fallback so RETAIL properties score correctly
- Parser: Kreis list extraction ("Kreis 3, 4, 5, und 8" → 4 district entries),
neighbourhood→district map (Seefeld, Bahnhofstrasse), prestige signals
- Results: remove VERIFIED_PORTFOLIO role gate — all users see portfolio cards,
enabling gold (85+) and silver (70–84) cards for every demo use case
- Fix flash of wrong cards on NeedBuilder nav (effectiveNeedId not activeNeed?.id)
- needs.ts: UC-A preferredLocations now includes Kreis 3/4/5/8 entries
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,14 @@ export interface ParsedNeedCriteria {
|
||||
timing?: { earliestMoveIn: string; latestMoveIn?: string; contractDurationMonths?: number; flexibleTiming: boolean }
|
||||
mustHaveCriteria?: string[]
|
||||
softFactors?: { minPrestige?: number; requireParking?: boolean; maxPublicTransportMinutes?: number; requireHighVisibility?: boolean }
|
||||
requireGroundFloor?: boolean
|
||||
requiredFitOut?: 'BASIC' | 'FULL' | 'PREMIUM'
|
||||
requiredParkingMin?: number
|
||||
requireAirConditioning?: boolean
|
||||
requireLoadingDock?: boolean
|
||||
requireBarrierFree?: boolean
|
||||
minCeilingHeightM?: number
|
||||
minContractDurationMonths?: number
|
||||
infrastructureRequirements?: string[]
|
||||
accessibilityRequirements?: string[]
|
||||
prestigeImportance?: 'LOW' | 'MEDIUM' | 'HIGH'
|
||||
|
||||
Reference in New Issue
Block a user