From 3b3e4a1ee13294255545b11796fd8ecd55871f3c Mon Sep 17 00:00:00 2001 From: gahusb Date: Tue, 28 Apr 2026 10:51:45 +0900 Subject: [PATCH] =?UTF-8?q?feat(subscription):=20DEFAULT=5FPROFILE=20?= =?UTF-8?q?=EC=8B=A0=EA=B7=9C=203=ED=95=84=EB=93=9C=20+=20extractTier=20?= =?UTF-8?q?=ED=97=AC=ED=8D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/subscription/Subscription.jsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/pages/subscription/Subscription.jsx b/src/pages/subscription/Subscription.jsx index af6febc..d41c2f0 100644 --- a/src/pages/subscription/Subscription.jsx +++ b/src/pages/subscription/Subscription.jsx @@ -30,9 +30,24 @@ const DEFAULT_PROFILE = { has_newborn: false, is_first_home: false, income_level: '', preferred_regions: '', preferred_types: '', min_area: '', max_area: '', max_price: '', + // 신규 (자치구 5티어 + 알림 설정) + preferred_districts: {}, + min_match_score: 70, + notify_enabled: true, }; // ── 유틸 ────────────────────────────────────────────────────────────────────── + +// 매칭 reasons에서 자치구 티어를 추출 ("자치구 S티어: 강남구 (+25)" → "S") +// eslint-disable-next-line no-unused-vars +function extractTier(reasons) { + for (const r of reasons || []) { + const m = r.match(/자치구 ([SABCD])티어/); + if (m) return m[1]; + } + return null; +} + const fmt = (d) => { if (!d) return '-'; return new Date(d).toLocaleDateString('ko-KR', { month: 'short', day: 'numeric' });