Replace dashboard polling with backend SSE and snapshot refresh. Restyle for light/dark theme with soft card glow instead of neon. Remove Today's Summary from AI page; keep trading and general chat only. Update hub documentation.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add /dashboard with daily PnL overview and loss alerts. Extend AI coach chat with history sidebar, delete/switch sessions, message copy, and trading vs general bot modes.
Co-authored-by: Cursor <cursoragent@cursor.com>
Persist show_account_pnl in hub_settings.json; refine key monitor panel layout with right-aligned live stats and scrollable history (max 8 rows).
Co-authored-by: Cursor <cursoragent@cursor.com>
Fold the stats description by default and render history_start_day and keep_days from the API so HUB_FUND_HISTORY_START_DAY in .env drives the UI.
Co-authored-by: Cursor <cursoragent@cursor.com>
Use tabular mono for amounts, show four account columns on desktop, and remove the scanning line animation.
Co-authored-by: Cursor <cursoragent@cursor.com>
Move funds before monitor in nav while keeping monitor the default landing page; use card layout with curves in fullscreen and a tech/AI-themed funds dashboard.
Co-authored-by: Cursor <cursoragent@cursor.com>
Show per-exchange balances as clickable circles with mini curves; open a fullscreen panel for equity history and drawdown.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add /funds page for total and per-account balance (funding+trading), drawdown, and daily snapshots from monitor board aggregation.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add toggle before technical indicators to show blue dashed vertical lines at Beijing 8:00 day boundaries.
Co-authored-by: Cursor <cursoragent@cursor.com>
Sync hub shell to visualViewport when the keyboard opens to prevent white screen above chat input. Make instance tabs horizontally scrollable with active tab centered on phone.
Co-authored-by: Cursor <cursoragent@cursor.com>
Move hub AI mobile CSS after desktop grid rules so chat fills the screen. Hide exchange and total-trade stat cards on phone across all instances and compact export bar.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add 自动 toggle on archive chart; when on, load history span for all trades and plot numbered open/close arrows for each.
Co-authored-by: Cursor <cursoragent@cursor.com>
- Query trade_records with trading-day window and reviewed fields instead of missing session_date column
- Style summary headings and account names as red text with white stroke
Co-authored-by: Cursor <cursoragent@cursor.com>
- Add 15-day fund snapshot store and /api/hub/account on all instances
- Summary includes yesterday/today trades, fund columns, and section 5 操作建议
- Chat context distinguishes empty positions from local monitors
- Support image/document attachments in AI chat
Co-authored-by: Cursor <cursoragent@cursor.com>
Show emoji headings for overview, accounts, alerts, and data notes; apply green/red styling to table PnL columns.
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace pipe-separated account lines with a structured table from stats_snapshot, including exchange icons and position remarks.
Co-authored-by: Cursor <cursoragent@cursor.com>
Reuse shared ai_review_render.js so summaries and coach replies display formatted lists and bold text instead of raw syntax.
Co-authored-by: Cursor <cursoragent@cursor.com>
Aggregate four-account trades via hub_ai module and /api/hub/trades/today; store sessions in JSON; default OpenAI config matches instances.
Co-authored-by: Cursor <cursoragent@cursor.com>
Pass unrealized PnL from monitor jump context, refresh from board snapshot, and let users drag the SL price line to call the same place-tpsl API as the monitor entrust dialog.
Co-authored-by: Cursor <cursoragent@cursor.com>
Proxy /api/hub/trend/stop and breakeven to instances; enable offset input and actions in hub UI. Add horizontal padding on strategy records page.
Co-authored-by: Cursor <cursoragent@cursor.com>
Left column shows plan metrics, right column DCA table, footer for breakeven and snapshot info; update strategy and exchange usage docs.
Co-authored-by: Cursor <cursoragent@cursor.com>
Persist ended trend pullback and roll group snapshots to a unified records page; show replenishment tiers on instance and hub cards with horizontal single-position layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
Position cards show trend plan source, risk%, program TP price and RR; trend section uses plan grid; hub API enriches floating PnL and planned_rr.
Co-authored-by: Cursor <cursoragent@cursor.com>
Use shared cyan for breakout/fib keys, purple for watch keys, green for trends, and orange for roll groups.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add per-card strategy stats chips for breakout, fib, and watch key levels plus trend and roll plan counts when non-zero.
Co-authored-by: Cursor <cursoragent@cursor.com>
Phone monitor list shows per-exchange tiles with offline, >10% float loss, and missing SL alerts; tap opens full desktop-style detail view.
Co-authored-by: Cursor <cursoragent@cursor.com>