main
|
Last change
on this file since cb3001e was 1485933, checked in by Robin <roboburr@…>, 7 weeks ago |
|
Feature: Load more on Messages, page 72 (klonkt-demo-r9u, slice 2/4)
Messages now pages in 72s with the shared Load-more button instead of a
hard 80-item cap. getMessages gains an offset arg and pages the merged,
grouped stream by recomputing top-down and slicing [offset, offset+72]
(stable across pages); getNotifications' per-source caps scale with the
requested limit so deep paging can reach older items. The item markup
moved to partials/msg-item.ejs so the page and the append fragment
render identically. The client-side filter/search re-indexes appended
rows on htmx:afterSettle and re-applies the active chip, so search keeps
working across pages. Seen-watermark is only stamped on the first page,
not on appends.
Tests: getMessages offset paging (no overlap, PAGE+1 probe). Browser:
72 -> 144 -> 150 then the button drops; searching a term only present on
page 2 matches after append.
Co-Authored-By: Claude Opus 4.8 <noreply@…>
|
-
Property mode
set to
100644
|
|
File size:
243 bytes
|
| Line | |
|---|
| 1 | <% items.forEach(function(n){ %><%- include('msg-item', { n: n, seen: seen }) %><% }); %>
|
|---|
| 2 | <%- include('load-more', { hasMore: hasMore, nextOffset: nextOffset, moreBase: moreBase, moreTarget: '#msg-list', morePath: '/messages', oob: true }) %>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.