fix(frontend): add refresh button to artifact detail page#9384
Open
DharmaBytesX wants to merge 1 commit into
Open
fix(frontend): add refresh button to artifact detail page#9384DharmaBytesX wants to merge 1 commit into
DharmaBytesX wants to merge 1 commit into
Conversation
The artifact detail page offered no way to reload the artifact view after regenerating it, so the only way to see updated content was a full browser refresh. This adds the shared refresh button to the artifact header, next to the regenerate action. Clicking it refetches the artifact object and its rendered content in place, matching the refresh behavior already used on object detail pages. Closes opsmill#9335
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.
Why
When viewing an artifact on its detail page and triggering the regenerate action, there was no control to reload the artifact view once generation finished. The content stayed stale until the whole browser tab was refreshed.
Closes #9335
What changed
The shared refresh button now appears in the artifact header, right next to the regenerate action. Clicking it refetches the artifact object and its rendered content directly on the page, so the updated output becomes visible without reloading the entire browser tab.
This reuses the existing refresh button component that object detail pages already rely on, so the appearance, the loading state, and the last refresh tooltip stay consistent across the application. No backend changes and no API changes were needed.
How to test
Automated checks:
The frontend unit suite passes (657 tests across 89 files) and Biome reports no issues on the changed file.
Impact
Backward compatibility: no breaking changes, the behavior is additive only.
Performance: negligible, the refresh action runs the same query the page already performs.
Config or environment changes: none.
Checklist
Summary by cubic
Add a refresh button to the artifact detail page to show regenerated output without reloading the tab, addressing #9335. The shared
RefreshButtonsits next to Re-generate and refetches the artifact and its rendered content in place.Written for commit c338a36. Summary will update on new commits.
Review in cubic