Skip to content

feat: improve Application path lookup UX - #8

Merged
forgottenlab merged 3 commits into
mainfrom
feat/app-path-lookup-ux
Nov 30, 2026
Merged

forgottenlab merged 3 commits into
mainfrom
feat/app-path-lookup-ux

Conversation

@forgottenlab

Copy link
Copy Markdown
Owner

改动 / What changed

  • 「+ 应用」不再强制打开文件对话框,而是先添加空白步骤并聚焦路径输入框。用户可以输入程序名后点击「查找」或按 Enter,也可以继续浏览或直接填写绝对路径。
  • 路径区增加了可见提示,占位符改为引导按名称查找,并把「查找」按钮放在「浏览」前面,便于发现。输入过程中不会自动改写路径。
  • 保存、试运行和导出仍要求填写有效绝对路径;存储的路径格式没有变化;查找仍不会扫描整个磁盘。
  • 同一分支里顺手修了两个非阻断冒烟:干净工作树上 check_app_paths_smoke.py 不再因为缺失、被 gitignore 的 data/app_templates.json 而失败;shared.basic_policy 改为按需导入 Plan,导入 shared.platform.shortcuts 不再连带加载 shared.models。

检查 / How it was checked

解释器:D:\Downloads\01-Software\Professional\SDKs\miniconda3\python.exe(Python 3.13.9,PySide6 6.9.3)。以下命令均已通过:

  • python tools/check_app_paths_smoke.py
  • python tools/check_shortcut_policy_smoke.py
  • python tools/check_application_path_picker_smoke.py(含 placeholder / hint / Enter 查找 / 添加草稿)
  • python tools/check_application_lookup_smoke.py
  • python tools/check_basic_policy_phase1a_smoke.py
  • python tools/check_basic_policy_phase1b_smoke.py
  • python tools/check_readme_docs_smoke.py
  • python tools/check_step_editor_sync_smoke.py

这次没有再用官方开发脚本做交互式窗口探测,避免在桌面弹出 Qt 窗口。路径查找的界面串接由 offscreen 冒烟覆盖。

English Summary

This stage makes Application path lookup easier to discover and use. Clicking +Application now creates a blank draft and focuses the path field instead of forcing a file dialog. Find is easier to notice (visible hint, leading button, clearer placeholder), and Enter still runs an explicit lookup without rewriting the path on each keystroke. Browse and typed absolute paths remain available. The stored path schema is unchanged, and Find still does not scan the whole disk.

The same branch also fixes two earlier non-blocking smokes: check_app_paths_smoke.py now runs on a clean tree that has no gitignored data/app_templates.json, and importing shared.platform.shortcuts no longer loads shared.models.

Keep check_app_paths_smoke.py from hashing a missing gitignored
data/app_templates.json on a clean tree, and still assert the source
tree is not modified. Import Plan from shared.basic_policy only when
needed so importing shared.platform.shortcuts no longer loads
shared.models.
Add a blank Application draft instead of opening a file dialog first,
focus the path field, lead with Find, and show a visible hint. Enter
still runs an explicit lookup without rewriting the path on each
keystroke. Update path-picker smoke, README, and changelog.
Replace stale editor/edition_ui.py WIN-ASSET-001 fingerprints for the
old path placeholders with the new hint-string fingerprints. Keep the
existing platform_adapter_candidate classification.
@forgottenlab
forgottenlab merged commit d781e4a into main Nov 30, 2026
1 check passed
@forgottenlab
forgottenlab deleted the feat/app-path-lookup-ux branch November 30, 2026 13:06
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