fix(koreader): trigger hardcover auto-sync on progress update

KOReader progress updates were updating the database but failing to
emit the progress changed event, causing Hardcover auto-sync to be
skipped. This change adds the missing event emission to the KOReader
service so that external syncs trigger correctly, and patches a query
filter issue in the Hardcover repository.

Closes #258
This commit is contained in:
neon
2026-06-06 18:01:45 +00:00
parent 04a4fdd0eb
commit feec3c794a
35 changed files with 11463 additions and 384 deletions
+4 -4
View File
@@ -1,6 +1,10 @@
export type HardcoverSyncDisabledReason = "permission_denied" | "missing_token" | "user_disabled";
export interface HardcoverSettings {
tokenConfigured: boolean;
enabled: boolean;
effectiveEnabled: boolean;
disabledReason: HardcoverSyncDisabledReason | null;
autoSyncOnStatusChange: boolean;
autoSyncOnProgressUpdate: boolean;
autoSyncOnRatingChange: boolean;
@@ -8,10 +12,6 @@ export interface HardcoverSettings {
lastSyncedAt: string | null;
}
export interface HardcoverAdminSettings {
featureEnabled: boolean;
}
export interface UpsertHardcoverSettingsPayload {
apiToken?: string;
enabled?: boolean;