Skip to content

fix: resolve stage-test workbench UX issues - #6

Merged
forgottenlab merged 1 commit into
mainfrom
fix/stage-test-ux
Nov 26, 2026
Merged

forgottenlab merged 1 commit into
mainfrom
fix/stage-test-ux

Conversation

@forgottenlab

Copy link
Copy Markdown
Owner

改动 / What changed

  1. 日志抽屉最小高度布局(Professional / Basic 共用 MainWindow)
    将日志正文的最小高度从 148px 降为 0,标题行固定 32px,抽屉最小高度只覆盖标题行。拖到最小时标题“运行与输出日志”不再与状态文本重叠,“恢复高度”按钮保持完整可见且可点击。空间不足时隐藏日志正文,而不是把标题行挤扁。

  2. 无 scheme 的网址自动补 https://
    新增 shared/url_normalization.py。在输入写回、方案保存/加载、试运行/导出预检,以及 Basic 策略和导出序列化处统一处理。www.baidu.com 会变成 https://www.baidu.com 并被 Basic 接受。已显式写出的 scheme(http、https,以及其他如 file://、mailto:)不会被改写。Basic 仍拒绝非 HTTP/HTTPS,试运行和导出入口保持可用。

  3. Professional「执行命令」输入框焦点边框
    去掉 QTextEdit 原生边框(NoFrame),焦点只保留 1px 样式表描边,并设置 outline: none,消除模糊/双层蓝框。命令自动补全不在本次范围。

  4. 导出的 Professional 启动器为命令步骤弹出可交互控制台
    导出序列化改为 CREATE_NEW_CONSOLE,继承标准输入输出,不再使用 CREATE_NO_WINDOW / SW_HIDE / 管道捕获。嵌入式运行器在该模式下 wait(),以便用户查看输出并交互。编辑器内试运行仍将输出捕获到日志面板。应用步骤仍保持隐藏窗口。短命令结束时控制台可能很快关闭。未做完整 PyInstaller 打包验证;用 CREATE_NEW_CONSOLE 子进程和序列化合同做了核验。

  5. 移除 Professional「+ 等待」添加按钮
    该按钮与各步骤的「后续延迟(秒)」重复。不再提供替补按钮。已保存方案中的等待步骤仍可加载、编辑和运行,Professional 运行器仍保留 run_wait_step。更新了空状态提示、文档、CHANGELOG,并用 tools/generate_readme_screenshots.py(隔离数据目录 + 会话级 QT_PLUGIN_PATH)重生成工作台截图。未重新截取激活/HWID 图像。

检查 / How it was checked

解释器:D:\Downloads\01-Software\Professional\SDKs\miniconda3\python.exe(Python 3.13.9,PySide6 6.9.3)。未修改 PATH、Conda、注册表或用户/系统环境变量。GUI 探测仅使用会话级 QT_PLUGIN_PATH。

  • tools/check_url_scheme_normalization_smoke.py:通过(补全、不改写显式 scheme、Basic 接受 www.baidu.com、拒绝 file://、预检和导出合同)
  • tools/check_export_command_console_smoke.py:通过(序列化为 CREATE_NEW_CONSOLE + 继承 stdio;现场子进程确认出现控制台窗口)
  • tools/check_command_backend_smoke.py:通过(编辑器运行时后端仍隐藏窗口;导出合同已更新)
  • tools/check_control_border_theme_smoke.py:通过(offscreen)
  • tools/check_log_toolbar_responsive_smoke.py:通过(offscreen;最小高度标题/状态/按钮几何不重叠,header 高度 32px)
  • tools/check_dual_edition_phase2_smoke.py:通过(offscreen;Professional 模板哈希已更新;「+ 等待」在 Professional 中不可见,Basic 行为不变)
  • RuntimeExecutor.run_wait_step:通过(已有等待步骤仍会执行)
  • Windows 插件探测(QT_QPA_PLATFORM=windows):cmd_in 为 NoFrame;最小高度日志标题不重叠,恢复按钮 96×28 完全位于标题行内。随后关闭了探测窗口。
  • 用官方截图脚本重生成 README 工作台图,确认 Professional 只保留「+ 应用 / + 网页 / + 命令」,方案中已有的等待步骤仍然显示。
  • 未运行完整 PyInstaller 导出。主仓库脏文件 SHA1 复核未变化;未改动 F:\Codex\01-Projects\launchflow\source,也未改动 fix/dev-launcher-qt-plugin-path 工作树。

建议合并后由用户在本机再确认:用 www.baidu.com 试运行、重新导出命令步骤方案以查看控制台,以及确认工作台已无「+ 等待」。

English Summary

This PR fixes five stage-test UX issues on one branch: schemeless URLs are normalized to https:// without rewriting explicit schemes; the shared log drawer can shrink to its header without overlapping text or clipping the restore-height button; the Professional command field no longer shows a double focus ring; exported Professional launchers open an interactive console for command steps (CREATE_NEW_CONSOLE, inherited stdio), while in-editor trial-run still captures logs; and the redundant Professional Wait add button is removed, with existing wait steps still loading and running. Automated smokes were updated and passed; README workbench screenshots were regenerated. A full PyInstaller export was not run.

- Prefix schemeless URLs with https:// at input, save, validate, trial-run, and export without rewriting explicit schemes.
- Keep the shared log-pane header readable and the restore-height button fully clickable at minimum height.
- Remove the native QTextEdit frame that caused a double focus ring on the Professional command field.
- Open an interactive console for command steps in exported Professional launchers (CREATE_NEW_CONSOLE, inherited stdio). Editor trial-run still captures output in the log pane.
- Remove the redundant Professional Wait add button. Existing wait steps still load and run.
@forgottenlab
forgottenlab merged commit 27a87a5 into main Nov 26, 2026
1 check passed
@forgottenlab
forgottenlab deleted the fix/stage-test-ux branch November 26, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant