Label dashboard positions from monitor sources with priority.

Match hedge/roll/trend/order/key monitors for source badges, show option target monitors in green, and refresh the dashboard with the board 5s cycle.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 14:25:36 +08:00
parent 0bda44248f
commit c4c8ad172a
11 changed files with 290 additions and 28 deletions
+45
View File
@@ -373,6 +373,51 @@ body.hub-page-dashboard .page#page-dashboard {
letter-spacing: 0.02em;
}
.dash-pos-source.is-hedge {
color: #fbbf24;
background: rgba(245, 158, 11, 0.16);
border: 1px solid rgba(245, 158, 11, 0.4);
}
.dash-pos-source.is-roll {
color: #6ee7b7;
background: rgba(16, 185, 129, 0.16);
border: 1px solid rgba(16, 185, 129, 0.4);
}
.dash-pos-source.is-trend {
color: #93c5fd;
background: rgba(59, 130, 246, 0.18);
border: 1px solid rgba(59, 130, 246, 0.35);
}
.dash-pos-source.is-order {
color: #c4b5fd;
background: rgba(139, 92, 246, 0.18);
border: 1px solid rgba(139, 92, 246, 0.35);
}
.dash-pos-source.is-key {
color: #fdba74;
background: rgba(249, 115, 22, 0.16);
border: 1px solid rgba(249, 115, 22, 0.4);
}
.dash-pos-source.is-none {
color: var(--dash-muted);
background: rgba(148, 163, 184, 0.12);
border: 1px solid rgba(148, 163, 184, 0.28);
}
.dash-target-monitor {
color: var(--dash-muted);
}
.dash-target-monitor.is-on {
color: #4ade80;
font-weight: 600;
}
.dash-pos-source.is-perp {
color: #93c5fd;
background: rgba(59, 130, 246, 0.18);