diff --git a/web/src/components/Awam.tsx b/web/src/components/Awam.tsx index 5abcc43..c7be57f 100644 --- a/web/src/components/Awam.tsx +++ b/web/src/components/Awam.tsx @@ -16,28 +16,31 @@ export function Term(props: { kata: string }) { ); } +// Verdict selalu hijau (Dilirik) / merah (Dilepas) / abu (Netral) — +// arti warna konsisten di seluruh app: hijau = kabar baik, merah = waspada. export function VerdictBadge(props: { verdict: Verdict }) { - const warna: Record = { - "Dilirik": "default", + const warna: Record = { + "Dilirik": "success", "Dilepas": "error", "Netral": "secondary", }; return {props.verdict}; } -// Bar alasan: seberapa kuat sinyal asing vs broker (0-100). +// Bar alasan: porsi bukti asing (biru, netral-informatif) vs broker (ungu). +// BUKAN hijau/merah — bar ini soal "bukti dari mana", bukan "baik/buruk". export function AlasanBar(props: { asing: number; broker: number }) { const total = Math.abs(props.asing) + Math.abs(props.broker) || 1; const pAsing = Math.round((Math.abs(props.asing) / total) * 100); return (
-
-
+
+
- ■ Asing {props.asing >= 0 ? "masuk" : "keluar"} - ■ Broker {props.broker >= 0 ? "borong" : "jualan"} + ■ Bukti asing {props.asing >= 0 ? "masuk" : "keluar"} + ■ Bukti broker {props.broker >= 0 ? "borong" : "jualan"}
); diff --git a/web/src/pages/Dashboard.tsx b/web/src/pages/Dashboard.tsx index f61c5b5..7779b5e 100644 --- a/web/src/pages/Dashboard.tsx +++ b/web/src/pages/Dashboard.tsx @@ -87,7 +87,7 @@ export default function Dashboard() { const b = (s.row.breakdown || {}) as Record; const cx = closeMap()[s.row.symbol]; return ( - + {s.row.symbol}