Continue row: only manga with something left after the last chapter read
GET /api/library returns `left` per manga: chapters after the newest saved position that are unfinished, unread, or were last read more than 7 days before it (a reread from the start). The continue row lists manga with left > 0, so caught-up series drop out until a new chapter arrives. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dddf9bb4ac
commit
9b529d7709
5 files changed
+110
-6
No files matched your search
+3
-2
@@ -55,8 +55,9 @@
|
||||
h('option', { value: 'grouped' }, 'Group collections'), h('option', { value: 'expanded' }, 'Expand collections'), h('option', { value: 'individual' }, 'Individual manga'));
|
||||
grouping.value = ['grouped', 'expanded', 'individual'].includes(store.get('grouping')) ? store.get('grouping') : 'grouped';
|
||||
grouping.onchange = render;
|
||||
// Started but unfinished manga, most recently read first; the same manga still appear in the grid.
|
||||
const continueItems = data.mangas.filter(m => m.lastRead && m.read < m.chapters)
|
||||
// Started manga with chapters left after the last one read (first read or reread, server `left`),
|
||||
// most recently read first; the same manga still appear in the grid.
|
||||
const continueItems = data.mangas.filter(m => m.lastRead && m.left > 0)
|
||||
.sort((a, b) => b.lastRead - a.lastRead).slice(0, 5);
|
||||
const continueRow = h('section', { class: 'continue-row', 'aria-label': 'Continue where you left off', hidden: true },
|
||||
h('div', { class: 'continue-banner' }, h('span', { 'aria-hidden': 'true' }, '▶'), 'Continue where you left off'),
|
||||
|
||||
Reference in new issue
Block a user