feat(hub): mobile AI one-screen and dashboard monitor counts

Fix mobile AI to scroll only in the chat area. Dashboard cards show monitor item counts with expand-to-fullscreen and color-coded position floating P&L.
This commit is contained in:
dekun
2026-06-11 11:27:28 +08:00
parent 1042fdeef3
commit 08ae171e48
7 changed files with 237 additions and 57 deletions
+16
View File
@@ -3618,6 +3618,22 @@
window.addEventListener("popstate", setActiveNav);
}
window.hubOpenMonitorExpand = function hubOpenMonitorExpand(exId) {
const id = String(exId || "").trim();
if (!id) return;
expandedExchangeId = id;
sessionStorage.setItem("hub_expanded_ex", id);
if (currentPage() !== "monitor") {
history.pushState({}, "", "/monitor");
setActiveNav();
}
if (lastMonitorRows.length) {
openExchangeFullscreen(id);
} else {
void fetchMonitorBoardSnapshot({ showLoading: true });
}
};
initAuth().then((ok) => {
if (!ok) return;
initShellNav();