feat(stats): add v1 immersion stats dashboard (#19)

This commit is contained in:
2026-03-20 02:43:28 -07:00
committed by GitHub
parent 42abdd1268
commit 6749ff843c
555 changed files with 46356 additions and 2553 deletions
@@ -0,0 +1,27 @@
export function handleCharacterDictionaryAutoSyncComplete(
completion: {
mediaId: number;
mediaTitle: string;
changed: boolean;
},
deps: {
hasParserWindow: () => boolean;
clearParserCaches: () => void;
invalidateTokenizationCache: () => void;
refreshSubtitlePrefetch: () => void;
refreshCurrentSubtitle: () => void;
logInfo: (message: string) => void;
},
): void {
if (completion.changed) {
if (deps.hasParserWindow()) {
deps.clearParserCaches();
}
deps.invalidateTokenizationCache();
deps.refreshSubtitlePrefetch();
deps.refreshCurrentSubtitle();
}
deps.logInfo(
`[dictionary:auto-sync] refreshed current subtitle after sync (AniList ${completion.mediaId}, changed=${completion.changed ? 'yes' : 'no'}, title=${completion.mediaTitle})`,
);
}