mirror of
https://github.com/dergigi/boris.git
synced 2025-12-22 09:04:27 +01:00
fix: update 'To Read' filter to show 0-5% progress articles
- Filter now shows articles with 0-5% reading progress - Excludes manually marked as read articles (those without position data) - Updates comment to reflect new logic
This commit is contained in:
@@ -251,8 +251,8 @@ const Me: React.FC<MeProps> = ({ relayPool, activeTab: propActiveTab, pubkey: pr
|
||||
|
||||
switch (archiveFilter) {
|
||||
case 'to-read':
|
||||
// No position or 0% progress
|
||||
return !position || position === 0
|
||||
// 0-5% reading progress (has tracking data, not manually marked)
|
||||
return position !== undefined && position >= 0 && position <= 0.05
|
||||
case 'reading':
|
||||
// Has some progress but not completed (0 < position < 1)
|
||||
return position !== undefined && position > 0 && position < 0.95
|
||||
|
||||
Reference in New Issue
Block a user