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
+2 -2
View File
@@ -8,7 +8,7 @@ from hub_ai.context import (
build_daily_context,
collect_closed_trades_snapshot,
format_account_remark,
format_dashboard_account_lines,
format_dashboard_account_detail,
)
from hub_ai.config import trading_day_reset_hour
from hub_trades_lib import current_trading_day
@@ -64,7 +64,7 @@ def _enrich_account_row(ac: dict) -> dict:
"float_pnl_u": ac.get("float_pnl_u"),
"open_position_count": ac.get("open_position_count"),
"remark": format_account_remark(ac),
"remark_lines": format_dashboard_account_lines(ac),
**format_dashboard_account_detail(ac),
"issues": ac.get("issues") or [],
"daily_loss_pct": loss_pct,
"loss_alert": loss_alert,