Merge branch 'worktree-agent-abf55bbee56e6ed70' into claude/relaxed-maxwell-c10wof

# Conflicts:
#	src/i18n/locales/ar.ts
#	src/i18n/locales/de.ts
#	src/i18n/locales/en.ts
#	src/i18n/locales/es.ts
#	src/i18n/locales/fr.ts
#	src/i18n/locales/hi.ts
#	src/i18n/locales/id.ts
#	src/i18n/locales/it.ts
#	src/i18n/locales/ja.ts
#	src/i18n/locales/ko.ts
#	src/i18n/locales/nl.ts
#	src/i18n/locales/pl.ts
#	src/i18n/locales/pt.ts
#	src/i18n/locales/ru.ts
#	src/i18n/locales/th.ts
#	src/i18n/locales/tr.ts
#	src/i18n/locales/vi.ts
#	src/i18n/locales/zh.ts
#	src/lib/backup.ts
This commit is contained in:
Claude committed 2026-10-09 15:20:40 +00:00
commit 53d984af8a
30 files changed
+2472 -6

No files matched your search

+4
View File
@@ -19,6 +19,7 @@ import {
safeStringList,
} from './security'
import { normalizeText, todayISO, uid } from './utils'
import { normalizeChallenges, normalizeEpisodeLog } from './challenges'
const TYPES = new Set<string>(MEDIA_TYPES.map((t) => t.value))
const STATUS_SET = new Set<string>(STATUSES.map((s) => s.value))
@@ -130,6 +131,7 @@ export function normalizeItem(raw: unknown): MediaItem | null {
tags,
countries: safeCountries(r.countries),
rewatchDates: safeDates(r.rewatchDates),
episodeLog: normalizeEpisodeLog(r.episodeLog),
publicRating: (() => {
const n = num(r.publicRating, 0, 10)
return n ? Math.round(n * 10) / 10 : undefined
@@ -152,6 +154,8 @@ export function normalizeSettings(raw: unknown): Partial<Settings> | undefined {
for (const k of ['episodes', 'follows', 'accepted', 'reactions'] as const) if (typeof raw.notifPrefs[k] === 'boolean') np[k] = raw.notifPrefs[k] as boolean
out.notifPrefs = np
}
const challenges = normalizeChallenges(raw.challenges)
if (challenges) out.challenges = challenges
return out
}