Commit Graph

811 Commits

Author SHA1 Message Date
dekun c4c8ad172a 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>
2026-07-17 14:25:36 +08:00
dekun 0bda44248f Show only positioned accounts on the dashboard.
Drop per-exchange fund metrics and render open positions as labeled tables while keeping closed-trade details.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 14:13:44 +08:00
dekun 33b3e5f54b Keep calendar day trades inline and hide K-line by default.
Show selected-day trades under the calendar without tab jumps, put trades first, and open the chart only via toolbar or row actions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 14:05:59 +08:00
dekun e70e6c7b13 Split archive into four content tabs.
Move chart overview and calendar into their own tabs so trades and quotes stay focused.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:59:44 +08:00
dekun b7f3a5c289 Add top-nav Quotes blog feed page.
Surface recent review quotes grouped by trading day with expand, day PnL summary, and AI review jump.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:54:24 +08:00
dekun 7a0d015416 Add archive tabs for trades vs review quotes.
Switch hub 内照明心 to a single-column tab layout and auto-show that day's closed trades under the quote form for AI review context.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:41:13 +08:00
dekun afb771fef1 Shrink hub archive panels to content height instead of filling the viewport.
Remove 100vh min-heights and flex-grow on quotes/trades so idle space below 5-row lists collapses.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:30:15 +08:00
dekun e5e1d5edcc Paginate hub archive trade records at 5 per page.
Match the instance records pager so 内照明心 lists stay compact with prev/next controls.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:27:42 +08:00
dekun c2a40e3cc5 Fix empty AI review content from gemma reasoning token use.
Parse alternate reasoning fields, retry with a larger max_tokens budget, cap review images, and fall back to text-only when vision returns empty.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:21:06 +08:00
dekun 4126784056 Make env config panel full width like the funds header strip.
Match settings/risk-policy: span the page grid so the card aligns with account stats.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:16:06 +08:00
dekun af7fb44650 Raise Nginx proxy timeouts so AI daily/weekly review is not cut at 60s.
POST /ai_daily_review was returning 504 while the model was still running; patch BT reverse-proxy read/send timeouts to 360s on deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:12:32 +08:00
dekun 5bd3f3250a Restore vertical gaps between cards on the records/review panel.
The pagination wrap stacked cards without inheriting the page grid gap.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:05:54 +08:00
dekun f27b4bc1ec Fix OKX header trade stats stuck at zero after settings shell load.
Always SSR records summary on embed shell (including settings/risk/env), and refresh total/win-rate/PL ratio via account_snapshot so soft-nav cannot leave the strip blank.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 13:03:04 +08:00
dekun 3a20546782 Make risk policy and settings panels full width.
Match the funds header span by spanning the two-column content grid.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 12:55:40 +08:00
dekun 35117ba84e Polish dashboard tables: hub-style orders, options source/expiry, hedge status.
Show 进行中 in green for active hedges; options columns include source/target/expiry; merge live mark/contracts/pnl from price snapshot.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 12:23:25 +08:00
dekun cd2dfac2ba Hide empty dashboard sections and render data as tables.
Orders/keys/strategy/options/hedge only appear when they have rows, shown in table layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 12:14:03 +08:00
dekun c7aae67881 Add instance data dashboard (default off).
Read-only overview of live orders, key monitors, and strategy; show options/hedge only when present. Toggle via system settings nav prefs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 12:09:29 +08:00
dekun f7ba7c2f7d Auto-fill journal direction from trade records.
Add a required direction field on the review form, persist it, and set long/short when clicking 填入复盘.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 12:00:09 +08:00
dekun f435e9dfaa Render saved journals as a table like trade records.
Desktop journal list now uses columns for coin, direction, PnL, times, and actions instead of stacked entry cards.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:55:18 +08:00
dekun d9b8069906 Add shared records review pagination for all three exchanges.
Paginate trade records, journals, and AI history at 5 per page with soft in-card flips; hide the journal form until 填入复盘.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:52:02 +08:00
dekun 57f8d6761c Keep options review paging in-card without layout jump.
Soft-load table rows on prev/next so height stays stable and the page below does not flash.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:40:23 +08:00
dekun 77ab7503a1 Show total pages and card-local AJAX paging on options review.
Trades and reviewed lists now report page X / Y and flip without full-page sync refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:34:21 +08:00
dekun 06ffb6ee0f Keep page scrollbars at the window right edge across hub pages.
Move funds scrolling to body, keep monitor/market on a full-width shell, and stretch other desktop shells so page scroll is never inset.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:27:29 +08:00
dekun 78c44fdeab Fix funds overview clipping on 1920x1080.
Make the funds stage scrollable, give the equity chart a fixed height so date labels fit, and stop truncating account cards without a scrollbar.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:24:41 +08:00
dekun cb2fcd283a Give funds equity curve more room on 1920x1080.
Drop the 42vh chart cap, let the curve fill remaining height, and scroll account cards so the curve is not clipped.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:19:58 +08:00
dekun 3f6e4329d9 Fix market chart collapse while keeping edge scrollbar.
Restore app-shell to full-viewport height for flex charts, and stretch the shell full width so the scrollbar stays at the window edge.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:15:23 +08:00
dekun 353c09ea0d Put hub page scroll on body so the scrollbar sits at the window edge.
Revert the host-status chevron move; the inset scrollbar came from scrolling the centered app-shell.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:10:15 +08:00
dekun ee9608dc80 Move monitor host-status chevron to the right edge.
Align the server-status disclosure arrow with the common right-side fold pattern.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:07:41 +08:00
dekun 8842f0b869 Restructure options review into pending trades, form, and reviewed detail.
Show five pending trades per page, reveal the upload form only after clicking 复盘, and list saved reviews with image detail above stats.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 10:50:12 +08:00
dekun 01ca035c2a Add typed options review form presets by source.
Pure options and hedge plans use separate strategy/entry selects, with auto-filled direction and PnL result including breakeven.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 10:27:23 +08:00
dekun d7272c9722 Persist options review deletes across local resync.
Hide deleted rows by history key and contract/close fingerprint so local options_trades imports no longer resurrect them.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 10:03:00 +08:00
dekun 48afc8ebe3 Load options review from local records with compact journal UI.
Drop exchange sync for the review page, auto-import closed local options and hedge plans, and match contract-style multi-timeframe upload styling with smaller fonts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 09:54:35 +08:00
dekun c6142dc246 Show options review upload form always on page.
Keep the multi-timeframe journal card visible like contract review instead of hiding it until a row is selected.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 09:49:14 +08:00
dekun edcc04e88c Improve options review tabs and multi-timeframe uploads.
Add source-type tabs, open an inline journal form from list rows, and match contract-style 5m/15m/1h/4h screenshot slots.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 09:45:44 +08:00
dekun 10128d18bc Add OKX options review module with hedge plan entries.
Import closed OKX option history and closed hedge plans into one list for journaling, images, and stats without mixing contract reviews.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 09:35:19 +08:00
dekun eb5c6a658b Show hedge targets in control center
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 07:29:45 +08:00
dekun 8f71dbe874 Show hedge targets in options monitoring
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 07:15:00 +08:00
dekun 6e6cb7caac Add active hedge plan tab
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 07:04:51 +08:00
dekun e280220951 Move desktop calculator tabs left.
Compress wide-screen calculator inputs into three rows while preserving mobile layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 14:50:42 +08:00
dekun c9d40e5e52 Add desktop calculator tabs.
Show one strategy calculator at a time while preserving the existing mobile tab experience.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 14:44:36 +08:00
dekun b30129f83f Remove duplicate funds PnL banner.
Keep cumulative PnL in summary cards and free toolbar space after snapshot sync.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 14:36:37 +08:00
dekun 4e86595f2a Collapse daily stats by default.
Show only total floating PnL until expanded; enlarge details and lower exchange headers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 14:31:00 +08:00
dekun 35b23836e3 Restore strategy chips and 1080p side margins.
Stick expand hint to card bottom; drop mistaken key-monitor slot; keep ultrawide content width.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 14:11:29 +08:00
dekun 0540b585c7 Refine monitor 2x2 slots and drop tablet CSS.
Add options target column, reserve pos/monitor rows, equal columns, and remove hub-tablet densify path.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 14:03:59 +08:00
dekun 018b4d5601 Split OKX monitor into perp and options cards.
Align four exchange cards in a 2x2 grid so 1080p layout stays balanced.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 13:47:21 +08:00
dekun bde8c517e0 Tighten empty monitor cards on 1080p.
Size no-position blocks to content and give remaining height to options/positions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 13:42:26 +08:00
dekun 480f6d78e8 Fix desktop blur from false tablet layout.
Stop classifying short desktop viewports as tablets so densify fonts do not apply.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 13:35:41 +08:00
dekun 57dad1ffdf Fit tablet hub to one screen with denser type.
Keep full card content readable; shrink fonts/spacing and use in-table scroll only when positions overflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 13:22:57 +08:00
dekun 7d6f0ac55b Fix tablet hub cards clipping content.
Prefer visible card content over forced one-screen crop; auto row heights and page scroll on hub-tablet.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 13:13:17 +08:00
dekun 2777419a10 Add tablet viewport fit for hub one-screen layout.
Hi-DPI tablets like 2560x1600 map to ~1280x800 CSS; broaden fit breakpoints and densify for hub-tablet.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 13:09:29 +08:00