Skip to content

feat: add book status field (implements #20)#78

Open
alxndr13 wants to merge 2 commits intoGeorgeSG:masterfrom
alxndr13:add-status-field
Open

feat: add book status field (implements #20)#78
alxndr13 wants to merge 2 commits intoGeorgeSG:masterfrom
alxndr13:add-status-field

Conversation

@alxndr13
Copy link
Copy Markdown

@alxndr13 alxndr13 commented Dec 23, 2025

implements: #20

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

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

image image

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 alxndr13 changed the title feat: add book status field feat: add book status field (implements #20) Dec 23, 2025
- 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
@GeorgeSG
Copy link
Copy Markdown
Owner

GeorgeSG commented Jan 3, 2026

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.

@GeorgeSG
Copy link
Copy Markdown
Owner

Hey @alxndr13, there are some conflicts after the changes from #79. It would be awesome if you have some time to resolve the conflicts. If not, I can do it whenever I get the chance. Thank you! 🙏

local const = {}

const.VERSION = "0.1.0"
const.VERSION = "0.2.0"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will need to be bumped once again to 0.3.0

return icon;
}

export function ReadingIcon({ size = 16, withTooltip = true }: StatusIconProps): JSX.Element {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use icons from @tabler/icons-react?

@alxndr13
Copy link
Copy Markdown
Author

Hey @alxndr13, there are some conflicts after the changes from #79. It would be awesome if you have some time to resolve the conflicts. If not, I can do it whenever I get the chance. Thank you! 🙏

Sure, i will take care tomorrow 👌🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants