Commit Graph
8 Commits
Author SHA1 Message Date
Laan Tungir 7da3b7047c Remove debug logging from notifications menu 2026-07-01 17:30:39 -04:00
Laan Tungir 360a4d83db Add debug logging for notification menu items 2026-07-01 16:54:24 -04:00
Laan Tungir 9400508f3e Fix notifications: keep interaction bar detached so only dropdown menu shows 2026-07-01 16:50:21 -04:00
Laan Tungir 7edee38ea1 Add Like/Zap/Nutzap/Comment/Quote to notification dropdown menu via hidden interaction bar 2026-07-01 15:56:16 -04:00
Laan Tungir 1a17bef1ac Implement Phase 1 remaining tasks: notifications append-only, listener leak fix, memory caps
Task 1.2: Append-only rendering for notifications page
- Extracted buildNotificationRow(item) helper from renderNotifications()
- Added prependNotificationRow(item) with sorted insertion by created_at
- addNotificationFromEvent uses prepend when DOM has children

Task 1.3: Fix notification document.click listener leak
- Removed per-row document.addEventListener('click') that leaked on every render
- Added single delegated click listener in main() using .notif-menu-panel class
- Menu panels still close when clicking outside .notif-right

Task 1.4: Cap posts[] and postIds with rolling eviction
- Added MAX_STORED_POSTS=500 constant to feed.html and post.html
- Added prunePostsArray() that sorts, slices, rebuilds postIds/renderedPostIds
- Called in upsertFeedPost/upsertPost with +50 batch threshold
- post.html skips pruning in event mode

Task 1.5: Cap notificationsById/unreadNotificationsById with periodic pruning
- Added MAX_STORED_NOTIFICATIONS=500, MAX_POST_IMAGE_CACHE=200
- Added pruneNotificationMaps() that prunes both Maps and LRU-caps postImageCache
- Called in addNotificationFromEvent, hydrateNotificationsFromCache/Relays

Updated plan checklist marking all Phase 1 tasks complete.
2026-07-01 09:33:29 -04:00
Laan Tungir e943870d77 Port projects page functionality into template with public/no-login mode and project-native styling 2026-05-28 14:44:00 -04:00
Laan Tungir 9c85c8ec5e Vendor CDN scripts locally for FIPS HTTP compatibility 2026-04-19 13:37:32 -04:00
Laan Tungir a8bbbbafb9 rename to client 2026-04-17 16:52:51 -04:00