Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to sort books in library by oldest unread chapter (next unread chapter). #1444

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

meee-low
Copy link

This closes feature request #1443, posted by me a few days ago. This aims to make it easier for users to read chapters across multiple series in release order.

This involves a few additional functions for the SQL queries and the new option in the UI.

Tests

I tested that the ascending/descending order matches the already existing "last updated" order, in the case where those are the same (when the only unread chapter is the latest chapter). For titles with no unread chapters, the behavior is to default to alphabetical, like other similar sorting options.

Possible alternative

This implementation interprets "next" as "oldest unread chapter". If a user skipped chapters, that's not quite the case. However, this interpretation matches the current behavior for clicking the open book button in the library (opens to the oldest unread chapter).
An alternative approach would be to find the actual latest chapter read in the user history, then find the next chapter from there.

@meee-low
Copy link
Author

meee-low commented May 12, 2023

Hey, it's been some time. Is the project open for outside contributions like this? Is there something I can/should do to get this reviewed? I'm open for any questions.

Thank you.

@meee-low meee-low marked this pull request as draft January 28, 2024 02:14
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