Codex and Claude 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
Codex
9c3cf86f41
精修 WebUI v31:运行状态指示 / tab burst / 截图入场 / 数字千分隔符
...
logHeader 状态 pill
- logTitle ::before 圆点改 6px 渐变(粉→青)+ 6px primary halo
- ::after 加状态 chip:默认 "PAUSED" muted;body.is-running 时切 "● LIVE"(success 色 + glow border)
侧边导航 burst 反馈
- tab 切换时 sideNav 加 isBurst 类 380ms,触发 ::before 横/纵向 scaleY 1.3 / scaleX 1.6 的脉冲 + 光晕加强(10→18px)
- 同 tab 二次点击不触发;prefers-reduced-motion 下不动
截图入场动画
- preview img 从 opacity 0 + scale(0.985) → opacity 1 + scale(1),280ms 缓出
- 删除一处旧的重复规则
数字千分隔符
- 新增 fmtNum() 工具函数(toLocaleString en-US 千分隔,PID/Trace 不走)
- statLogLen / 9 个福袋统计 / 跳过 / 切换直播间 / 粉丝团等字段全部 fmt 化
- 大数字现在显示 "12,345" 风格,配合 JetBrains Mono tabular-nums 更易读
cache-bust v30 → v31
2026-05-21 12:11:09 +08:00
Codex
7001919642
精修 WebUI v30:进程心跳 / 滚动条 / 骨架 / 取景器 hover / SVG glow
...
全局 running 信号
- body.is-running 在视口顶部 fixed 2px 粉→青→粉横向 sweep glow line
- 2.8s 横向滚动 + 4px primary drop-shadow,进程"心跳"信号
滚动条
- 全局 webkit-scrollbar-thumb 改 180deg 粉→青渐变(55% mix)
- hover 升级为纯色 primary→secondary 渐变
骨架屏
- shimmer 渐变改为粉/青双色横扫(35% / 65% 节点 22% mix)
- 节奏 1.6s → 1.8s 更柔和
截图区取景器
- previewBracket hover 时 18→22px + drop-shadow 6→10px primary 75%
- 尺寸 + glow 同步过渡
Timeline 折线
- SVG defs 加 feGaussianBlur (1.6) + feMerge glow filter
- 折线 stroke-width 1.5→1.8 并应用 filter,霓虹光晕
- 与 chart hover 渐变协同
cache-bust v29 → v30
2026-05-21 12:03:44 +08:00
Codex
95255a4498
精修 WebUI v29:tooltip / 小按钮 hover / toggle / chevron / 深色复查
...
Tooltip
- 字体改 JetBrains Mono 10px 0.04em + text-strong;padding 加大;border 改 primary 35% mix
- box-shadow 三层:1px primary 描边 + 14px primary 40% halo + blur 10px
- 箭头方块同步换 primary 描边 + 90% mix 背景
小图标按钮统一 hover glow
- copyBtn / toastClose / shortcutsClose hover 改 primary 染色 + primary-soft 60% 背景 + 10px primary 45% halo
- 比之前的 muted 灰更有反馈感
Toggle switch
- checked 状态从单色 primary 改 90deg 粉→青渐变 + 12px primary 55% halo
- 圆球 thumb checked 时加 8px primary 40% glow
- focus-visible 在 focus-ring 之外再叠 12px primary halo
details/summary chevron
- 从 currentColor mask 改 linear-gradient (粉→青) mask + drop-shadow 4px primary 50%
- open 时旋转 90° + halo 升至 6px 70%
- 尺寸 10px → 14px
深色主题对比度复查
- mesh blob 不透明度全部 -2%(0.16/0.14/0.12 → 0.14/0.12/0.10),避免大背景过亮干扰阅读
- grain noise opacity:浅色 0.4→0.28,深色 0.6→0.35,保留质感但降低噪点强度
cache-bust v28 → v29
2026-05-21 12:03:44 +08:00
Codex
540ee24861
精修 WebUI v28:主容器 / panel / stat 卡 / 浮动按钮整体升级
...
主 Header
- 加 4% primary 顶部渐变 + radius-lg 顶部 hairline 改 65/65% 粉→青双色
- isScrolled 时边框改 primary-border + 24px primary halo box-shadow
- ::after 加 1px sweep glow line(200% 横向,6s 循环),仅 isScrolled 时 0.45 不透明显示
- secondaryActions 分隔线改渐变(透明→粉→透明),margin 增大
panel 容器
- 加 radial 双角光晕(左上粉 6% + 右下青 5%)+ surface
- 顶部 hairline 60% 双色渐变
- padding 18→22/24px 给装饰呼吸空间
- hover 时 border 30% primary mix(subtle)
工作区标题
- Eyebrow 字体改 JetBrains Mono 10px 0.18em + 6px 渐变圆点 + glow
- workspaceTitle 字号从 text-xl(22) 升至 26px + 700 weight + -0.02em 字距
stat 卡片
- 普通 stat:position relative + ::after 顶部 hairline (hover 时显示) + ::before 左侧 2px accent (跟 stateOk/Warn/Error 自动着色)
- hover 改 primary-soft 30% mix + 18px halo + 1px primary 描边
- statHero:加 8% primary radial + primary 22% border + 12% inner ring + 35% halo;::before accent 强制 primary→secondary 渐变
- statValue 字距 -0.015 → -0.025
浮动按钮
- scrollTopBtn 36→38px;border 用 primary 30% mix;背景加 radial 16% primary 圆光
- box-shadow 16px primary 30% halo;hover 时升至 24px 50% halo + 颜色全染 primary
cache-bust v27 → v28
2026-05-21 12:03:44 +08:00
Codex
b161a2c4a6
精修 WebUI v27:表单焦点光晕 + 图表渐变 + 浮层质感
...
表单 / 输入控件
- input/select/textarea caret-color 改 primary 粉
- focus-visible 三层光环:1px primary + 4px 22% halo + 14px 40% glow + 背景渐变到 primary-soft
- hover 改 primary-border(之前是 hover-border 灰)
- IP / port / path / number / yanghao_ 系列字段自动用 JetBrains Mono + ss01 + tnum
配置搜索框
- 同款三层 focus 光环;focus-within 时 search icon 染 primary
- kbd 徽章从 muted 改 primary 描边 + primary-soft 6% 背景 + primary-accent-text 粉字
- clear 按钮 hover 背景改 primary-soft
工作区头部
- 左侧 accent 改 3px primary→secondary 渐变 + 12px primary glow
- 加 ::after 顶部 hairline (粉→青渐变)
图表
- chartBlock 加 radial pink 角光 + 顶部 hairline + hover 1px primary 描边 + 22px halo
- chartTitle 字体改 JetBrains Mono 11px 0.1em uppercase + 6px 渐变圆点 (粉→青) + glow
- barTrack 加 inset 1px 阴影;barFill 改 cyan→pink 横向渐变 + 8px halo + ::after 跑光 shimmer 2.4s
- barValue 改 JetBrains Mono + ss01 + tnum
Toast
- 左侧 accent 条改成上下渐变(不再单色)
- icon 包圆形 chip:22×22 圆 + 12% 同色 mix 背景 + 60% 同色 10px halo
帮助层 (shortcutsCard)
- 顶部加 hairline 粉→青渐变(70% 不透明)
cache-bust v26 → v27
2026-05-21 12:03:44 +08:00
Codex
ac55428640
精修 WebUI v26:HUD 细节 — 把 chrome 全部往"控制台"推
...
侧边导航
- sideNav 加渐变粉头部 + counter-reset 通道编号;浮动指示条改 3px 粉→青渐变 + 10px glow
- tabBtn 左侧加 [01]–[11] mono 计数器(::before 用 counter() 生成);hover 时编号变粉
- tabBtn 右侧加可见性切换的 cyan dot(hover 0.7 / active 1)
- active:左渐变背景 + 1px primary 描边 + 编号高亮 + dot glow
- icon 颜色 hover/active 跟随 primary
章节标题
- sectionTitle 字体改 JetBrains Mono 10px 0.12em;圆点改"§ 01" 编号 chip(mono、leading-zero、primary 描边)
- ::after 加横线延展到右侧,渐变粉→透明
- 配置面板顶层加 counter-reset,每个 panel 内部继承计数
卡片
- cardTitle 加状态 chip(::after):默认 "READY",body.is-running 时切 "● LIVE"(绿色 + glow)
- cardTitle .sectionIcon 升级渐变填充 + primary glow
表格
- tableRow 加左侧 hover 渐变 accent stripe(粉→青)
- hover 背景从 surface-soft 改 primary-soft 30% 混合
- tableHead 改 JetBrains Mono 10px + primary 色 + 1px primary 描边 + 渐变背景
- mono 字段全局加 ss01 + tnum
预约卡
- 头部加 radial gradient 粉光晕(右上角)
- reservationItem hover 时左侧 3px 粉→青渐变 accent + 28px halo + translateY(-1)
- reservationIndex dot 改 radial pink + 8px glow
- reservationValue chip 改 JetBrains Mono 0.12em uppercase 粉色 pill
- isImminent / isDue 状态加 radial 警告/危险光晕底
日志
- log 字体改 JetBrains Mono + ss01;padding 加左侧 18px 留出光标位
- background 加 4px 周期性扫描线(cyan 4% mix)
- ::after 加 6×13 粉色光标 1.2s 闪烁(CRT 风)
Footer HUD
- 加 mono 12px / 0.12em 全大写;border-top 改 primary 22% mix
- 左:连接点 + 文字 + "SYS_OK" chip
- 右:PING <em>—</em>ms(实测 /api/version 响应时间,5s 一次)+ FPS <em>—</em>(每秒 RAF 计数)+ version + build
- em 内文字用 secondary/primary 色,mono 数字突出
- 移动端隐藏 PING/FPS
cache-bust v25 → v26
2026-05-21 12:03:44 +08:00
Codex
6fb7707abb
精修 WebUI v25:基调反转 — Operator's Terminal × Editorial
...
打破之前 Linear 极简,转向更装饰、更有质感的"控制台"美学。
字体与基调
- 字体栈:Manrope (body) + JetBrains Mono (数字/HUD) + Instrument Serif (备选),全部 Google Fonts
- 主色反转:Linear 紫 (#5e6ad2) → 抖音霓虹粉 (#ec4899) + 青蓝 (#06b6d4) 双 accent
- 浅色 base 改暖米白 (#fafaf7);深色改深蓝黑 (#08080c) 提亮饱和度
- body 加双层装饰:3 个 radial-gradient mesh blob + SVG turbulence grain noise (overlay 混合)
品牌标识
- brandMark 升级:6 段 conic-gradient (粉→品红→深粉→青→蓝青→粉);高光 radial drift 9s 缓慢动画;hover scale 1.03
- 内部加 SVG drop-shadow 让 logo 与彩色背景对比
按钮
- btnPrimary:linear-gradient (粉粉粉) + ::before 双层 mask conic 边框 hover 时 1.6s 旋转 + 6→10px 彩色 halo + text-shadow
- btnDanger 同款(红橙红)
- btnSoft hover 时显示粉色微光晕;btnDangerSoft hover 加 4px halo
- 所有按钮 hover translateY(-1px),active 回弹
卡片
- .card 顶部彩色 hairline (粉→青渐变),hover 时 opacity 0.45 → 0.85;hover 时 box-shadow 加 1px primary 描边 + 28px halo
- .overviewCard 同款顶部 hairline + 左侧 3px accent (primary 卡是 primary→secondary 渐变);hover translateY(-1px) + 32px halo
数字 hero
- overviewValue / statValue 改 JetBrains Mono + ss01 字符变体 + tnum + -0.025em 字距;深色主题加 24px primary glow text-shadow
状态点
- statusRunning 改 radial-gradient (mint→success) + 双色环涟漪(success + secondary 错峰 0.9s)+ 8/16px 双层光晕
- statusError 改 radial-gradient (粉→danger) + 12px halo + 1.6s pulse
实时截图区
- 加 4 个角的 viewfinder 取景器 brackets(primary 色 + drop-shadow glow)
- 运行中显示 REC 角标(红圆点 1s 闪烁 + 毛玻璃背景 + JetBrains Mono 字号)
- 空状态加 mesh radial blob (粉/青双色) + 加强扫描线对比
- hover 加 36px primary halo + box-shadow
cache-bust v24 → v25
2026-05-21 12:03:44 +08:00
Codex
16b3bde893
精修 WebUI 第二十一轮:kbd 提示 / 标题反馈 / 趋势箭头
...
- 关键按钮 kbd 提示:[data-kbd-mod="1"][data-kbd] 自动按平台注入 ⌘ 或 Ctrl 前缀;hover 时不透明度从 0.55 → 1;btnStart 显示 "⌘ ↵",btnSave 显示 "⌘ S";<900px 隐藏
- 页面 title 随运行状态:默认 "抖音挂机控制台",运行中前置 "● ... · 运行中"
- stat 数字趋势箭头:setTextIfExists 检测数值变化方向,向 .statValue 注入 .statTrend ▲/▼ 圆形徽章 (success/danger 色),1100ms 出现 + 淡出再自动移除
- cache-bust v23 → v24
2026-05-21 09:29:38 +08:00
Codex
df96f25eba
精修 WebUI 第二十轮:Favicon + 长按连发 + 刷新反馈
...
- 添加内联 SVG favicon(与 brandMark 同款:紫色渐变圆角方框 + 播放三角 + 圆点),data URL 不增加请求
- number stepper 长按连发:pointerdown 后 500ms 进入 80ms/次的连发;pointerleave/up/cancel/blur 全部取消
- btnRefresh 加 isBusy 状态 + spinner;完成后 toast 反馈"已刷新 · N 台在线"或"无在线设备"或失败提示
- cache-bust v22 → v23
2026-05-21 09:29:38 +08:00
Codex
cea5f1df45
精修 WebUI 第十九轮:sticky elevation + toggle switch + 步进按钮
...
- sectionTitle sticky 真贴顶时(IntersectionObserver + sentinel rootMargin -65px)加 .isStuck 类,浮起 0 6px 12px 阴影
- 关键开关升级为 toggle switch:.check.isToggle 把 input[type=checkbox] 渲染成 32×18 滑块(slider 配 14×14 圆点 + 0.18 阴影);3 个总控开关接入:infinite_loop_enabled / yanghao_enabled / yanghao_enable_actions / yanghao_only
- fmtDuration 改 mono 格式:HH:MM:SS / MM:SS(padStart),适配 tabular-nums
- 自绘 number stepper:所有 .input[type=number] 自动包 .numStepperWrap,hover/focus 时右侧浮现 ▲▼ 微按钮(18×12 双按钮组),调用 stepUp/stepDown + 派发 input/change;inline2 内不加避免连体冲突
- cache-bust v21 → v22
2026-05-21 09:29:38 +08:00
Codex
f16eadbd75
精修 WebUI 第十八轮:后端 /api/version + 预约卡 hover accent
...
- 后端 gui/web_gui.py 新增 GET /api/version:返回 {name, version, build},前端 footer 自动从 cache-bust fallback 切换为真实版本号
- 预约卡 .reservationItem hover 时左侧浮现 2px primary accent 条;isImminent / isDue 状态下不显示(避免与 warning/danger 边框冲突)
- 高价值直播间共用 reservationItem 视觉,自动获得相同 hover accent
- cache-bust v20 → v21
2026-05-21 09:29:38 +08:00
Codex
632951d004
精修 WebUI 第十七轮:sticky 章节 / 语义着色 / 搜索计数 / 空状态升级
...
- sectionTitle 改 sticky 在长 panel 内吸附顶部,背景渐变 + 6px 模糊;cardTitle/summary 不变
- 福袋统计语义着色:参与成功/中奖 → success;失败 → error;未中奖 → muted;通过 .stateOk/.stateError/.stateWarn/.stateMuted 类切换
- 配置搜索右侧加实时匹配计数徽章("X 项");搜索清空时隐藏
- 空状态占位升级:从单色边框圆点 → 28px 聊天泡 SVG icon (currentColor mask) + 双行布局,更显设计
- cache-bust v19 → v20
2026-05-21 09:29:38 +08:00
Codex
51d8d53a2b
精修 WebUI 第十六轮:滚动顶按钮 / 连体按钮组 / 图表 hover / 徽章
...
- 滚动 floating 按钮:scrollY > 240 时右下方显示,毛玻璃圆形,平滑滚回顶部;移动端调高避让 toast
- WiFi ADB 操作改 .btnGroup 连体组合:共享圆角、中间无双边、focus z-index 抬起
- timeline 图加 hover 十字线 + tooltip:crosshair 跟随光标 snap 到最近 bin,浮层显示该 bin 的所有系列与时间,无事件显示空状态
- tabBtn[data-badge] 数字徽章:active 时反色 primary;预约数据更新时同步预约 tab 的徽章
- cache-bust v18 → v19
2026-05-21 09:29:38 +08:00
Codex
94e8d37d18
精修 WebUI 第十五轮:设备下拉框状态点
...
- decorateDeviceSelect: 把 #device select 包裹进 .deviceSelectWrap,在右侧自定义箭头之前插入状态点
- 状态点:选中具体设备或自动模式下有在线设备 → 绿色 ok;无设备 → 灰色 idle;refreshDevices/change 时更新
- cache-bust v17 → v18
2026-05-21 09:29:38 +08:00
Codex
16042d7fd2
精修 WebUI 第十四轮:过渡动画与移动端收敛
...
- 主题切换平滑:body 加 200ms color/background 过渡;切换时给 :root 临时加 isThemeSwitching,对所有 chrome 表面(header / card / panel / btn 等 18 类)启用 200ms 过渡;260ms 后移除避免长期影响
- 首屏 .app 容器淡入:220ms fadeIn + 微移
- 移动端 (<640) 收敛:subtitle 隐藏(保留 brandMark + title);footer appConnText 隐藏只留状态点
- cache-bust v16 → v17
2026-05-21 09:29:38 +08:00
Codex
a40ddc3083
精修 WebUI 第十三轮:动效、语义着色与帮助系统
...
- panel 切换动画:active 加 fadeIn (220ms) 替换无差别 surfaceIn,tab 切换更有反馈
- statValue 加 stateOk/stateMuted/stateError 语义着色:运行中显示 success 色(hero metric),未运行用 muted
- 预约卡倒计时实时刷新:startReservationsCountdownTick 每秒 tick,更新 .reservationRemain 文字 + isImminent/isDue 类,无需等 stats 轮询
- ? 快捷键弹出帮助 overlay:列出 ⌘K/⌘S/⌘Enter/Esc/?;ESC 或点击遮罩关闭;带毛玻璃 + scale 进出动画;输入框聚焦时不拦截
- cache-bust v15 → v16
2026-05-21 09:29:38 +08:00
Codex
3295cb3d6f
精修 WebUI 第十二轮:质感打磨
...
- brandMark 改为三档 OKLCH 渐变 + 高光 radial-gradient + hover 微浮起
- tabBtn hover 与 active 用 surface-muted ↔ primary-soft 混合,更稳的层级感
- footer 连接点 ok 状态加涟漪扩散动画(footerRipple)
- logSection: 圆角 v-md / hover border 提亮 / logHeader 渐变背景 / logTitle 加 4px 圆点 / logHeaderActions select 自绘箭头适配紧凑高度
- cache-bust v14 → v15
2026-05-21 09:29:38 +08:00
Codex
cdaa9e4c69
精修 WebUI 第十一轮:信息层级与视觉重音
...
- overview hero metric 字号 20→26px (text-2xl),紧字距,更接近 Vercel/Linear 的指标卡
- overviewLabel 改 10px uppercase,padding 提至 16/18px
- stats 第一行(运行/PID/运行时长)拆为 statsGridHero + .statHero 大卡,与下方密集网格区分主次
- cardTitle 图标改 chip 风:26×26 圆角填充容器,primary-soft 底 + primary-border 描边
- sectionTitle 加左侧 4px primary 圆点 accent;cardTitle/summary 上的 sectionTitle 不显示
- cache-bust v13 → v14
2026-05-21 09:29:38 +08:00
Codex
8b8e3129e5
精修 WebUI 第十轮:交互终章
...
- header 滚动时加 isScrolled 类:阴影提一档显得"浮起",区分内容区
- 键盘快捷键:⌘S/Ctrl+S 保存配置,⌘Enter/Ctrl+Enter 启动运行;尊重按钮 disabled 状态
- 通用 tooltip 系统:[data-tooltip] + 可选 data-tooltip-pos="bottom",带小箭头与毛玻璃;移动端禁用避免触摸浮悬
- btnTheme / btnShotFullscreen / 复制按钮 全部接入 tooltip
- cache-bust v12 → v13
2026-05-21 09:29:38 +08:00
Codex
0a2d67afb4
精修 WebUI 第九轮:overview 福袋卡迷你 sparkline
...
- 福袋处理卡片底部加入 22px 高 sparkline,合成 fudai_open_detail + fudai_attend_ok 两条序列为一条折线
- 渐变填充 + 折线双层;用 currentColor 保证主题切换自动跟随;数据少于 2 点时隐藏
- pollStats 触发渲染,与主时间轴同源数据
- cache-bust v11 → v12
2026-05-21 09:29:38 +08:00
Codex
d1f153b373
精修 WebUI 第八轮:可复制 + 全屏 + 表格细节
...
- statValue 一键复制:PID 和 TraceId hover 显示复制按钮,点击调用 navigator.clipboard,带 toast 反馈与 fallback (textarea + execCommand)
- setTextIfExists 改为只更新文本节点,保留子元素(如 .copyBtn 不被覆盖)
- 截图区右上角加全屏按钮(hover 显示):调用 requestFullscreen,失败则新窗口打开;左下角浮层显示截图时间戳,毛玻璃背景
- 表格行:默认 ellipsis 截断,hover 时展开为多行换行
- cache-bust v10 → v11
2026-05-21 09:29:38 +08:00
Codex
857b33f413
精修 WebUI 第七轮:底部状态栏 + 实时反馈
...
- 底部 appFooter:左侧连接状态点(idle/ok/error 3 态 + tooltip)+ 文字;右侧版本号 + 构建标识;移动端纵向排列
- API 连接状态实时指示:apiGet/apiPost 拦截成功失败,连续 2 次失败才标 error,避免抖动
- 版本号:尝试拉 /api/version;失败时回退到 cache-bust tag
- stat 数字变化时短暂闪 primary 色(statFlash 700ms),通过 setTextIfExists 自动触发
- number input 隐藏原生上下箭头 + tabular-nums 数字
- cache-bust v9 → v10
2026-05-21 09:29:38 +08:00
Codex
07700c24d9
精修 WebUI 第六轮:交互精致度
...
- 配置搜索加 ⌘K / Ctrl+K 快捷键聚焦 + ESC 清空/失焦;右侧带 kbd 提示徽章(输入或聚焦时自动隐藏;移动端不显示);自动按平台显示 ⌘ 或 Ctrl
- 按钮 .isBusy 状态加旋转 spinner(隐藏图标),禁用 pointer-events
- 即将开奖预约(剩余 ≤60s)加 isImminent 类:warning 边框 + 微脉动 + value pill 反白;已到时间加 isDue(danger 边框 + 反白)
- brand logo 重做:圆角方形容器 + 内嵌播放三角 + 装饰圆点,更具品牌识别度
- 侧边导航 active 指示条改为 sideNav::before 浮动滑块,CSS var 控制 Y/H,切换 tab 时 220ms 滑动;resize/字体加载完成自动重算位置;横向布局自动隐藏
- cache-bust v8 → v9
2026-05-21 09:29:38 +08:00
Codex
96cba09c49
精修 WebUI 第五轮:交互能力与功能性升级
...
- 新增 Toast 通知系统:右下角浮出(移动端横铺底部),4 类(success/error/warn/info)+ 关闭按钮 + 自动消失 + hover 暂停消失
- 关键操作接入 Toast:保存配置 / 加载配置 / 启动失败 / 设备操作(连接/断开/WiFi 启用)成功失败提示
- 日志关键词分类着色:行级 span,自动识别 ERROR/WARN/SUCCESS/DEBUG/INFO(含中英文与 emoji 标记);DocumentFragment 批量渲染保持性能
- 配置面板加跨标签搜索:workspaceHeader 内嵌搜索框,输入即时按 label/hint/key 过滤所有 row 与 sectionTitle,搜索时自动展开所有 panel;空结果显示空状态;带清空按钮
- 首屏统计骨架屏:未到数据前 statValue 显示 shimmer 占位;pollStats 成功后自动移除
- 移动端复查:inline2 在小屏取消连体边框;workspaceHeader 改纵向布局,搜索框占满宽;secondaryActions 分隔线隐藏;btnTheme 推到右侧
- cache-bust v7 → v8
2026-05-21 09:29:38 +08:00
Codex
aa5065590a
精修 WebUI 第四轮:表单细节 + 滚动行为
...
- inline2 双输入框视觉合并:连体边框、共享圆角、focus 时 z-index 提升
- inline2 内的 span(如 "~")改为正中对齐分隔符
- rowActions 加 border-top + padding-top;primary 按钮自然居前(order: -1)
- html scroll-behavior smooth;prefers-reduced-motion 时回退 auto
- cache-bust v6 → v7
2026-05-21 09:29:38 +08:00
Codex
276235408e
精修 WebUI 第三轮:清理 + a11y + 深色微调
...
- 清理死变量:surface-elevated、bg-start/mid/end、shadow-hover、shadow-primary*、accent-cyan/emerald、primary-soft-hover*、primary-action-bg
- header 动作组:primary 与 secondary 之间加 1px 分割线;btnTheme 加左 margin
- summary.sectionTitle 加自绘 chevron icon(mask SVG),open 时旋转 90°
- 表单 :focus 改为 :focus-visible(鼠标点击不再触发 ring)
- 按钮加 :focus-visible 双层光环(背景 + primary 描边)
- 深色主题对比度复查:border 26→2a,border-strong 2e→3a,hover-border 40→4a;surface-muted 1a→1c;primary-soft 1a1d33→1c2040;primary-border 2d3257→353c66;warning/danger soft 系列加亮一档;overview-primary-bg 141414→161620;hairline 0.04→0.06
- cache-bust v5 → v6
2026-05-21 09:29:38 +08:00
Codex
299ced21c8
精修 WebUI 第二轮:数据表/表格/图表/预约卡
...
- workspaceHeader 加左侧 2px primary accent + uppercase eyebrow
- stats 卡片:tabular-nums + uppercase 标签 + 字号统一 text-xl
- table:sticky 表头 uppercase + zebra 奇偶行 + hover 高亮 + mono 列灰度
- timeline 图:4 等分水平网格虚线 + Y 轴 0/mid/max 三档 mono 标签
- 空状态:.hint 单独使用时升级为虚线圆框居中占位 + 圆形 dot
- 预约卡片:reservationIndex 加圆点 + reservationValue 改 uppercase pill;hover 去 transform,纯 box-shadow 反馈
- cache-bust v4 → v5
2026-05-21 09:29:38 +08:00
Codex
b7d7f61a27
精修 WebUI:质感细节与组件统一
...
- 引入设计 token:space-1..8 / radius-sm..xl / text-xs..2xl
- header:替换品牌图标为 SVG(耳机+音符)+ 顶部 hairline;title 用 tabular 字体可读性更好
- 按钮 primary/danger 加 inner highlight + 渐变深浅 + 三态质感(idle/hover/active)
- 侧边导航 tabBtn:active 改为左侧 2px 垂直指示条带 scaleY 动画
- 表单:select 加自绘下拉箭头;focus 双层 ring(border + 半透明)
- check 项勾选后亮 primary-soft 背景
- 状态卡 overviewCard:左侧 2px accent 条 + tabular-nums 数字 + 标签 uppercase
- statusRunning 状态点改为外扩光环动画(更内敛)
- 图表:barFill 加细微渐变;hover 行高亮其他行半透明;tabular-nums
- 全局滚动条:10px 细圆角,仅 thumb 显示
- preview 占位:斜纹背景 + 单方向扫描线动画
- cache-bust v3 → v4
2026-05-21 09:29:37 +08:00
Codex
3ed352ef0e
重构 Web GUI 视觉为深浅双主题大厂风
...
- 引入 Linear/Vercel 风设计语言:单色 primary、克制阴影、Inter 字体
- 新增深/浅双主题 token 与右上角切换钮,支持系统跟随 + localStorage 记忆
- 字重整体降一档(760→600,720→550,650→500),更轻盈现代
- sectionTitle 改为 11px uppercase 灰色辅助文字 + 细分割线
- 删除 sheen / scan / overviewCard 渐变条等装饰动画与彩色装饰层
- 图表配色单色化:timeline 线统一用 primary + opacity 区分系列
- styles.css/app.js cache-bust 版本升至 theme-v3
2026-05-20 23:09:20 +08:00
Codex
6c73f6e414
优化Web端日志导航与GUI配置
2026-05-20 20:23:32 +08:00
Your Name
89128deb0f
Complete missing Web GUI controls
2026-05-20 17:54:40 +08:00
Your Name
a48e4004da
feat: 添加检测动作后停留时间设置,支持随机范围
2026-01-13 00:46:47 +08:00
Your Name
b3011dd9ce
feat: Implement high-value room revisit feature and enhance fudai tracking
...
- Added tracking for previously seen fudai in Runner and ProcRunner classes to avoid duplicate recognition.
- Extracted room title during fudai recognition for better tracking.
- Updated high_value_rooms.json with new room entries and adjusted total count.
- Introduced new GUI elements for configuring icon coordinates in webui.
- Created comprehensive documentation for the high-value room revisit functionality.
- Added tests for delay settings and icon detection logic to ensure functionality.
- Implemented a tool for analyzing step times in logs to identify performance bottlenecks.
2026-01-08 14:27:38 +08:00
Your Name
93d47a16d6
Refactor reservation preemption handling and logging
...
- Removed the reservation preempt minimum value from the Runner and GUI components.
- Updated logging mechanism to streamline log message handling and improve readability.
- Introduced a new method for appending log lines in the Runner class.
- Cleaned up related GUI elements and configuration options in web interface.
- Deleted obsolete simulation scripts related to reservation preemption checks.
2026-01-07 21:24:10 +08:00
Your Name
0e2ff7be6e
feat: 优化日志配置函数中的代码格式,提升可读性
2026-01-07 19:10:07 +08:00
Your Name
c6b6745e3e
feat: 优化日志记录格式,增强循环次数和运行时间限制的可读性
2026-01-07 19:06:10 +08:00
Your Name
46733155e0
feat: 添加下滑返回直播间的配置选项,支持启用和设置次数
2026-01-04 21:49:17 +08:00
Your Name
6b9b02bd58
feat: 增强福袋参与和预约管理功能,添加统计记录和优化配置参数
2026-01-04 11:31:54 +08:00
Your Name
c0df59ac26
feat: 优化安全数据处理逻辑,确保 detail 数据的稳定性和类型安全
2026-01-04 10:18:51 +08:00
Your Name
9e08ed3bd0
chore: remove OCR archive, delete collect_ocr_failures, update docs
2026-01-03 03:50:45 +08:00
Your Name
223c127e11
chore: Clean up and refactor codebase for improved maintainability
...
- Removed obsolete command-line test parameters from `run_cli.py` to streamline functionality.
- Introduced a new `ocr_preprocess.py` module for unified OCR image preprocessing, enhancing recognition stability.
- Updated various components to utilize the new preprocessing function, improving code organization and readability.
- Adjusted configuration values in `config.json` for better performance and consistency.
- Added comprehensive technical documentation for the Douyin project, detailing code modification standards and operational guidelines.
- Cleaned up excessive blank lines across multiple files to enhance overall readability.
2025-12-30 23:11:34 +08:00
Your Name
36b39b1fac
fix: Update debug image handling and enhance reservation display
...
- Added a configuration option in `config.json` to enable or disable debug image saving, defaulting to false for improved performance.
- Updated the GUI and web interface to display reservation details in Chinese, enhancing readability and user experience.
- Adjusted the click coordinates for joining the fan club and added logic to close the details page after joining.
- Cleaned up blank lines across multiple files to improve code readability and maintainability.
2025-12-26 15:09:18 +08:00
Your Name
533943620c
feat: Optimize OCR performance and enhance debugging features
...
- Implemented parallel execution for OCR tasks, significantly improving recognition speed for content, countdown, and value detection.
- Updated configuration settings to support automatic cleanup of debug captures, including retention days and maximum file limits.
- Enhanced GUI to include new options for debugging parameters, allowing users to configure debug capture settings directly.
- Improved documentation to reflect changes in OCR functionality and debugging features, ensuring clarity for users.
- Refined error handling and logging across various modules to facilitate better monitoring and troubleshooting.
2025-12-22 03:27:37 +08:00
Your Name
e5a510d19b
feat: Introduce unified logging system and optimize file management
...
- Added a new unified logging module to standardize log formatting, including support for traceId and MDC for better tracking.
- Updated `.gitignore` to exclude code analysis reports and temporary files.
- Created cleanup scripts to manage unused files and generate cleanup reports.
- Enhanced existing modules to integrate the new logging system and improve debugging capabilities.
- Removed outdated files and scripts to streamline the project structure.
2025-12-22 01:30:09 +08:00
Your Name
8b47b506d6
feat: Enhance 福袋 detection and reservation logic
...
- Updated `config.json` to introduce new settings for infinite loop mode and adjust various thresholds for 福袋 detection.
- Refined the pixel detection logic in `douyin_detection.py` to improve error handling and retry mechanisms.
- Enhanced reservation handling in `douyin_flow_control.py` to prioritize high-value 福袋 and streamline the switching process.
- Improved the GUI in `gui_app.py` to support new configuration options and ensure better user experience.
- Added new tools for analyzing 福袋 colors and comparing them with coupon colors to aid in detection accuracy.
- Updated documentation to reflect changes in configuration and usage instructions.
2025-12-20 13:32:32 +08:00
Your Name
836a31d817
refactor: Remove outdated files and enhance Web GUI functionality
...
- Deleted obsolete markdown files related to follow tab coordinates testing and results.
- Removed outdated batch scripts for launching the Web GUI.
- Updated `config.json` to improve reservation handling and adjust prize value settings.
- Enhanced logging and error handling in `web_gui.py` and `app.js` for better user experience.
- Added automatic screenshot functionality during Web GUI startup for improved monitoring.
2025-12-19 03:31:08 +08:00