tane/packages/commons_core/lib/src
vjrj f17ae7751c perf(market): paginate Nostr offer discovery, infinite scroll, memory cap
Bound market memory and let large areas page instead of loading everything:
- DiscoveryQuery gains an until cursor; OfferTransport gains discoverPage()
  (one-shot, EOSE-bounded, newest-first) alongside the existing live discover()
  stream, which now accepts since so it only carries NEW offers going forward.
- NostrOfferTransport.discoverPage sorts by created_at desc and derives the
  next cursor from the oldest event seen (not the oldest type-matched one, so
  filtering never skips a page).
- OffersCubit: discover() fetches the first page + opens a since=now live sub;
  loadNextPage() pages further back; the in-memory list is capped at 400
  offers (each can carry a ~40KB inline photo thumbnail, so unbounded growth in
  a busy area was a real OOM risk).
- market_screen: infinite scroll via a scroll-position trigger + footer
  spinner, instead of a single unbounded ListView.
- Added discoverPage unit tests (commons_core) and cubit pagination tests
  (first page/cursor, accumulation, cap, cross-page dedup).
2026-07-20 22:53:48 +02:00
..
clock feat(block1): inventory walking skeleton + first quick-add slice 2026-07-07 15:16:14 +02:00
crypto refactor(branding): rename app Tanemaki → Tane 2026-07-12 13:04:16 +02:00
identity feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
ids feat(block1): inventory walking skeleton + first quick-add slice 2026-07-07 15:16:14 +02:00
social perf(market): paginate Nostr offer discovery, infinite scroll, memory cap 2026-07-20 22:53:48 +02:00
value feat(db): lot presentation + attachment sort order (schema v4→v5) 2026-07-09 11:51:21 +02:00