feat: apply B-147 visual tokens to shell and three representative pages

Closes B-156

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
MS-01-Codex
2026-08-20 00:43:09 +08:00
co-authored by Cursor multica-agent
parent d561de06ec
commit d1852657fd
16 changed files with 836 additions and 331 deletions
+16
View File
@@ -99,6 +99,22 @@ function renderDashboard() {
setText("dataDateMetric", dashboardDataTimestamp(meta));
animateMetric("sentimentScore", overview.sentiment_score, (value) => Math.round(value));
setText("sentimentText", sentimentLabel(overview.sentiment_score));
const sentimentChip = document.querySelector("#sentimentText");
if (sentimentChip) {
const label = sentimentLabel(overview.sentiment_score);
sentimentChip.classList.toggle("is-hot", label === "情绪高涨");
sentimentChip.classList.toggle("is-strong", label === "情绪偏强");
sentimentChip.classList.toggle("is-cold", label === "情绪冰点" || label === "情绪偏弱");
}
const pageSubtitle = document.querySelector("#currentPageSubtitle");
const activePage = window.XiaobaiPages?.get(state.activeView);
if (pageSubtitle && activePage?.id !== "mentorView") {
const groupLabel = activePage?.group === "market"
? "市场复盘"
: activePage?.group === "personal" ? "个人" : "智能工具";
const dateText = displayCompactDate(meta.trade_date);
pageSubtitle.textContent = dateText === "--" ? groupLabel : `${groupLabel} · ${dateText}`;
}
updateSentimentGauge(overview.sentiment_score);
setText("updatedAt", `${dashboardSourceLabel(meta)} · 更新 ${formatTimestamp(meta.updated_at)}`);