Skip to content

Let the incomplete-scan banner be dismissed until the next scan - #29

Open
horus-leonardo wants to merge 5 commits into
phalladar:mainfrom
horus-leonardo:fix/incomplete-banner-dismiss
Open

horus-leonardo wants to merge 5 commits into
phalladar:mainfrom
horus-leonardo:fix/incomplete-banner-dismiss

Conversation

@horus-leonardo

Copy link
Copy Markdown
Contributor

The incomplete-scan banner could not be closed, so it took about 110 pt above the treemap for as long as the scan stayed loaded.

Changes

  • The banner gets an ✕ button (Dismiss).
  • It stays dismissed until the next scan or rescan, full or partial. Moving an item to the Trash does not bring it back. The state is not saved across launches.
  • While it is dismissed, the inspector's "Incomplete scan" row shows a "Show Banner" link, since the per-folder list lives only in the banner.

The state is one AppState property. setScanCompleted clears it, and so does replace(_:with:) when it splices in a rescanned folder. Trash calls replace with nil, so it leaves the property alone.

Testing

  • swift test: 25 passed. The new test covers trash keeping the banner dismissed and both rescan paths bringing it back. It fails if the line in replace is removed.
  • Checked by hand on an SDK 26-stamped build: dismiss, Show Banner, trash, folder rescan, new scan.

🤖 Generated with Claude Code

horus-leonardo and others added 5 commits November 26, 2026 13:32
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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