Commit Graph

9 Commits

Author SHA1 Message Date
zyphlar f598200e24 Gate shares behind magic-link sessions, add comments and new-photo email digests 2026-10-19 15:10:57 -07:00
Alan Grainger bbb4dd1491 Tidy up overly verbose LLM comments 2026-09-17 22:08:47 +12:00
Vignan Posham 06741b47bb Keep loaded gallery thumbnails mounted to stop scroll-back flicker
The gallery virtualiser removed a tile's <a>/<img> from the DOM whenever it
left the viewport ± 1 buffer and rebuilt it from scratch on re-entry, so
scrolling back up replayed the thumbhash placeholder and opacity fade on
thumbnails that were already loaded - even for small albums where no network
fetch happens.

Track tile indices whose <img> has fired `load` in a bounded, LRU-ordered
`stickyTiles` set. virtualize() keeps those tiles in the "needed" set so
syncRendered never unmounts them; not-yet-loaded tiles still get the normal
lazy create/remove + data-src treatment, so large albums keep lazy-loading
on first scroll-into-view.

The set is trimmed to STICKY_TILE_LIMIT (1500) each pass - currently visible
tiles are bumped to most-recently-used and the oldest off-screen overflow is
released back to normal virtualisation - so a very large album (100k+ photos)
cannot accumulate unbounded mounted DOM or retained image memory as the user
scrolls. Cleared on a layout recompute since tile geometry changes there.
Also adds a fast-path skip in loadVisibleTiles() for finished loads now that
the rendered-tile map can be larger.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 01:10:23 -04:00
Alan Grainger c2fcb81807 #265 add grouping by day as well as month 2026-07-17 14:27:51 +12:00
Alan Grainger 494fbe36c7 Prepping for v3.0 release
Fetch album assets from timeline endpoint is the major change
2026-06-22 06:21:51 +12:00
Alan Grainger d057e23a32 Move icons to separate file 2026-06-04 11:15:41 +12:00
Alan Grainger 4404e646ab Fix corrupted camera-iris icon 2026-06-04 11:05:54 +12:00
Alan Grainger 6d77075e21 Add config option to control the map provider link 2026-06-04 10:03:08 +12:00
Alan Grainger e43b57d644 Refactor to TypeScript ES modules and add metadata sidebar 2026-06-04 07:40:52 +12:00