mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 23:24:22 +01:00
feat: split 'To read' filter into 'Unopened' and 'Started'
- Add 'unopened' filter (no progress, 0%) - uses fa-envelope icon - Add 'started' filter (0-10% progress) - uses fa-envelope-open icon - Remove 'to-read' filter - Use classic/regular variant for envelope icons - Update filter logic in BookmarkList and Me components - New filter ranges: - Unopened: 0% (never opened) - Started: 0-10% (opened but not read far) - Reading: 11-94% - Completed: 95-100%
This commit is contained in:
@@ -191,8 +191,11 @@ const Me: React.FC<MeProps> = ({ relayPool, activeTab: propActiveTab, pubkey: pr
|
||||
// but since these are all marked as read, we only care about the 'all' and 'completed' filters
|
||||
|
||||
switch (readingProgressFilter) {
|
||||
case 'to-read':
|
||||
// Marked articles are never "to-read"
|
||||
case 'unopened':
|
||||
// Marked articles are never "unopened"
|
||||
return false
|
||||
case 'started':
|
||||
// Marked articles are never "started"
|
||||
return false
|
||||
case 'reading':
|
||||
// Marked articles are never "in progress"
|
||||
|
||||
Reference in New Issue
Block a user