[verified] Rebuild dashboard: real multi-theme (3 themes + macro + sources table) — user 10-point review

- Remove obsolete KPIs (Theme surprise card, Paper ledger, คุณภาพข้อมูล, ประตู backtest) -> now 2 cards: สัญญาณ (long/short/neutral) + แหล่งข้อมูล
- Theme panel: 3 themes with uniform surprise (0.57/0.81/1.62σ) + per-theme thesis (#8,#10)
- Add macro backdrop panel (การบริโภค/การลงทุน/เงินเฟ้อ/การว่างงาน/นักท่องเที่ยว) from BOT Thai Economy (#6)
- Add sources lineage table (ที่มาข้อมูล: ข้อมูล/แหล่ง/ช่วง/อัปเดต) (#9)
- Merge signal+fundamental into one table with combined column (#7)
- Live verified via /api/v1/dashboard (real data, 49-symbol board)
This commit is contained in:
Kunthawat Greethong
2026-08-25 20:39:43 +07:00
parent 9739849f68
commit 489920b3c9
2 changed files with 103 additions and 41 deletions

View File

@@ -125,6 +125,25 @@ tbody tr:hover { background: rgba(255,255,255,.025); }
@media (max-width: 720px) { .theme-grid { grid-template-columns: 1fr; } }
/* ---- Rebuilt theme panel: surprise + thesis ---- */
.theme-surprise { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 6px; }
.theme-surprise-label { font-size: 10px; color: var(--faint); }
.theme-surprise-value { font-size: 22px; font-weight: 700; color: var(--accent); }
.theme-thesis { font-size: 11px; color: var(--text-2, #99a); border-top: 1px dashed var(--line-bright); padding-top: 6px; margin-top: 6px; }
.macro-panel { margin-top: 14px; border-top: 1px solid var(--line-bright); padding-top: 12px; }
.macro-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.macro-chip { background: var(--card); border: 1px solid var(--line-bright); border-radius: 6px; padding: 6px 9px; font-size: 11px; }
.macro-chip strong { color: var(--mint); }
/* ---- Lineage / sources table ---- */
.lineage-panel { margin-top: 18px; }
.source-table { width: 100%; border-collapse: collapse; }
.source-table th { text-align: left; font: 700 10px 'DM Mono', monospace; color: var(--faint); padding: 6px 8px; border-bottom: 1px solid var(--line-bright); }
.source-table td { padding: 7px 8px; font-size: 12px; border-bottom: 1px solid var(--line-weak, rgba(255,255,255,.04)); }
.source-name { color: var(--accent); }
.combined-cell { color: var(--mint); font-weight: 600; font-family: 'DM Mono', monospace; }
/* ---- Simulation panel ---- */
.sim-panel { margin-top: 18px; }
.sim-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }