diff options
| author | Christian Cleberg <[email protected]> | 2026-07-25 00:10:46 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-07-25 00:11:47 -0500 |
| commit | 321a10f85435fdcbfb54f109ee53df895a550a42 (patch) | |
| tree | e8931efbad04ca639329d19c3417c82ccdc49cad /DomainDig/CloudSyncService.swift | |
| parent | 9092ab60f82152cc4ae38677c3af4a76013f4e54 (diff) | |
| download | domain-dig-321a10f85435fdcbfb54f109ee53df895a550a42.tar.gz domain-dig-321a10f85435fdcbfb54f109ee53df895a550a42.tar.bz2 domain-dig-321a10f85435fdcbfb54f109ee53df895a550a42.zip | |
refactor: extract history query surface into DomainViewModel+History (v5 step 4, 5/n)
Fifth slice of the DomainViewModel decomposition.
- Moves the history query/compare surface into DomainViewModel+History.swift:
per-domain snapshot reads (historyEntries/historyEntry/previousHistoryEntry),
timeline grouping (timelineEntries/timelineSections), the two-snapshot
selection model (toggle/clear/selectedSnapshots), diff generation and
navigation (generateDiff*/moveTo*DiffChange/currentDiffTargetSectionID), and
the resolver-mismatch notes. Pure move.
- The inspection *pipeline* that produces history — performLookup,
applySnapshot, saveHistoryEntry, persistHistory, snapshot-metadata bookkeeping
— stays on the main type with the inspection code.
This slice needs zero visibility changes: every dependency (the history array,
diff state, latestSnapshot) was already internal. The main-file diff is pure
deletion.
DomainViewModel.swift: 4306 -> 4171 lines (4864 at the start of step 4; -693
total). App builds clean; unit suite 58/58. No project.pbxproj change.
Diffstat (limited to 'DomainDig/CloudSyncService.swift')
0 files changed, 0 insertions, 0 deletions
