fix(stats): preserve season boundaries during AniList merge resolution

- Allow manual cross-season reassignment without merging entries
- Require validated title matches for automatic merges
- Share title normalization across AniList and stats flows
This commit is contained in:
2026-08-11 23:40:27 -07:00
parent 528cc798ec
commit 23e382dff1
9 changed files with 119 additions and 24 deletions
@@ -427,7 +427,8 @@ export function updateAnimeAnilistInfo(
if (!row?.anime_id) return;
const repair = resolveAnimeAnilistConflict(db, row.anime_id, info.anilistId, {
matchConfidence: info.exactTitleMatch === false ? 'weak' : 'exact',
matchConfidence:
info.exactTitleMatch === true ? 'exact' : info.exactTitleMatch === false ? 'weak' : undefined,
});
if (repair.mergeRecommended || repair.anilistAssignmentBlocked) return;
const targetRow = db