Commit Graph
107 Commits
Author SHA1 Message Date
Your Name d81e00ddbc add pause resume controls to ui 2026-06-23 02:38:08 +08:00
Your Name cb74a23e81 feat: simplify license activation flow 2026-06-18 18:38:51 +08:00
Your Name 079bf8537a style(webui): refine typography and spacing 2026-06-18 04:35:19 +08:00
Your Name dbf9b14fac style(webui): apply strict modular ui redesign 2026-06-18 03:29:34 +08:00
Your Name 5166678590 Add license key entry to UI 2026-06-17 23:01:21 +08:00
Your Name e3bf99149d wire webui region coordinate edit toggle 2026-06-05 15:45:20 +08:00
Your Name 9b03556b7d expose fudai detail thresholds and regions 2026-06-05 15:36:10 +08:00
Your Name 4797fa046e feat: expose fudai region coordinates in gui 2026-06-03 20:29:10 +08:00
Your Name daf0c49288 统一日志详细度入口 2026-06-03 17:39:53 +08:00
Your Name 198a30dce1 完善新UI适配与日志简化 2026-06-03 12:40:06 +08:00
Your Name 168ab4e1f8 调整调试图像开关语义 2026-06-03 01:48:02 +08:00
Your Name 1d37d57c90 修复福袋详情OCR v2与调试日志 2026-06-03 01:22:13 +08:00
Your Name 36e374ef67 refactor: split large modules and harden live-room fudai flow 2026-06-01 18:39:44 +08:00
Your Name eaa14ce52f Align web UI with gui_app features and normalize fonts 2026-06-01 17:03:35 +08:00
Your Name 7ebbdd6c1e polish premium monitor reservations logs 2026-06-01 16:42:02 +08:00
Your Name 33d05fac54 polish premium keywords and debug layouts 2026-06-01 16:28:12 +08:00
Your Name 5ae113cc18 polish premium yanghao settings layout 2026-06-01 16:19:51 +08:00
Your Name c7d6829219 polish premium filter settings layout 2026-06-01 16:09:43 +08:00
Your Name fa7e5070b3 polish premium run settings layout 2026-06-01 16:03:11 +08:00
Your Name 439aa944c7 polish premium stats dashboard 2026-06-01 15:51:10 +08:00
Your Name 6df926eabd refine premium webui command bar 2026-06-01 15:39:10 +08:00
Your Name a0bfb70b34 polish premium webui typography and logs 2026-06-01 15:25:52 +08:00
Your Name 3ce3a03f62 clean mobile premium webui backdrop 2026-06-01 14:59:29 +08:00
Your Name a35b0371ae quiet premium webui chrome 2026-06-01 14:48:03 +08:00
Your Name a6563c11f4 refine premium webui details 2026-06-01 14:32:31 +08:00
Your Name 204ed24c67 polish premium webui layout 2026-06-01 14:10:32 +08:00
Your Name 60741369f2 polish premium webui visuals 2026-06-01 13:45:07 +08:00
Your Name eea0c48a44 refactor webui dashboard layout 2026-06-01 13:35:50 +08:00
Your Name a68307d7fd fix(wifi-adb): restore hi-port fallback path and harden reconnect/import edge cases 2026-06-01 11:05:47 +08:00
Your Name f76232f2fc fix(wifi-adb): improve scan with multi-subnet fallback and mdns discovery 2026-06-01 09:40:44 +08:00
Your Name 37f736c158 fix(webgui): harden config bool parsing and action error handling 2026-06-01 09:07:03 +08:00
Your Name e03dcaa183 docs(webui): record HTML partial split decision 2026-06-01 01:02:54 +08:00
Your Name 458779e809 refactor(webui): extract CSS feature panels 2026-06-01 00:59:47 +08:00
Your Name c361eb4db6 refactor(webui): extract CSS layout and shared components 2026-06-01 00:56:00 +08:00
Your Name 4db6431757 refactor(webui): extract CSS tokens and base rules 2026-06-01 00:46:06 +08:00
Your Name 8351908232 refactor(webui): reduce app script to initialization glue 2026-06-01 00:41:16 +08:00
Your Name 3bc997a4d7 refactor(webui): extract runtime actions and polling 2026-06-01 00:35:49 +08:00
Your Name 48d18daef8 refactor(webui): extract config form bindings 2026-06-01 00:26:39 +08:00
Your Name c6a4410180 refactor(webui): extract dashboard renderers 2026-06-01 00:19:29 +08:00
Your Name a8d1b24dc9 refactor(webui): extract log view behavior 2026-06-01 00:14:49 +08:00
Your Name a94a6d2a71 refactor(webui): extract API client helpers 2026-05-31 11:13:28 +08:00
Your Name 3491970090 refactor(webui): extract DOM and format helpers 2026-05-31 11:07:39 +08:00
Your Name 01ce77eaa6 refactor(webui): extract frontend constants 2026-05-31 10:47:49 +08:00
Your Name 034e55072a refactor(webui): add static module split structure 2026-05-31 10:40:06 +08:00
CodexandClaude Opus 4.7 cea3aced73 feat(web_gui): WebUI 启动时自动重连上次 WiFi 设备 + 智能匹配
新增 /api/wifi/auto-reconnect 端点,把桌面 GUI 的 _try_reconnect_last_wifi
逻辑搬到服务端:先 verify_adb_target 上次的 target → 失败则 discover_adb_devices
扫描 + pick_best_match 智能匹配。返回结构化 JSON 让前端渲染:

  action: noop | already_online | reconnected | matched | failed
  target / model / message / devices

webui/app.js DOMContentLoaded 末尾调用 tryAutoReconnectLastWifi(),
不阻塞页面加载。命中后自动刷新设备下拉并选中。

