diff options
Diffstat (limited to 'docs/superpowers/specs')
| -rw-r--r-- | docs/superpowers/specs/2026-10-22-mygram-droid-design.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/superpowers/specs/2026-10-22-mygram-droid-design.md b/docs/superpowers/specs/2026-10-22-mygram-droid-design.md index 69d0b8a..76bbbdb 100644 --- a/docs/superpowers/specs/2026-10-22-mygram-droid-design.md +++ b/docs/superpowers/specs/2026-10-22-mygram-droid-design.md @@ -78,8 +78,8 @@ reaches it. `latestImageMtimeMs` descending, rows loaded lazily on scroll. - Each row: about 10 random items from that folder, then a **Continue** tile. -- OK on an item: viewer at that item, continuing through the folder's - shuffled list. OK on Continue: folder grid. +- OK on an item: viewer at that item at once, then the folder pages in + lazily (random page order, shuffled within each page). OK on Continue: folder grid. ### Folders @@ -87,10 +87,12 @@ Grid of all folders as avatar tiles (`avatarUrl`). OK: folder grid. ### Folder grid -- Fetches every page of `GET /api/folders/:slug/images` (60 per request) - and shuffles locally once per open. The API has no random mode for - folders. -- OK: viewer at that item, continuing in grid order. +- Lazy: `GET /api/folders/:slug/images` (60 per request) pages are fetched + in a random order (page numbers from `imageCount`, empty pages skipped), + each shuffled locally; the next page loads when the last visible tile is + within 12 of the end. The API has no random mode for folders. +- Ceiling: not a full shuffle, neighbours within a page stay together. +- OK: viewer at that item, continuing through the same list and pager. ### Liked |
