summaryrefslogtreecommitdiff
path: root/DomainDigTests/DomainDataPortabilityServiceTests.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-07-25 00:10:46 -0500
committerChristian Cleberg <[email protected]>2026-07-25 00:11:47 -0500
commit321a10f85435fdcbfb54f109ee53df895a550a42 (patch)
treee8931efbad04ca639329d19c3417c82ccdc49cad /DomainDigTests/DomainDataPortabilityServiceTests.swift
parent9092ab60f82152cc4ae38677c3af4a76013f4e54 (diff)
downloaddomain-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 'DomainDigTests/DomainDataPortabilityServiceTests.swift')
0 files changed, 0 insertions, 0 deletions