至此桌面 GUI 和 WebUI 在 WiFi 重连体验上完全对齐:换网段也能找回手机。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 20:53:23 +08:00
CodexandClaude Opus 4.7 3d91764f56 feat(webui): WebUI 加"扫描 WiFi"按钮,对齐桌面 GUI
- index.html:WiFi ADB 操作行加"扫描 WiFi"按钮 + 扫描结果区域
- app.js:wifiScan() 调 /api/wifi/scan
  - 单个 connected:自动填回 IP,刷新设备
  - 多个候选:渲染列表,点击就填回 IP
  - unauthorized:提示需手机端授权
- 单击列表项 → 填 wifi_ip 输入框 + 刷新设备下拉

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 20:40:54 +08:00
CodexandClaude Opus 4.7 ecffba94b4 P3 §7: 引入 pytest 基础设施 + 9 个核心模块冒烟/单元测试
§7-1 pytest 基础设施
  - pyproject.toml 加 [tool.pytest.ini_options]
    (testpaths / python_files / strict markers / smoke + slow marker 注册)
  - tests/conftest.py 自动把项目根加到 sys.path

§7-2 核心模块测试(242 passed, 1 skipped)
  - test_filter_logging.py(重写为 pytest):should_skip_fudai_by_config
    + is_watch_task_fudai + _is_short_countdown_text 共 29 用例
  - test_time_utils.py:parse_mm_ss + extract_2digits 共 22 用例
  - test_douyin_text_utils.py:4 个 OCR 解析函数 25 用例
  - test_douyin_utils.py:extract_prize_value_yuan + normalize_countdown_text 21 用例
  - test_path_config.py:10 个路径函数结构断言 + 路径间互不重复 20 用例
  - test_logger_helpers.py:8 个 print→logger helper 的统一接口测试 20 用例
  - test_unified_logger_mdc.py:MDC 7 个方法 + 线程隔离 13 用例
  - test_io_utils.py:_verify_png_integrity / _safe_replace_file /
    _ensure_parent_dir 11 用例
  - test_imports.py:78 个核心模块的 import 冒烟 + 关键类/函数导出验证

修订老测试
  - test_ocr_comparison.py:用 pytest.importorskip 跳过缺失的 psutil/easyocr/paddleocr,
    并整体标 @pytest.mark.slow(需要 'pytest -m slow' 才会跑)
  - test_webgui.py:原会真的启 HTTP 服务卡死,改为 import 冒烟 + helper 调用测试

README
  - 重写 "## ✅ 测试" 段,给出实际可用的 pytest 命令、测试约定、marker 说明

回归:tests/ 142 项测试 PASS / 1 SKIP / 0 FAIL;全部纯函数 + 不依赖 ADB / OCR / 设备。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 14:09:02 +08:00
Codex 80b35bcb6c 精修 WebUI v34:换主色 — Cyber Lime → Amber × Royal Indigo
- 用户反馈不要绿色配色;切换为琥珀橙 + 靛蓝
- primary 浅 #65a30d → #f59e0b (amber-500),深 #a3e635 → #fbbf24 (amber-400)
- on-primary 全部用深字(#1a0f00)保证 amber 上可读
- warning 与 amber 撞色:改 #ea580c (orange-600) / 深色 #fb923c (orange-400) 拉开
- 浅色底从冷青米 #f7f8f3 改暖米 #fbf7ec;深色加微暖 #0c0a07 / #16140e
- mesh blob / shadow-glow / focus-ring / overview-primary-bg / log-bg 全部同步暖系
- 65 个 token + inline 装饰色(rgba 与 hex)批量换色,0 残留绿色
- favicon SVG 同步:amber 渐变 + 深字播放三角 + indigo 装饰圆点

cache-bust v33 → v34
2026-05-21 12:53:05 +08:00
Codex 5efa0ebc8b 精修 WebUI v33:字体切换 — IBM Plex Sans + IBM Plex Mono
- body font 从 Manrope 改 IBM Plex Sans (Google Fonts)
- mono 从 JetBrains Mono 改 IBM Plex Mono(21 处全替换)
- HTML preload 同步加载 IBM Plex Sans 400/500/600/700 + Plex Mono 400/500/600/700 + Plex Serif (备选)
- 工程感更强、字形更有性格,配 lime × indigo 色系更贴

cache-bust v32 → v33
2026-05-21 12:43:05 +08:00
Codex 0e74bfba77 精修 WebUI v32:换配色 + 全局放大字号
配色反转:粉/青 → Cyber Lime × Royal Indigo
- primary:#ec4899 (粉) → #65a30d (lime-700),深色 #f472b6 → #a3e635
- secondary:#06b6d4 (青) → #4f46e5 (indigo-600),深色 #22d3ee → #818cf8
- on-primary:#ffffff → #0a1502 / #06120a (lime 上需深字保证可读性)
- 浅色 base 改暖青米白 #f7f8f3,深色改深炭蓝 #0a0c10 / #12161e (整体更冷静)
- mesh blob / shadow-glow / focus-ring / status ring 等所有彩色装饰同步换色
- favicon SVG 也同步:lime 渐变 + indigo 圆点

字号 / 控件全局放大
- token: text-xs 11→12, sm 12→13, base 13→15, md 14→16, lg 16→18, xl 22→24, 2xl 32→36
- leading-snug 1.35→1.4, leading-normal 1.5→1.55
- control-height 34→38px, rail-width 216→232px
- 硬编码 font-size 全部 +2px(脚本批量映射 9→11..16→18,反向顺序避免链式覆盖)
- min-height 30/32/34/36 → 32/34/36/38

cache-bust v31 → v32
2026-05-21 12:39:42 +08:00