feat(stats): group library seasons, movies and OVAs into franchise cards (#336)

This commit is contained in:
sudacode authored and GitHub committed 2026-11-22 21:03:23 -08:00
1 parent 9d2057cc30
commit 71251b8d7b
41 files changed
+2335 -109

No files matched your search

+5
View File
@@ -20,6 +20,11 @@ export type { SyncMergeSummary } from './shared';
* are updated incrementally so history older than the session retention
* window is preserved on both sides. Idempotent: re-merging the same
* snapshot is a no-op.
*
* A library entry's franchise override (`group_override`) is last-writer-wins
* by `group_override_updated_at`. The AniList relation cache
* (`imm_anilist_media`, `imm_anilist_relations`) is not merged: each machine
* rebuilds it from AniList.
*/
export function mergeSnapshotIntoDb(localDbPath: string, snapshotPath: string): SyncMergeSummary {
if (!fs.existsSync(localDbPath)) {