Feature: Sync reading progress from Kobo in-built reader (#1541)

* feat: add kobo reading progress sync

* fix: remove old variable references

* fix: avoid changing koreader behaviour

* fix: resolve typo in koreader progress

* fix: remove link between booklore progress and kobo sync progress

* feat: add unit tests for kobo reading status sync

* fix: remove unnecessary conversion value for kobo progress

* fix: resolve issue with kobo_progress beiong optional in template

* fix: update entitlement to provide existing reading progress back to kobo on sync

* fix: use stored bookmark before creating new bookmark

* fix: update default thresholds to full numbers. kobo doesn't report progress with any decimal places

* chore: update unit tests

* fix: remove decimal places in kobo settings progress threshold
This commit is contained in:
CounterClops
2025-11-21 00:17:57 -07:00
committed by GitHub
parent 9eb0dabd5e
commit 7ebdc7b106
20 changed files with 937 additions and 9 deletions
@@ -364,6 +364,28 @@
</span>
</p>
}
@if (book?.koboProgress && book.koboProgress?.percentage != null) {
<p class="whitespace-nowrap flex items-center">
<span class="font-bold mr-2">Kobo Progress:</span>
<span class="inline-flex items-center">
<app-tag size="3xs" variant="pill" [color]="getKoProgressColor(book.koboProgress?.percentage)">
{{ book.koboProgress?.percentage | number:'1.0-1' }}%
</app-tag>
@if (book.koboProgress?.percentage !== null) {
<p-button
pTooltip="Reset progress"
tooltipPosition="bottom"
icon="pi pi-refresh"
size="small"
severity="danger"
text
class="ml-1 custom-button-padding"
(onClick)="resetProgress(book, ResetProgressTypes.KOBO)">
</p-button>
}
</span>
</p>
}
@if (selectedReadStatus === ReadStatus.READ) {
<div>
@if (book?.dateFinished) {