Merge remote-tracking branch 'origin/main' into feat/apps-in-toss

# Conflicts:
#	TODO.md
#	docs/QA_체크리스트.md
#	frontend/src/b/BLayout.tsx
#	frontend/vite.config.ts
This commit is contained in:
minaChoi committed 2026-10-13 15:04:14 +09:00
commit 07290597a0
114 files changed
+5027 -890

No files matched your search

+22 -2
View File
@@ -158,6 +158,8 @@ function Swap({ labels, at }: { labels: readonly ReactNode[]; at: number }) {
/* ---------- 시트 스켈레톤: 완료 화면과 같은 틀·같은 줄 높이 ---------- */
const N3 = [0, 1, 2]
const N4 = [0, 1, 2, 3]
const SLOT_KEYS = ['morning', 'day', 'evening', 'night'] as const
const SLOT_NAMES = { morning: '아침', day: '낮', evening: '저녁', night: '밤' } as const
const N6 = [0, 1, 2, 3, 4, 5]
const N14 = Array.from({ length: 14 }, (_, i) => i)
@@ -349,8 +351,9 @@ function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: string)
<h4 className="m-0 font-jua text-[22px] font-normal">{g.name}</h4>
{d.description && <p className="mt-0.5 text-[13.5px] font-semibold text-(--ink2)">{d.description}</p>}
</div>
<b className="ml-auto font-bagel text-[42px] font-normal text-(--orange)">{g.score}</b>
<b className={cx('ml-auto font-bagel text-[42px] font-normal', g.active ? 'text-(--orange)' : 'text-(--ink3)')}>{g.score}</b>
</div>
{!g.active && <p className="mt-2 text-[13px] font-bold text-(--ink2)">지금 시간대엔 해당 없어요. 점수는 오늘 가장 좋은 시간대 기준이에요.</p>}
{now && (
<p className="mt-3 rounded-2xl bg-[#fff4ec] px-3.5 py-2.5 text-[14.5px] font-bold">
<b className="mr-1.5 font-jua font-normal text-(--orange)">{now.low}~{now.high}점</b>
@@ -358,6 +361,23 @@ function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: string)
</p>
)}
{factors.length > 2 && <Radar name={g.name} factors={factors} />}
{g.slots && g.slots.length > 0 && (
<div className="mt-2.5 grid grid-cols-4 gap-1.5" aria-label="오늘 시간대별 점수">
{SLOT_KEYS.map((k) => {
const s = g.slots?.find((x) => x.slot === k)
const cur = g.active && g.slot === k
return (
<div key={k} className={cx('rounded-2xl px-1 py-2 text-center', cur ? 'bg-[#fff4ec]' : 'bg-[#f3f6fb]')}>
<small className="block text-xs font-extrabold text-(--ink2)">
{SLOT_NAMES[k]}
{cur && ' · 지금'}
</small>
<b className={cx('block font-bagel text-xl font-normal', s ? 'text-(--orange)' : 'text-(--ink3)')}>{s ? s.score : '–'}</b>
</div>
)
})}
</div>
)}
{g.trend && g.trend.length > 0 && (
<div className="mt-2.5 grid grid-cols-4 gap-1.5">
{g.trend.map((t) => (
@@ -386,7 +406,7 @@ function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: string)
<div key={f.axis} className="grid grid-cols-[84px_1fr_52px] items-center gap-x-2.5 text-[13.5px] font-bold">
<span>{f.label}</span>
<i className="block h-[9px] overflow-hidden rounded-full bg-[#e3eaf4]">
<s className="block h-full bg-[linear-gradient(90deg,#ffc86e,var(--orange))]" style={{ width: `${f.value}%` }} />
<s className="b-keep-bg block h-full bg-[linear-gradient(90deg,#ffc86e,var(--orange))]" style={{ width: `${f.value}%` }} />
</i>
<em className="text-right text-xs text-(--ink2) not-italic">비중 {f.weight}%</em>
<p className="col-start-2 col-end-4 -mt-0.5 text-[12.5px] font-semibold text-(--ink2)">{f.note}</p>