Repository navigation
feat: improve Application path lookup UX - #8
Merged
Merged
Conversation
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.
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
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.pypython tools/check_shortcut_policy_smoke.pypython tools/check_application_path_picker_smoke.py(含 placeholder / hint / Enter 查找 / 添加草稿)python tools/check_application_lookup_smoke.pypython tools/check_basic_policy_phase1a_smoke.pypython tools/check_basic_policy_phase1b_smoke.pypython tools/check_readme_docs_smoke.pypython 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.pynow runs on a clean tree that has no gitignoreddata/app_templates.json, and importingshared.platform.shortcutsno longer loadsshared.models.