Skip to content

First-run follow-ups: dedupe review, guided setup, copy, test debt - #310

Merged
Nishith merged 48 commits into
mainfrom
fix/first-run-followups
Nov 29, 2026
Merged

Nishith merged 48 commits into
mainfrom
fix/first-run-followups

Conversation

@Nishith

@Nishith Nishith commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

Follow-ups to the first-run stack (#307, #308, #309, now merged). One commit per issue, plus two small tails.

The stack was squash-merged, so this branch conflicted with main by history only: main (ec92c63) has the same tree as e8870aa, which this branch had already merged. 7fc28bb merges main keeping the branch tree unchanged, so the diff against main is exactly the follow-up work.

Fixes #301. Fixes #302. Fixes #303. Fixes #304. Fixes #305.

Design proposals (not approved yet)

Left alone on purpose

  • keepAllInCluster / deleteAllInCluster also drop pair keep-overrides. Whether an override should survive "delete all" is a product decision.
  • Nothing in production sets a pair keep-override today; only tests do.
  • DeduplicateSessionStore.triageBuckets has no production use left.
  • docs/plan/first-run-experience still describes the old fixture numbers.

Verification

Local, Swift newer than CI, on the final tree:

  • script/swift_meaningful_coverage.sh: exit 0, 2,720 passed, 0 failed, 96.14% meaningful.
  • All 14 script/check_*.sh: exit 0 (app-layer guard against origin/feature/first-run-guided).
  • Xcode build with SWIFT_EMIT_LOC_STRINGS=YES: exit 0. build-for-testing: exit 0.
  • check_german_localization.py --baseline-ref origin/main --stringsdata-directory …: exit 0.
  • git diff --check: exit 0.

CI, manual dispatch on this branch (the workflow only triggers on PRs into main):

  • Run 46276498407 (afc8396): UI tests 32 run, 3 failed; all other jobs green.
  • Run 46281581830 (89162a7): all jobs green, App-layer guard skipped (no PR context). UI tests 33 run, 0 failed. Accessibility audit passed.

UI-test fixes after the first run:

  • testDeduplicateReviewKeepsActionsVisibleAtWideAndCompactSizes: the fixture has no identical groups, so Accept Identical Copies is correctly disabled. The test now asserts that, and a new test covers enabled → disabled on the deduplicateReviewLanes scenario.
  • testRunPreviewReviewScenarioShowsTransferArtifactsAndTabs: predates this branch. Fixed by bb92f3a and e8870aa on the base, merged in here (d13e5d2); the conflict kept the base's disclosure row with this branch's label.
  • testTimelineSelectionUpdatesPreview: SwiftUI exposes the timeline's value as a value description, which XCUIElement.value does not read. The test now reads the drawer title.

A11yBaseline.json: 21 of 37 entries matched no issue in three CI audit logs and were removed; 16 remain. Evidence is from the 1024×768 CI runner only, so a local audit on a larger display could still report some of them.

Not verified:

Safety Checklist

  • Source files remain read-only.
  • Destination collisions cannot overwrite existing files.
  • Destructive operations are receipt-backed and reversible where applicable.
  • User-facing errors remain plain and nontechnical.
  • Any new ui/Xcode/UITests/ file is registered in project.pbxproj (no new UI-test files).
  • Tests or documented manual checks cover the changed behavior.

Planner, executors and revert code are untouched.

🤖 Generated with Claude Code

Nishith and others added 30 commits November 28, 2026 17:45
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The per-group rail skips a group whose members are all marked Delete, but
its members could still be removed by pair fan-out from another group or by
a second group that lists the same files. Members of a skipped group are now
protected from direct deletes and from fan-out.

Adds INV-32, fixed regressions for both routes, and a property test whose
generator builds cross-group pairs and overlapping groups.

Fixes #300

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

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…as a fact

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…onth may be the whole plan

TrialRemaining returns nil for verificationUnavailable and unverified, so
the preview never describes a spent trial or offers a purchase to someone
who may already have paid. The unlock sheet offers a requested month even
when the plan has shrunk to exactly that month.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Nishith and others added 11 commits November 29, 2026 06:29
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…aches both lanes

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The identifier sat on a bare container, so it replaced the identifiers of
the panels inside it and the UI test could not find openDestinationButton
after expanding. The UI test now clicks the triangle inside the group.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
acceptSuggestions(in:) rebuilt decisions from the per-path choices alone,
dropping any pairKeepOverrides the person had set. Carry them across.
acceptAllSuggestions and acceptAllHighConfidence share the flaw but have
no production callers and are slated for removal, so they are untouched.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- Footer Accept Identical Copies is disabled when no identical group waits.
- Beside Move N Files to Trash Free the status counts that batch, so the
  two numbers agree; the free line above still says what the groups hold.
- "1 more is waiting" has a singular form (EN, DE).
- The deferred count moves from view state to DeduplicateSessionStore, so
  it survives the view being rebuilt during a commit.
- The store refuses to prepare a plan while a commit runs.
- Safeguards condense to one line at the default 820pt window, giving the
  group list the room the cards took.
- Tests: free-batch commit then ordinary commit on one store; prepare
  refused during a commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…303)

