feat: reindex button with progress ring in the semantic map titlebar#344
Merged
Conversation
A small refresh button (two circling arrows, matching the titlebar icon style) sits left of the album pulldown and starts an index update for the current album — a shortcut for opening Album Management. While the update runs the button is swapped for a progress ring that fills with the real percentage and takes the Album Manager's phase colours (orange scan/index, purple download, blue UMAP); the traversal phase spins an indeterminate arc. Hovering the ring shows the live status text. Opening the map or switching albums attaches the ring to an update that is already running elsewhere (Album Management, another tab) instead of starting a duplicate; clicking during a run does nothing — cancellation deliberately stays in Album Management. On completion an albumIndexUpdated event fires and the map reloads itself; on error the button returns with the message in its tooltip and can be clicked to retry. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
d74246c to
3526ecd
Compare
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.
Summary
albumIndexUpdatedevent fires and the map reloads itself with the fresh data. On error the plain button returns with the error message in its tooltip and can be clicked to retry.All new logic lives in a dedicated
umap-reindex.jsmodule wired intoumap.js; no backend changes.Test plan
🤖 Generated with Claude Code