Open
Conversation
Add support for syncing and displaying book highlights from KOReader devices in the Kompanion web UI. ## Features - Highlight sync API endpoint: POST /api/v1/sync/highlight - Web UI highlights section on book detail page - Highlights sorted by page number - Graceful error handling with empty states ## Implementation - Add highlight entity and repository layer - Implement batch upsert with SHA-256 text deduplication - Add ListHighlights repository method with page sorting - Wire highlight repository to web controller - Add formatTime template function - Create highlights section in book.html template - Style highlights with CSS (card, text, note, meta) ## Database - Migration: migrations/20260326_highlight.up.sql - Table: sync_highlight with composite PK (koreader_partial_md5, text_hash) ## API Compatibility Compatible with existing KOReader Kompanion plugin (no changes required) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Full cycle test for highlight sync feature: - Upload book to library - Sync highlights via API - Verify highlights display on book detail page - Test deduplication on re-sync - Test empty state for books without highlights - Test auth requirements Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The integration tests were missing the testing package import, causing compilation errors when running via docker-compose. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add kompanion.koplugin for KOReader that allows syncing book highlights to the Kompanion server. The plugin provides: - Setup dialog for server URL and device credentials - Manual highlight sync triggered from KOReader menu - Support for highlight text, notes, page, chapter, and color Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Isolate highlight listing from repository by introducing HighlightList use case, similar to HighlightSync for API layer. This follows the existing architecture pattern where controllers use use cases rather than repositories directly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.