Skip to content

fix(macOS): dismiss Analysis Log sheet with close button and Escape#3

Open
MemeFormer wants to merge 2 commits into
ifeelvoid:mainfrom
MemeFormer:fix/analysis-log-close-dismiss
Open

fix(macOS): dismiss Analysis Log sheet with close button and Escape#3
MemeFormer wants to merge 2 commits into
ifeelvoid:mainfrom
MemeFormer:fix/analysis-log-close-dismiss

Conversation

@MemeFormer
Copy link
Copy Markdown

Problem

The Analysis Log is shown as a SwiftUI sheet (EnhancedBatchViewAnalysisLogView). On macOS it can appear as a separate window without standard close chrome, especially alongside a hidden title bar on the main window. Unlike Help, tag editor, and cue sheets, the log had no explicit dismiss path, so users could get stuck with the log focused and no obvious way back to the main UI.

Solution

  • Add @Environment(\.dismiss) and a header close button (consistent with HelpView).
  • Add .onExitCommand { dismiss() } so Escape dismisses the sheet.

Files

  • Sources/KeyFinder/Views/AnalysisLogView.swift

Testing

  • View → Show Analysis Log (or ⌘⇧L), confirm close button and Escape return to the main window.
  • Build with your usual process (e.g. ./build-app.sh).

sonoma and others added 2 commits April 7, 2026 00:57
AnalysisLogView was the only sheet without a dismiss path; on macOS the
log can take focus without window chrome, matching Help/Tag/Cue sheets
with an explicit close button and onExitCommand.

Made-with: Cursor
ifeelvoid added a commit that referenced this pull request Apr 7, 2026
- Merge PR #3: add dismiss button + Escape key handler to AnalysisLogView
- Bump CFBundleShortVersionString/CFBundleVersion to 1.9 in build-app.sh
- Bump VERSION to 1.9 in make-dmg.sh and distribute.sh
- Update DMG filename references in CLAUDE.md and README.md
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