From eb6a1ff3ef6218ca37ffff13a4e6d31e8486746e Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 8 Oct 2026 16:54:19 -0400 Subject: [PATCH] Web: Activity loads older events as you scroll, no Show older button Preference 172. ScrollSentinel watches the end of a cursor-paged list and asks for the next page a screen early. It asks once per cursor, keeps going when a page lands without pushing the end off screen, and stops on a failure until Try again (an observer re-firing on a failure is a request loop). A failed older page now gets its own error beside the retry, instead of replacing the list's load error. Adapted from fabledstash's ScrollSentinel (snippet 3760). Co-Authored-By: Claude Opus 5.5 --- frontend/src/components/ActivityList.vue | 30 ++++--- .../src/components/ScrollSentinel.test.ts | 85 +++++++++++++++++++ frontend/src/components/ScrollSentinel.vue | 76 +++++++++++++++++ 3 files changed, 177 insertions(+), 14 deletions(-) create mode 100644 frontend/src/components/ScrollSentinel.test.ts create mode 100644 frontend/src/components/ScrollSentinel.vue diff --git a/frontend/src/components/ActivityList.vue b/frontend/src/components/ActivityList.vue index adf34f4..d9b505e 100644 --- a/frontend/src/components/ActivityList.vue +++ b/frontend/src/components/ActivityList.vue @@ -1,9 +1,10 @@ + +