Skip to content

fix: keep scan results reachable after cleaning - #213

Open
jloutsch wants to merge 2 commits into
momenbasel:mainfrom
jloutsch:fix/return-to-scan-results
Open

jloutsch wants to merge 2 commits into
momenbasel:mainfrom
jloutsch:fix/return-to-scan-results

Conversation

@jloutsch

@jloutsch jloutsch commented Nov 24, 2026 •

Copy link
Copy Markdown

What does this PR do?

After cleaning items, Overview showed only a "Done" button that reset the screen to the start-scan state. The remaining categories from the scan could not be reviewed without running a new scan.

Changes:

  • Review scan results button. The cleanup summary card now offers "Review scan results" when scan results remain. "Done" is still there and behaves as before.
  • Back goes to the results list after a category clean. When a clean is started inside a category, other categories still have results, and nothing failed, the app returns to the results state instead of the summary card. The summary card still appears when the last category was emptied, when an item failed, and for cleans started from Overview.
  • Confirmation in an emptied category. A category whose list was emptied by its own clean now shows "Cleanup complete" with the amount removed. It previously fell back to the "Scan first" empty state.
  • Progress during a category clean. The category view only disabled its buttons while cleaning, which looked like a hang. It now shows a progress bar, and an authentication hint while the administrator pass runs. The Overview cleaning card shows the same hint.

No new localized strings. Every label reuses a key that already exists in all 15 Localizable.strings files.

Type of change

  • Bug fix
  • New feature
  • Performance improvement
  • UI/UX enhancement
  • Documentation
  • Other (describe)

Testing

Tested on macOS Tahoe 26.7.3 only, with an ad-hoc signed Debug build.

  • Full test suite: 235 tests, 0 failures, 1 skipped.
  • Four new tests in AppStateTests cover the state after a category clean: other categories remain, nothing remains, unselected items in the same category remain, and one item fails.
  • Checked by hand: "Review scan results" returns to the remaining categories, Back returns to the results list after a category clean, and a partial clean inside a category succeeds.
  • Not checked by hand: the "Cleanup complete" state in an emptied category, and the authentication hint. No clean during testing needed administrator rights. The administrator pass cannot run in a unit test.

Screenshots

Screenshot of the new button to follow in a comment.

🤖 Generated with Claude Code

jloutsch and others added 2 commits November 23, 2026 21:57
After a clean, Overview showed only a "Done" button that reset the
screen to the start-scan state, so the remaining categories could not
be reviewed without a new scan.

- Add "Review scan results" to the cleanup summary when results remain.
- After a clean started inside a category, return to the results list
  when other categories remain and nothing failed, so Back does not
  land on the summary card first.
- Show progress in the category view during a clean. It previously
  only disabled its buttons, which looked like a hang while waiting
  for the administrator prompt.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Follow-up to the scan results change, which skips the cleanup summary
after a category clean while other results remain.

- Show "Cleanup complete" with the amount removed in a category whose
  list was emptied by its own clean. Previously it fell back to the
  "Scan first" empty state with no sign that the clean had succeeded.
- Show an authentication prompt hint while the administrator pass
  runs. The progress bar was already at 100% by then, so the wait for
  the password looked like a hang.
- Cover partial category cleans and cleans with a failed item.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@jloutsch

Copy link
Copy Markdown
Author
screenshot-review

This branch has not been deployed

No deployments
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