Library stacks above stable entries (#36)

Draft
TE
2mo ago
+2487-194

Implements #36 on top of Quarry #78 / #67.

  • keeps every wallpaper as an independent stable Entry.id
  • adds explicit Source-scoped groupID and ordered user stacks with optional remembered representative
  • persists stack relationships in Quarry SQLite; no new sidecar store
  • versions the additions as SQLite schema v2 and upgrades an already-selected #78 schema-v1 catalog in place before stack reads/writes
  • reconciliation preserves group/user state through stable IDs and explicit removal cleans memberships
  • Library defaults to compact stack cards with a persistent Flat toggle
  • stack cards carry exactly one representative entry, so virtualization requests one thumbnail per stack
  • search picks the best matching available child as the transient representative
  • opening a stack exposes its matching children while the query remains active
  • user stacks can be created explicitly from existing series / character / tag metadata and can remember a representative
  • ordinary collections remain concrete ordered entry IDs

Validation on macOS 15 arm64 / Xcode 16.4:

  • bash test.sh passed, including new stack + SQLite round-trip coverage, schema-v1 → v2 upgrade coverage, and all existing Library/reconciliation/gallery suites
  • swift build --product IdlesseApp passed

šŸ“š Curator