Skip to content

[Issue-207] fix(window-management): refresh phrases and limit topmost windows - #208

Merged
CYoJkoY merged 1 commit into
mainfrom
issue-207
Nov 13, 2026
Merged

CYoJkoY merged 1 commit into
mainfrom
issue-207

Conversation

@CYoJkoY

@CYoJkoY CYoJkoY commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Linked Issue

Closes #207: Refresh the Quick Phrase Manager immediately after phrase deletion or reordering, present deletion confirmation inside the active theme above the manager, and reduce unnecessary always-on-top windows across the app.

  • Stacked Branch Dependencies: None (Directly branched from main)

Change summary

Staged breakdown of all diffs against main by commit:

  • 597a9f8: Introduce DarkInputDialog.Confirm as an owned, themed confirmation dialog with confirm, cancel, Escape, and close handling; the owner window is disabled while it is open. Route phrase deletion and phrase import confirmation through it. Refresh the Quick Phrase Manager and category selectors after deletion and reordering, and rebuild tracked category filter options so stale entries disappear immediately. Use the manager or selector as dialog owner in UI/QuickPhraseGui.ahk. Remove always-on-top from ordinary surfaces (Settings, history, preview, cheatsheet, cloud sync, image tools, application profiles, tray settings, input dialog) while keeping it only for intentional overlays and transient surfaces such as the command palette, OSD, custom history menus, window switcher, pin badge, cursor effects, and progress windows. Add regression coverage in scripts/HotkeyRegression.ahk. Bump the application version to 1.12.6 in Core/AppVersion.ahk, and let Core/CloudSyncModel.ahk prefer compiled version metadata with AppVersion.Current as fallback.
  • Behavioral Guarantees: Existing hotkeys, configuration keys, default values, and stored Quick Phrase data keep their current contracts. Category filtering still uses the same values; only the tracked option indices are rebuilt. Themed confirmation preserves the previous yes/no semantics and returns the same boolean result. Dialog owner changes only affect stacking and focus, and retained topmost surfaces keep their existing behavior.

Verification & Dependencies

  • Status of Assertions:
    • Command-line checks: ./scripts/ci/Check-DllPaths.ps1 (PASS); ./scripts/ci/Invoke-Ahk.ps1 ./CapsLock-.ahk -Validate (PASS); ./scripts/ci/Invoke-Ahk.ps1 ./scripts/HotkeyRegression.ahk (278 checks run, 0 failed); ./scripts/ci/Invoke-Ahk.ps1 ./scripts/HistoryGuiPaging.ahk (PASS); git diff --check (PASS). Checks run with AutoHotkey 2.0.31 while the CI workflow uses 2.0.28.
    • Runtime & Visual assertions: Temporary runtime probes verified that deleting a phrase refreshes the manager immediately and reordered rows reflect the new order. The confirmation probe observed the owner window disabled while the dialog was open, re-enabled afterward, and the dialog reported topmost=0. Both probes were removed before commit, so visual confirmation is limited to these focused runtime probes.
    • Unverified external facts: None - all assertions verified locally.
  • Dependency Pinning:
    • AutoHotkey is pinned to exact versions (2.0.28 in CI, 2.0.31 locally); no floating tags or new dependencies were introduced.

Review conclusion

Evaluation across the four engineering dimensions:

  • Correctness & Regression: PASS (Refresh paths cover both manager and selector independently, confirmation preserves boolean semantics, and regression checks passed with 0 failures.)
  • Performance Gain: PASS (Rebuilding only tracked category indices avoids full reloads, and removing always-on-top from ordinary windows reduces unnecessary overlay stacking without extra DOM or paint work.)
  • Compatibility & Architecture: PASS (Native AutoHotkey execution retained, themed dialog isolated in the existing dialog module, and no new frameworks or global state introduced.)
  • Readability & Commit Completeness: PASS (Single atomic commit for this issue, Conventional Commits format with Issue reference, pure ASCII text.)

Overall Verdict: PASS

Permission Notice

AI has completed staged development and review loops. Merging is an exclusive user privilege. Awaiting manual merge.

@CYoJkoY
CYoJkoY merged commit a2b3193 into main Nov 13, 2026
1 check passed
@CYoJkoY
CYoJkoY deleted the issue-207 branch November 13, 2026 23: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.

Fix Quick Phrase refresh, themed confirmations, and excessive topmost windows

1 participant