From a86de5cbf4f70e80e32fcd359d2a40d0b942e201 Mon Sep 17 00:00:00 2001 From: timmy Date: Thu, 6 Aug 2026 23:30:32 +0000 Subject: [PATCH] feat: paginate unread updates inbox (#147) --- frontend/index.html | 72 +++++++++++++++++++++-- frontend/my-work.js | 41 +++++++++++++ src/gitea_proxy.py | 26 +++++++- src/main.py | 40 ++++++++++++- tests/test_api_paths.py | 1 + tests/test_gitea_notifications.py | 60 +++++++++++++------ tests/test_live_snapshot.py | 10 +++- tests/test_my_work.py | 98 ++++++++++++++++++++++++++++++- tests/test_notification_pages.py | 33 +++++++++++ 9 files changed, 350 insertions(+), 31 deletions(-) create mode 100644 tests/test_notification_pages.py diff --git a/frontend/index.html b/frontend/index.html index e392e87..e8989bc 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -66,6 +66,8 @@ textarea { resize: vertical; min-height: 120px; } .my-work-card:hover { border-color:var(--accent); } .my-work-card-title { display:block; margin:5px 0; font-weight:650; } .mark-update-read { min-height:44px; width:100%; } +.load-more-notifications { min-height:44px; width:100%; margin-top:10px; } +.load-more-notifications[hidden] { display:none; } .my-work-bulk { position:sticky; bottom:0; z-index:4; margin:10px -4px -12px; padding:10px 4px; padding-bottom:calc(10px + env(safe-area-inset-bottom)); background:rgba(11,21,38,.98); border-top:1px solid #2a496e; } .my-work-bulk button { min-height:44px; width:100%; } .my-work[data-stale="true"] { border-color:#fcd34d; } @@ -141,6 +143,8 @@ textarea { resize: vertical; min-height: 120px; }
+
+