dekun
b733e551a0
Normalize fullwidth punctuation to ASCII across codebase.
...
Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 23:42:26 +08:00
dekun
8b069294b7
refactor: unify three-exchange instance UI with shared templates
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:43:24 +08:00
dekun
a268a93027
feat: show force-close badge and countdown when FORCE_CLOSE is enabled
...
Add shared lib/UI for midnight force-close indicator on instance and hub pages, and document Gate intraday 0-point exit alignment.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 02:17:47 +08:00
dekun
7fb87d6030
fix: improve journal form layout for tablet with proportional field widths
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:59:45 +08:00
dekun
fa9e6be36d
feat: show entry type in trade records, remove journal custom entry reason
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:49:21 +08:00
dekun
5137d5ed17
fix: remove inline estimated TP preview from fixed RR order form
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:40:16 +08:00
dekun
e526d6af76
fix: 注册 order_entry_model.js 静态路由,embed 内联联动逻辑
...
中控 iframe 下 JS 404 导致小分歧/杠杆不更新;boot 脚本内联兜底。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:34:26 +08:00
dekun
e81343ae91
fix: 小分歧联动波段单显示,杠杆改为按币种默认只读
...
option 增加 data-trade-style;修复 JS 初始化顺序。杠杆隐藏输入,显示 BTC/ETH 10x 其它 5x。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:28:10 +08:00
dekun
ea429b2694
feat: 趋势户开仓类型大分歧A/B/小分歧,自动联动趋势波段与复盘
...
下单监控增加 entry_model 下拉;平仓写入短标签并预填复盘。Binance/OKX 用趋势 profile,Gate 日内仍用手选 trade_style。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-06 00:18:38 +08:00
dekun
f688a504e1
ui: 复盘表单紧凑布局、即时上传截图并移除占用时新开仓
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 22:46:05 +08:00
dekun
7bb6ee1154
remove: 全面移除「错过机会」功能与文案
...
删除手动记录表单与 /add_miss;停止自动生成错过类交易记录;列表/统计/顶栏不再展示;复盘卡片改为整行。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 22:21:30 +08:00
dekun
88fe4bbe56
feat: 复盘四周期手动上传,移除 AI 识别预填
...
固定 5m/15m/1h/4h 四槽截图上传与详情四宫格展示;自动 K 线默认关闭且与手动上传互斥。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 21:57:41 +08:00
dekun
eec57610dc
fix: 注册 symbol_live_price.js 静态路由(现价不显示)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 00:46:23 +08:00
dekun
3a740235ac
feat: 币种输入旁实时显示交易所现价
...
Shared SymbolLivePrice polls /api/order_defaults on input with debounce; wired to trade, key monitor, trend, and key focus forms.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 00:42:44 +08:00
dekun
efe7a57e60
fix: trade_policy 宏使用 with context 修复 500
...
Jinja imported macros did not receive trade_policy from render context, causing Internal Server Error on all instance pages.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 00:36:06 +08:00
dekun
c0ad50a7b5
feat: 账户方向与币种白名单 env 开关(三所)
...
Per-instance TRADE_DIRECTION / TRADE_SYMBOL_WHITELIST restricts UI and API for manual orders, key monitors, and strategies; includes sync script for deployment profiles.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-05 00:30:49 +08:00
dekun
687a34474d
feat: 修改委托后展示最新风险,四所持仓卡增加张数
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:08:27 +08:00
dekun
9d9d0af31e
fix: 市价加仓预览后无法执行滚仓
...
修复 embed 壳拦截 roll-form 提交,以及策略 tab 切换后未重新绑定顺势加仓脚本的问题。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 21:42:12 +08:00
dekun
4742a0bb9d
refactor: 移除四所统计分析页交易日历
...
删除日历 UI、bootstrap 与 /api/stats/calendar 注册;保留日/周/月统计表。内照明心档案日历不受影响。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 09:51:10 +08:00
dekun
32079bb4c2
fix: 修复统计日历 bootstrap 导致整站 500
...
日历数据改为安全 JSON 内嵌,仅统计页构建;构建失败时降级为空,避免拖垮其他页面。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 09:24:54 +08:00
dekun
3b687d17eb
fix: 统计日历服务端内嵌 bootstrap,首屏显示盈亏与笔数
...
与月统计同源 initial_calendar 写入页面,API 失败时仍渲染;四所日历路由独立注册并传入 get_db_fn。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 09:13:58 +08:00
dekun
4f784d09ac
fix: 四所统计日历显示每日盈亏与交易笔数
...
日历格子重置实例全局 button 样式,日期格展示 +X.XU 与 N 笔,标题栏汇总当月盈亏与总笔数。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 08:56:20 +08:00
dekun
052dcf63bd
fix: 四所统计日历 embed 切换后初始化与加载失败仍渲染网格
...
统一 initInstanceStatsCalendar,统计 tab 动态注入时重新挂载日历,API 异常时保留月历骨架。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 08:42:39 +08:00
dekun
ac4cdceb39
feat: 四所独立统计页日历,修复档案盈亏重复与日历交互
...
四所 index.html 统计分析页接入交易日历;内照明心剔除犯病盈亏列不再重复计入,犯病日点击显示全部交易,选中日历蓝色高亮。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-30 08:27:38 +08:00
dekun
e51d7824a7
fix: 全仓模式预估风险/盈利按杠杆与可用保证金计算
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-29 00:38:27 +08:00
dekun
02255a3b02
fix: 修复斐波/突破滚仓重复脚本导致无法提交
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 23:25:27 +08:00
dekun
6352fa6be3
fix: 滚仓拒绝原因页内展示,斐波/突破隐藏预览按钮
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 23:16:59 +08:00
dekun
5a887de6f4
fix: 滚仓斐波/突破价输入框可在切换模式后编辑
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 23:07:08 +08:00
dekun
7d03e8e93e
fix: 滚仓字段显隐与浅色模式样式
...
市价加仓默认隐藏上沿/下沿/突破价(CSS+JS);说明页与预估风险条适配浅色主题。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-26 22:11:58 +08:00
dekun
0a20ee7eec
Show estimated risk, profit, and RR below manual order form.
...
Add a preview bar under the live order form with risk in red and profit in green; extend preview logic for all SL/TP modes across embed and standalone instances.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-25 19:19:32 +08:00
dekun
322060de31
Show position-limit freeze on hub and instance risk badges.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 01:58:24 +08:00
dekun
813ebf0e4e
Skip exchange PnL sync on hub iframe soft nav to fix slow records tab.
...
Remove hover prefetch and mark soft-nav fetches so Gate/OKX render pages from local DB without blocking on exchange history sync.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 00:39:54 +08:00
dekun
b18b2143b5
Restore hub iframe soft nav to cut blank tab switch gap.
...
Use fetch in-frame navigation with overlay and hover prefetch; show delayed hub loading spinner instead of hiding the iframe.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 00:32:03 +08:00
dekun
7f8ae97a98
Fix hub iframe nav flicker with normal navigation and loading overlay
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-24 00:06:17 +08:00
dekun
e3559531d9
Revert instance soft nav cache to fix navigation flicker
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 23:59:27 +08:00
dekun
016c93faf2
Add 7-day local page cache for instant instance nav switching
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 23:52:28 +08:00
dekun
e03863d780
Add roll leg avg/TP profit display and reduce instance nav flicker
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 23:42:02 +08:00
dekun
89909c64a3
Align trade record detail fields with label-value grid layout.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 17:04:50 +08:00
dekun
21f86906da
Fix mobile trade records hidden by CSS cascade overriding compact list.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 16:58:56 +08:00
dekun
c302c3e4ea
Add mobile compact trade and journal lists with tap-to-expand detail.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 16:53:56 +08:00
dekun
8e810154ca
Add open-instance to trade page and mobile/tablet responsive layouts.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-23 16:38:30 +08:00
dekun
073a382d41
Unify key support/resistance monitor type and fix form parity.
...
Merge 关键阻力位/关键支撑位 into 关键支撑阻力, share key_monitor_form.js across hub and new-tab views, and add hub shortcut to /key_monitor.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-19 08:31:14 +08:00
dekun
9330e356fc
Fix freeze countdown exceeding configured cooloff hours.
...
Clamp future last_close anchors, cap remaining time server-side, prefer freeze_remaining_sec in the badge JS, and auto-repair stale DB rows on read.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 22:11:09 +08:00
dekun
f8e760961e
fix(risk): reset badge to normal when freeze countdown expires
...
Also expand account-risk-cooldown docs with countdown format, API fields, and frontend assets.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 17:47:47 +08:00
dekun
97370926d6
feat(risk): show live countdown on freeze status badges
...
Expose freeze_until_ms from risk API and tick hub/instance badges with remaining 1h/4h/daily time.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 17:41:04 +08:00
dekun
3d29b4f9d9
fix(instance): restore review edit button after hub iframe nav
...
Sync review-mode checkbox with disabled state after form restore; repair initHubEmbedInFrameNav regression in instance_theme.js.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-18 11:21:31 +08:00
dekun
d8dccb8606
fix(hub): stop instance iframe nav flash after account status badge
...
Load account_risk_badge.css before body paint, skip redundant hub theme re-apply, remove iframe hide overlay, and disable badge transitions in hub embed.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 19:36:48 +08:00
dekun
6520234bd8
fix(hub): eliminate iframe flash when switching instance nav tabs
...
Use soft in-frame navigation and loading overlay in hub instance shell; pass embed=1 for iframe SSO opens.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 19:27:52 +08:00
dekun
be7f5d5072
fix(auth): stop pre-filling login username on new devices
...
Remove username_hint from hub auth status API and disable autocomplete on hub and instance login forms.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 19:21:46 +08:00
dekun
850ffcd7d2
style(risk): polish account status badge for light and dark themes
...
Extract shared account_risk_badge.css with theme-aware contrast, dot indicator, and hub/instance layout fixes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-17 17:37:32 +08:00