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:
Gigi
2025-10-15 22:51:40 +02:00
parent 63f58e010f
commit 6758b9678b

View File

@@ -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