- Free-space figure is stored with the destination it was measured for, so a newly chosen destination never shows the previous one's figure.
- A source added from the Library menu on the first guided question ends guided setup, the same as a drop.
- "Choose This Folder" picker prompt gets a German entry in LocalizableCore.xcstrings.
- FolderAccessService.panelDirectoryURL(openingAt:) applies the protected media library check before probing disk.
- FolderSizeEstimator: test for an unreadable subfolder; the two identical per-entry failure branches are one guard. Line coverage 90.6% to 95.1%.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
#304)

- Preview line: a plan that lists more than was found gets its own sentence
  instead of "N are not in this plan yet".
- Free-limit line names files ("This plan has 18,412 files.").
- Running preview no longer says "only reading"; it says originals are never
  changed and nothing is copied yet.
- Help shortcut says Quick Review; the preview disclosure is "Status, reports
  and logs" so it no longer repeats the Details heading.
- Timeline caption and QUICK_START originals tip reworded; docs updated.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
acceptSuggestionsForCluster rebuilt decisions from the per-path choices
alone, dropping any pairKeepOverrides the person had set. Carry them
across, as acceptSuggestions(in:) already does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- Finished line: a copy that handled more than was found gets its own
  sentence instead of "N are not accounted for in this copy".
- Running timeline caption now matches the preview's plain wording.
- Quick Review progress label replaces the old Rapid Triage name; the old
  catalog keys stay in place.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- testTimelineSelectionUpdatesPreview now picks a month other than the newest
  one selected on arrival and checks the selection really changes; the
  runPreviewReview fixture gets a second month (18 + 24 = 42) to allow it.
- runPreviewOverAllowance is built from one per-month table: the histogram sums
  to the plan's 18,412 (was 21,140) and the free-month card and selected month
  read the same number for the newest month (212, was 2,420 vs 212). A new
  test asserts the fixture is internally consistent.
- Remove acceptAllSuggestions(), acceptAllHighConfidence() and
  TimelinePlurals.filesToCopy with their tests (no production callers; owner
  decision). Behaviour they covered is exercised through acceptSuggestions(in:)
  and acceptSuggestionsForCluster. Catalog keys stay.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T15:07:48.377103Z afc8396 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Nishith and others added 5 commits November 29, 2026 07:17
The UI test clicks the centre of the disclosure element, which is the
label, and only the triangle toggled it. [skip-app-test-check] covered by
the existing UI test testRunPreviewReviewScenarioShowsTransferArtifactsAndTabs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Brings the base's fix for the Details disclosure (its identifier no longer
replaces the identifiers of the panels inside it; the whole row opens it).
Conflict in RunSectionViews.swift: the base's label block is kept with this
branch's wording, "Status, reports and logs".

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The timeline's accessibility value reaches XCTest empty: SwiftUI publishes it
as the element's value description (role AXUnknown), so XCUIElement.value is
"". VoiceOver still reads it. The test now reads the drawer under the
timeline, which is the preview itself: April on arrival, March after choosing
the earlier month, neither after clearing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… holds (#305)

The wide and compact review fixtures hold near-duplicate and burst groups
only, so the identical lane is empty and the footer button is disabled from
launch, as #302 intends. The test asserted the old Accept All Suggestions
behaviour. It now expects the button visible and disabled there, and a new
test on the lanes scenario (six identical groups) shows it enabled, then
disabled once they are all accepted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
21 of 37 entries matched no issue the audit logged in three CI runs
(46276498407 on this branch, 46273743987 and 46277546063 on the base).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Base automatically changed from feature/first-run-guided to main November 29, 2026 17:05
@Nishith
Nishith enabled auto-merge (squash) November 29, 2026 17:37
Nishith and others added 2 commits November 29, 2026 09:39
main (ec92c63) has the same tree as e8870aa, which this branch already
merged in d13e5d2, so the branch's tree is the merge result unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…305)

The disclosure sits under panels that lay out after the window appears,
and the test clicked it without scrolling it into view. Same tree passed
in run 46281581830 and failed in 46290807547 at the wait after the click.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Nishith
Nishith merged commit 47350f6 into main Nov 29, 2026
24 checks passed
@Nishith
Nishith deleted the fix/first-run-followups branch November 29, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant