Skip to content

fix(home): recent images are live, and they open - #202

Merged
pskeshu merged 1 commit into
developmentfrom
fix/home-recent-images
Sep 26, 2026
Merged

pskeshu merged 1 commit into
developmentfrom
fix/home-recent-images

Conversation

@pskeshu

@pskeshu pskeshu commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

are the recent images in the dashboard home view updated? and they are also thumbnail only like, and not able to click them really.

Neither, as it stood.

Not updated. The strip — latest projection per embryo across recent sessions — refreshed only on entering Home, at most every 15 s, and never on the event that changes it. During a run it was as stale as the last time you looked away. Now VOLUME_ACQUIRED, IMAGE_ACQUIRED and ACQUISITION_COMPLETED redraw it (1.5 s debounce) while Home is on screen, and mark it stale otherwise so the next entry skips the throttle.

Not clickable. The tiles were <div><img> with a title. A tile is now a button that opens the Lightbox at that image with the others alongside, and carries its embryo · tN caption on the tile. The Lightbox only knew images by store uid, and these are served per session by URL — which is why nobody had wired it; it opens by url now too, in all three places it chooses a src.

Verified in a headless browser with the routes stubbed: two tiles render as buttons with captions and a pointer cursor; clicking the second opens the Lightbox on /api/sessions/s1/projection?embryo=embryo_2&t=11; a VOLUME_ACQUIRED while Home is showing triggers a second fetch of the strip. Five source guards in tests/test_home_recent_images.py.

🤖 Generated with Claude Code

"are the recent images in the dashboard home view updated? and they are
also thumbnail only like, and not able to click them really."

Neither. The strip — latest projection per embryo across recent sessions
— refreshed only on entering Home, at most every 15 s, and never on the
event that changes it: a volume landing. During a run it was as stale as
the last time you looked away. And the tiles were divs: an image with a
title attribute and nothing to press.

Now a volume landing (or an overview frame, or a run ending) redraws the
strip if Home is on screen, and marks it stale otherwise so the next
entry skips the throttle. And a tile is a button that opens the Lightbox
at that image, with the others alongside.

The Lightbox knew images only by store uid, and these are served per
session by URL — which is why nobody had wired it. It opens by url now
too, in all three places it chooses a src.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pskeshu
pskeshu merged commit 8e29a9a into development Sep 26, 2026
2 checks passed
@pskeshu
pskeshu deleted the fix/home-recent-images branch September 26, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant