Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a09eca6
FRX WP-00: plan folder
Nishith Nov 29, 2026
aa56f84
FRX WP-00: supersede first-ten-minutes
Nishith Nov 29, 2026
f5f8d80
FRX WP-00: baseline
Nishith Nov 29, 2026
fb09f36
FRX WP-01: Render evidence harness
Nishith Nov 29, 2026
682f714
FRX WP-02: Core: accounting, free month, model fields
Nishith Nov 29, 2026
c1dee6f
FRX WP-03: AppCore: engine, offer, unlock presentation
Nishith Nov 29, 2026
5a0dc9d
FRX WP-04: App: preview shows the free limit and the free month
Nishith Nov 29, 2026
44ce018
FRX WP-05: App: accounted-for line, Undo, add another folder
Nishith Nov 29, 2026
1268aaf
FRX WP-06: strings and docs
Nishith Nov 29, 2026
f461bfe
FRX G1: gate
Nishith Nov 29, 2026
ef6dc69
FRX WP-10: Branch and baseline, M2
Nishith Nov 29, 2026
f559362
FRX WP-11: Core: review lane and free removal batch
Nishith Nov 29, 2026
89b21a8
FRX WP-12: AppCore: store lanes, accept by lane, free batch plan
Nishith Nov 29, 2026
e321445
FRX WP-13: App: three lanes, Quick Review scope, footer, free removal
Nishith Nov 29, 2026
b4a1774
FRX WP-14: strings and docs
Nishith Nov 29, 2026
0351db6
FRX G2: gate
Nishith Nov 29, 2026
6f91c90
FRX WP-20: Branch and baseline, M3
Nishith Nov 29, 2026
b2d8704
FRX WP-21: Core and AppCore groundwork
Nishith Nov 29, 2026
f3192d2
FRX WP-22: App: guided setup
Nishith Nov 29, 2026
db99994
FRX WP-23: App: photos and the folder picture on the preview
Nishith Nov 29, 2026
31ecb8e
FRX WP-24: strings and docs
Nishith Nov 29, 2026
5fc0878
FRX G3: final gate
Nishith Nov 29, 2026
d2f5381
FRX G3: record the gate commit
Nishith Nov 29, 2026
2f8954f
Dedupe planner: a skipped group's members stay (INV-32)
Nishith Nov 29, 2026
bffbb27
Merge fix/dedupe-planner-rail-protects-fanout into feature/first-run-…
Nishith Nov 29, 2026
e08f408
FRX: record owner confirmations and the B-1 fix; docs state the skip …
Nishith Nov 29, 2026
6c1edea
Merge feature/first-run-duplicates into feature/first-run-guided
Nishith Nov 29, 2026
3ca0e25
FRX: free-batch test premises follow INV-32
Nishith Nov 29, 2026
83c764e
Merge feature/first-run-duplicates into feature/first-run-guided
Nishith Nov 29, 2026
ae98f04
First run: unconfirmed purchases get no spent-trial UI; a requested m…
Nishith Nov 29, 2026
3f126b0
Merge feature/first-run-trust into feature/first-run-duplicates
Nishith Nov 29, 2026
2160346
First run: free removal resumes a paused review; menu Quick Review re…
Nishith Nov 29, 2026
32f97da
Merge feature/first-run-duplicates into feature/first-run-guided
Nishith Nov 29, 2026
bb92f3a
First run: Details disclosure keeps its children's identifiers
Nishith Nov 29, 2026
8da1fab
Dedupe: accepting a lane keeps pair keep-overrides (#301)
Nishith Nov 29, 2026
c297e6b
Dedupe review: footer, waiting line and lane fixes (#302)
Nishith Nov 29, 2026
11766ac
Guided setup: free-space reset, menu add, picker prompt, panel guard …
Nishith Nov 29, 2026
b2ea6a1
First-run copy: unbalanced preview line, plain wording, leftover name…
Nishith Nov 29, 2026
af61038
Dedupe: accepting a group's suggestions keeps pair keep-overrides (#301)
Nishith Nov 29, 2026
6de6ec5
First-run copy: finished line direction, remaining leftover names (#304)
Nishith Nov 29, 2026
afc8396
First-run test debt: fixtures, timeline test, unused code (#305)
Nishith Nov 29, 2026
e8870aa
First run: the whole Details row opens the disclosure
Nishith Nov 29, 2026
d13e5d2
Merge feature/first-run-guided into fix/first-run-followups (#305)
Nishith Nov 29, 2026
c8de4b8
UI tests: timeline test reads the selected month from the drawer (#305)
Nishith Nov 29, 2026
cd05691
UI tests: Accept Identical Copies is checked against what the fixture…
Nishith Nov 29, 2026
89162a7
A11y baseline: drop entries the audit no longer reports (#305)
Nishith Nov 29, 2026
7fc28bb
Merge main into fix/first-run-followups
Nishith Nov 29, 2026
28f00a0
UI tests: bring the Details disclosure on screen before clicking it (…
Nishith Nov 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ When you open Chronoframe with nothing set up, **Choose Folders** asks two quest
1. Open **Organize → Choose Folders**.
2. Click **Add Folders…** and pick the folders with your unsorted photos and videos.
3. Click **Choose Destination…** and pick where organized copies should go.
4. Click **Preview Plan**. Chronoframe scans the source, resolves dates, and builds a transfer plan. While it works, the screen says Chronoframe is only reading and nothing is copied yet. A new install organizes into **Year / Month** folders by default; if Chronoframe finds folders saved from earlier use, the default stays **Year / Month / Day**, and a layout you chose is never changed.
4. Click **Preview Plan**. Chronoframe scans the source, resolves dates, and builds a transfer plan. While it works, the screen says your originals are never changed and nothing is copied yet. A new install organizes into **Year / Month** folders by default; if Chronoframe finds folders saved from earlier use, the default stays **Year / Month / Day**, and a layout you chose is never changed.

![Preview Ready for Review — a timeline of the library by month, with discovered, planned, and issue counts.](docs/screenshots/preview-timeline.jpg)

Expand Down
2 changes: 1 addition & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A: Yes. Open **Organize** → **History** and click **Undo** next to the copy yo

**Q: How do I know what Chronoframe will copy?**

A: **Preview Plan** shows the exact plan before anything is copied. You can review the plan and edit uncertain dates in the **Review** tab on the **Preview & Copy** screen. **Start Copying** uses the same plan you approved. The first line of the **What will happen** card also says whether every photo and video Chronoframe found is listed below. If the numbers do not add up, it says how many do not add up and asks you to rebuild the preview before copying. While the preview is being built, the screen says Chronoframe is only reading and nothing is copied yet. When it is ready, the newest month is selected so a sample from that month is on screen, and **How your library will be arranged** shows the newest folders the copy will make and how many new files each gets.
A: **Preview Plan** shows the exact plan before anything is copied. You can review the plan and edit uncertain dates in the **Review** tab on the **Preview & Copy** screen. **Start Copying** uses the same plan you approved. The first line of the **What will happen** card also says whether every photo and video Chronoframe found is listed below. If the numbers do not add up, it says how many do not add up and asks you to rebuild the preview before copying. While the preview is being built, the screen says your originals are never changed and nothing is copied yet. When it is ready, the newest month is selected so a sample from that month is on screen, and **How your library will be arranged** shows the newest folders the copy will make and how many new files each gets.

---

Expand Down
6 changes: 3 additions & 3 deletions docs/QUICK_START.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ When you open Chronoframe with nothing set up, **Choose Folders** asks two quest
### Step 2: Preview Your Plan

5. Click **Preview Plan**
- Chronoframe scans your folders, resolves dates, and builds a plan — nothing is copied yet. While it works, the screen says Chronoframe is only reading, and you can keep using your Mac
- Chronoframe scans your folders, resolves dates, and builds a plan — nothing is copied yet. While it works, the screen says your originals are never changed, and you can keep using your Mac
- This takes 10–60 seconds depending on your library size
6. When it finishes, **Preview & Copy** shows the plan: a headline saying how many photos and videos will be copied, a **What will happen** card that lists anything unusual, a timeline of your library, and counts for what was found, what will be copied, what is already there, exact copies, and problems
- The first line of the **What will happen** card says whether every photo and video Chronoframe found is listed below. If the numbers do not add up, the line says how many do not add up and asks you to rebuild the preview before copying
- The newest month is selected in the timeline, so a sample from that month is on screen when the preview opens. Select another month to see a sample from it
- **How your library will be arranged** shows the newest folders the copy will make and how many new files each gets, in three layouts: **Year / Month**, **Year / Month / Day** (a line notes each day gets its own folder) and **Year**. Click a layout to use it. Chronoframe rebuilds the preview, and nothing is copied. While a copy or Deduplicate is running, or when the preview cannot be rebuilt, the layouts cannot be changed. If the preview came from a watched folder or the Apple Photos app, or you use **Year / Month / Event** or **One folder**, it shows your layout on one line instead, and you change it in **Settings**. Under it: "You can change this later with Reorganize, which needs the unlock."
- **Details** is closed on a ready preview. Open it for the **Status** card and **Reports and Logs**, with buttons to open the destination and the preview report
- **Status, reports and logs** is closed on a ready preview. Open it for the **Status** card and **Reports and Logs**, with buttons to open the destination and the preview report

### Step 3: Review (Optional)

Expand Down Expand Up @@ -138,7 +138,7 @@ After a free removal, the choices you made for the groups still waiting are save
- **Edit uncertain dates.** If a photo has an unknown date, fix it in Review and Chronoframe will use your correction.
- **Review duplicate groups carefully.** Exact copies are straightforward, but similar shots still need your judgment.
- **Keep destination support files during recovery.** Do not remove `.organize_cache.db` or `.organize_logs/` while a copy is active or History shows interrupted work.
- **Don't delete your originals yet.** Keep them for a few days to make sure everything looks right.
- **Chronoframe never deletes or changes your originals.** Copying leaves them where they are, so whether to keep them afterwards is your decision. Check the organized library first if you want to be sure everything looks right.
- **Keyboard shortcuts** (once you're comfortable):
- `Cmd+R` to preview
- `Cmd+Return` to start copying
Expand Down
6 changes: 3 additions & 3 deletions docs/SAFETY_AND_RECOVERY.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ important library, especially before a large first run or filesystem migration.
planned files were not copied, it says how many, that your originals were not
changed, and points to Problems. After a free copy it says how many are waiting
for the next copy. The line counts files; it never changes a file.
- **While the preview is built.** The screen says Chronoframe is only reading
and nothing is copied yet. Building a preview never changes your source
folders, and nothing is copied. It writes only its own report, log, review data and cache in the destination.
- **While the preview is built.** The screen says your originals are never
changed and nothing is copied yet. Building a preview never changes your
source folders, and nothing is copied. It writes only its own report, log, review data and cache in the destination.
- **First-time setup and free space.** The two-question first-time setup
measures the folder you chose by listing it and reading file attributes. It
never opens, changes or follows anything: it counts regular files, and skips
Expand Down
5 changes: 3 additions & 2 deletions ui/Sources/ChronoframeApp/App/DesignTokens.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ enum DesignTokens {
/// grows with Dynamic Type; the review body is sized from what is left.
static let compactLanesBarMinHeight: CGFloat = 26
/// Review heights below this show the commit footer's safeguards as one
/// line. The default 820pt window stays above it.
static let condensedTrustSummaryBelowHeight: CGFloat = 720
/// line. The default 820pt window (about 768pt of review area) is below
/// it: with the cards the group list was left about three rows tall.
static let condensedTrustSummaryBelowHeight: CGFloat = 780
/// Same rule in the compact (stacked) layout, where the group list also
/// takes 32% of the height: with cards the preview stays under
/// `compactPreviewMinHeight` until the review area is about 780pt tall.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,28 +483,61 @@ enum UITestAppStateFactory {
)
}

/// One month of the over-allowance plan: new files, and extra copies of files
/// already in the plan. The month's histogram bar is the two together; the
/// free-month card counts only the new ones (FRX C-08).
private struct OverAllowanceMonth {
let key: String
let newFiles: Int
let extraCopies: Int
}

/// 14 months ending 2026-10. Every figure on the preview comes from this one
/// table, so the Timeline header, the selected month and the free-month card
/// cannot disagree: 17,208 new files plus 1,204 extra copies is the plan's
/// 18,412. The newest three months have no extra copies, so for them the bar
/// and the card read the same number.
private static let overAllowanceMonths: [OverAllowanceMonth] = [
OverAllowanceMonth(key: "2025-09", newFiles: 1_180, extraCopies: 90),
OverAllowanceMonth(key: "2025-10", newFiles: 1_290, extraCopies: 100),
OverAllowanceMonth(key: "2025-11", newFiles: 1_350, extraCopies: 110),
OverAllowanceMonth(key: "2025-12", newFiles: 1_520, extraCopies: 120),
OverAllowanceMonth(key: "2026-01", newFiles: 1_410, extraCopies: 105),
OverAllowanceMonth(key: "2026-02", newFiles: 1_330, extraCopies: 95),
OverAllowanceMonth(key: "2026-03", newFiles: 1_560, extraCopies: 115),
OverAllowanceMonth(key: "2026-04", newFiles: 1_620, extraCopies: 120),
OverAllowanceMonth(key: "2026-05", newFiles: 1_740, extraCopies: 130),
OverAllowanceMonth(key: "2026-06", newFiles: 1_850, extraCopies: 140),
OverAllowanceMonth(key: "2026-07", newFiles: 1_264, extraCopies: 79),
OverAllowanceMonth(key: "2026-08", newFiles: 734, extraCopies: 0),
OverAllowanceMonth(key: "2026-09", newFiles: 148, extraCopies: 0),
OverAllowanceMonth(key: "2026-10", newFiles: 212, extraCopies: 0),
]

/// The over-allowance preview: 18,475 found = 18,412 to copy + 63 already
/// there, a 14-month histogram ending 2026-10, and three months of new
/// files to offer for free (FRX C-08).
/// there, a 14-month histogram ending 2026-10, and the new files of every
/// month to offer for free (FRX C-08).
private static func overAllowanceEngine(preflight: RunPreflight, destinationPath: String) -> MockOrganizerEngine {
let months = [
"2025-09", "2025-10", "2025-11", "2025-12", "2026-01", "2026-02", "2026-03",
"2026-04", "2026-05", "2026-06", "2026-07", "2026-08", "2026-09", "2026-10",
]
let histogram = months.enumerated().map { index, key in
let months = overAllowanceMonths
let histogram = months.map { month in
DateHistogramBucket(
key: key,
plannedCount: 600 + index * 140,
samplePaths: ["/Volumes/Card/April Session/\(key)/IMG_0001.jpg"]
key: month.key,
plannedCount: month.newFiles + month.extraCopies,
samplePaths: ["/Volumes/Card/April Session/\(month.key)/IMG_0001.jpg"]
)
}
let newFiles = months.reduce(0) { $0 + $1.newFiles }
let extraCopies = months.reduce(0) { $0 + $1.extraCopies }
let alreadyThere = 63
let planned = newFiles + extraCopies
let found = planned + alreadyThere
let metrics = RunMetrics(
discoveredCount: 18_475,
plannedCount: 18_412,
alreadyInDestinationCount: 63,
duplicateCount: 1_204,
discoveredCount: found,
plannedCount: planned,
alreadyInDestinationCount: alreadyThere,
duplicateCount: extraCopies,
dateHistogram: histogram,
newFilesByMonth: ["2026-10": 212, "2026-09": 148, "2026-08": 734]
newFilesByMonth: Dictionary(uniqueKeysWithValues: months.map { ($0.key, $0.newFiles) })
)
let summary = RunSummary(
status: .dryRunFinished,
Expand All @@ -522,13 +555,13 @@ enum UITestAppStateFactory {
startMode: .events([
.startup,
.dateHistogram(buckets: histogram),
.phaseStarted(phase: .discovery, total: 18_475),
.phaseCompleted(phase: .sourceHashing, result: RunPhaseResult(found: 18_475)),
.phaseStarted(phase: .discovery, total: found),
.phaseCompleted(phase: .sourceHashing, result: RunPhaseResult(found: found)),
.phaseCompleted(
phase: .classification,
result: RunPhaseResult(newCount: 17_208, alreadyInDestinationCount: 63, duplicateCount: 1_204)
result: RunPhaseResult(newCount: newFiles, alreadyInDestinationCount: alreadyThere, duplicateCount: extraCopies)
),
.copyPlanReady(count: 18_412),
.copyPlanReady(count: planned),
.complete(summary),
])
)
Expand All @@ -550,8 +583,11 @@ enum UITestAppStateFactory {
return overAllowanceEngine(preflight: preflight, destinationPath: destinationPath)
}

// Two months, so a person (and the UI tests) can choose a month other than
// the newest one that is selected on arrival. They sum to the plan's 42.
let sampleHistogram = [
DateHistogramBucket(key: "2026-04", plannedCount: 42, samplePaths: ["/Volumes/Card/April Session/pic1.jpg"])
DateHistogramBucket(key: "2026-03", plannedCount: 18, samplePaths: ["/Volumes/Card/April Session/pic0.jpg"]),
DateHistogramBucket(key: "2026-04", plannedCount: 24, samplePaths: ["/Volumes/Card/April Session/pic1.jpg"]),
]

let reviewPath: String?
Expand Down
153 changes: 153 additions & 0 deletions ui/Sources/ChronoframeApp/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,23 @@
}
}
},
"1 more is waiting. Your choices are saved; scan again to continue." : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "1 weitere Datei wartet. Deine Auswahl ist gespeichert; scanne erneut, um fortzufahren."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "1 more is waiting. Your choices are saved; scan again to continue."
}
}
}
},
"%@ nearly identical" : {
"extractionState" : "manual",
"localizations" : {
Expand Down Expand Up @@ -3179,6 +3196,40 @@
}
}
},
"Chronoframe found %1$@, but this copy handled %2$@ more. Open History for the full record." : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Chronoframe hat %1$@ gefunden, aber diese Kopie hat %2$@ mehr verarbeitet. Öffne den Verlauf für die vollständige Aufzeichnung."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Chronoframe found %1$@, but this copy handled %2$@ more. Open History for the full record."
}
}
}
},
"Chronoframe found %1$@, but this plan lists %2$@ more. Rebuild the preview before copying." : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Chronoframe hat %1$@ gefunden, aber dieser Plan führt %2$@ mehr auf. Erstelle die Vorschau vor dem Kopieren neu."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Chronoframe found %1$@, but this plan lists %2$@ more. Rebuild the preview before copying."
}
}
}
},
"Chronoframe found %1$@, and %2$@. Rebuild the preview before copying." : {
"extractionState" : "manual",
"localizations" : {
Expand Down Expand Up @@ -3254,6 +3305,23 @@
}
}
},
"Your originals are never changed and nothing is copied yet. You can keep using your Mac." : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Deine Originale werden nie verändert, und es wird noch nichts kopiert. Du kannst deinen Mac weiterverwenden."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Your originals are never changed and nothing is copied yet. You can keep using your Mac."
}
}
}
},
"Chronoframe is only reading. Nothing is copied yet, and you can keep using your Mac." : {
"extractionState" : "manual",
"localizations" : {
Expand Down Expand Up @@ -4341,6 +4409,23 @@
}
}
},
"Status, reports and logs" : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Status, Berichte und Protokolle"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Status, reports and logs"
}
}
}
},
"Details" : {
"extractionState" : "manual",
"localizations" : {
Expand Down Expand Up @@ -14810,6 +14895,23 @@
}
}
},
"Open comparison in Quick Review" : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Vergleich in der Schnellprüfung öffnen"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Open comparison in Quick Review"
}
}
}
},
"Open comparison in Rapid Triage" : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -28660,6 +28762,57 @@
}
}
},
"Each bar is one month of files this plan is copying." : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Jeder Balken steht für einen Monat an Dateien, die dieser Plan gerade kopiert."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Each bar is one month of files this plan is copying."
}
}
}
},
"Quick Review progress" : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Fortschritt der Schnellprüfung"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Quick Review progress"
}
}
}
},
"Each bar is one month of files this plan will copy." : {
"extractionState" : "manual",
"localizations" : {
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Jeder Balken steht für einen Monat an Dateien, die dieser Plan kopiert."
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Each bar is one month of files this plan will copy."
}
}
}
},
"Every bar is a month of planned transfers waiting to land." : {
"localizations" : {
"en" : {
Expand Down
Loading
Loading