Repository navigation
Conversation
Keep the image description visible and offer a keyboard-accessible retry after a load failure. Retry only the approved image occurrence and URL, without retrying on streaming updates.
This branch has not been deployed
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.
What is this PR for?
When an approved image fails to load, the AI Assistant now shows an error and a keyboard-accessible Retry image button while keeping the image description visible. Retry attempts to load the same URL using normal browser caching. If it succeeds, the image is displayed. If it fails again, the error and Retry button remain available.
Streaming updates do not automatically retry failed images. Approval applies to one image occurrence and its URL: another image with the same URL still needs approval, and a changed URL requires fresh approval. Unsupported URLs remain non-loadable.
What type of PR is it?
Improvement
Todos
What is the Jira issue?
How should this be tested?
From
zeppelin-web-angular/projects/zeppelin-react, run:npm test -- MarkdownAnswer.spec.tsx npm run build:storybook npm run test:storybook -- markdown-answer-images.spec.mjs --workers=1The retry fixture fails the first approved load and the first retry, then serves a valid image. Verify that no image request is sent before approval or between attempts, that the description stays visible on failure, and that retrying by keyboard requests the same URL.
The streaming fixture checks that Retry keeps focus when the same image is remounted and that retrying it does not load another image with the same URL.
Screenshots (if appropriate)
Questions: