mirror of
https://github.com/dergigi/boris.git
synced 2025-12-29 04:24:34 +01:00
feat: change 'To read' filter to show 0-10% progress
- Update 'to-read' filter range from 0-5% to 0-10% - Update 'reading' filter to start at 10% instead of 5% - Adjust filter comments to reflect new ranges
This commit is contained in:
@@ -117,11 +117,11 @@ export const BookmarkList: React.FC<BookmarkListProps> = ({
|
||||
|
||||
switch (readingProgressFilter) {
|
||||
case 'to-read':
|
||||
// 0-5% reading progress (has tracking data)
|
||||
return position !== undefined && position >= 0 && position <= 0.05
|
||||
// 0-10% reading progress (has tracking data)
|
||||
return position !== undefined && position >= 0 && position <= 0.10
|
||||
case 'reading':
|
||||
// Has some progress but not completed (5% < position < 95%)
|
||||
return position !== undefined && position > 0.05 && position < 0.95
|
||||
// Has some progress but not completed (10% < position < 95%)
|
||||
return position !== undefined && position > 0.10 && position < 0.95
|
||||
case 'completed':
|
||||
// 95% or more read
|
||||
return position !== undefined && position >= 0.95
|
||||
|
||||
Reference in New Issue
Block a user