Repository navigation
fix: resolve stage-test workbench UX issues - #6
Merged
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动 / What changed
日志抽屉最小高度布局(Professional / Basic 共用 MainWindow)
将日志正文的最小高度从 148px 降为 0,标题行固定 32px,抽屉最小高度只覆盖标题行。拖到最小时标题“运行与输出日志”不再与状态文本重叠,“恢复高度”按钮保持完整可见且可点击。空间不足时隐藏日志正文,而不是把标题行挤扁。
无 scheme 的网址自动补
https://新增
shared/url_normalization.py。在输入写回、方案保存/加载、试运行/导出预检,以及 Basic 策略和导出序列化处统一处理。www.baidu.com会变成https://www.baidu.com并被 Basic 接受。已显式写出的 scheme(http、https,以及其他如file://、mailto:)不会被改写。Basic 仍拒绝非 HTTP/HTTPS,试运行和导出入口保持可用。Professional「执行命令」输入框焦点边框
去掉 QTextEdit 原生边框(
NoFrame),焦点只保留 1px 样式表描边,并设置outline: none,消除模糊/双层蓝框。命令自动补全不在本次范围。导出的 Professional 启动器为命令步骤弹出可交互控制台
导出序列化改为
CREATE_NEW_CONSOLE,继承标准输入输出,不再使用CREATE_NO_WINDOW/SW_HIDE/ 管道捕获。嵌入式运行器在该模式下wait(),以便用户查看输出并交互。编辑器内试运行仍将输出捕获到日志面板。应用步骤仍保持隐藏窗口。短命令结束时控制台可能很快关闭。未做完整 PyInstaller 打包验证;用CREATE_NEW_CONSOLE子进程和序列化合同做了核验。移除 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:通过(已有等待步骤仍会执行)QT_QPA_PLATFORM=windows):cmd_in为NoFrame;最小高度日志标题不重叠,恢复按钮 96×28 完全位于标题行内。随后关闭了探测窗口。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.