Repository navigation
Grid view: stop the drawer showing the previous tile while metadata loads (#438) - #446
Merged
Merged
Conversation
…oads (#438) - Blank the drawer (with a "Loading…" title placeholder) when the selected grid tile's metadata hasn't arrived, instead of leaving the previous tile's name, path, details and { } link. - Repaint the drawer when the selected tile's metadata lands; previously nothing did, including after every grid reset. - A failed fetch drops the placeholder rather than loading forever. - updateMetadataOverlay(null) blanks the drawer (empty album) instead of returning early, and is a no-op while grid view is active so the hidden single swiper can't overwrite grid view's drawer. - Discard metadata fetches started before an album change or grid rebuild, and drop slideData on reset so shifted indices can't describe the wrong image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…etches for trimmed tiles The hidden single swiper used to repaint the drawer after a seek (UMAP click, seek slider, back, reference thumbnail) to a tile already in the grid; with it now barred from the drawer in grid view, the grid's seekToSlideIndex handler does it itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #438.
What changed
{ }link. The cluster and label rows still show (they need only the index).updateMetadataOverlay(null)now blanks the drawer instead of returning early, so the old album's path no longer lingers.updateMetadataOverlayis a no-op while grid view is active, so the single swiper (still alive underneath, still rebuilding on album changes) can't overwrite grid view's drawer.seekToSlideIndexhandler now repaints the drawer and score itself. It used to rely on the hidden single swiper doing it, which the previous point removes.Two related fixes, made visible by repainting on arrival:
slideData, so after a deletion shifts indices the drawer can't briefly describe the wrong image.Testing
grid-view.test.jsandmetadata-drawer-file-info.test.js; the stale-fetch and seek cases were checked to fail without their fixes. Full suite, lint and format pass.Not addressed: the score pill can also go stale after switching to an empty album in single-image view.
🤖 Generated with Claude Code