feat: add book status field (implements #20) - #78
Open
alxndr13 wants to merge 3 commits into
Open
Conversation
Add status field to books (complete, reading, abandoned, on_hold) with: - Database migration to add status column - API endpoint to update book status - UI components for status display and editing - Status badges in book cards and table views - KOReader plugin updates for status sync
alxndr13
force-pushed
the
add-status-field
branch
from
December 23, 2025 16:47
12f5cb5 to
80bfee4
Compare
- Fix "successfull" typo in server upload response - Increase HTTP timeout to 60 seconds for slow uploads - Add retry logic with exponential backoff (3 retries: 1s, 2s, 4s) - Fix database connection leaks with pcall cleanup pattern - Fix undefined `message` variable in auto-sync error handler - Fix unsafe error message construction in call_api - Make get_md5_by_id a local function
Collaborator
|
Hey @alxndr13, thank you for working on this! I'm going to try and check out the changes, try it out and get this merged or leave comments in the following days. |
Collaborator
GeorgeSG
reviewed
Jan 11, 2026
| local const = {} | ||
|
|
||
| const.VERSION = "0.1.0" | ||
| const.VERSION = "0.2.0" |
Collaborator
There was a problem hiding this comment.
this will need to be bumped once again to 0.3.0
| return icon; | ||
| } | ||
|
|
||
| export function ReadingIcon({ size = 16, withTooltip = true }: StatusIconProps): JSX.Element { |
Collaborator
There was a problem hiding this comment.
Can we use icons from @tabler/icons-react?
Author
|
Any update on this? |
Resolve conflicts from upstream changes (notably Ko-Insight#79 sync-highlights): - open-ai-service.ts: take upstream's json_object + safeJsonParse rewrite (supersedes the branch's Zod-removal workaround) - koplugin-router.ts: adopt upstream annotation/device upload signature; bump REQUIRED_PLUGIN_VERSION to 0.3.0 - book.ts: keep status field alongside upstream's optional read-time fields - db_reader.lua: combine pcall robustness with upstream live page count and flush_statistics_to_db - upload.lua: send book statuses and annotations together - book-card.tsx: merge status menu with cover selector - const.lua: bump plugin version to 0.3.0 Address review comments: - bump plugin version to 0.3.0 (const.lua) - status-icons.tsx: use @tabler/icons-react instead of inline SVGs
Author
|
@GeorgeSG rebased, fixed your comments and resolved the conflicts :) |
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.
implements: #20
Add status field to books (complete, reading, abandoned, on_hold) with:
tested it in the emulator with the quickstart document, worked :)
regarding the changes in the open-ai file, i needed to make those, server wouldn't start otherwise 馃槶
i basically just removed the Zod-based structured output parsing that was breaking the app and replaced it with standard JSON mode.
Screenshots