Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: "Use All" for linear image to image doesn't recall source image #6141

Merged
merged 7 commits into from
Apr 6, 2024

Conversation

chainchompa
Copy link
Contributor

Summary

  • added initial image to metadata viewer
  • added recall for initial image
  • updated typo when using "use all" ("Params Set set "-> "Params set")

Related Issues / Discussions

Closed #6130

QA Instructions

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

@github-actions github-actions bot added the frontend PRs that change frontend files label Apr 4, 2024
@chainchompa chainchompa marked this pull request as ready for review April 4, 2024 15:48
Copy link
Collaborator

@psychedelicious psychedelicious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Couple issues to fix before merging.

@psychedelicious psychedelicious enabled auto-merge (rebase) April 6, 2024 03:49
chainchompa and others added 7 commits April 6, 2024 14:49
Retrieving the DTO happens as part of the metadata parsing, not recall. This way, we don't show the option to recall a nonexistent image.

This matches the flow for other metadata entities like models - we don't show the model recall button if the model isn't available.
@psychedelicious
Copy link
Collaborator

I made a small change to improve the UX. I moved the image network request to the parsing logic. The parsing logic is intended to handle "does this metadata exist and is it valid?". Retrieving the DTO is part of that logic.

Then the recall logic knows it has valid data, and it can update state immediately. If the parsing fails, the recall button won't be shown at all, so we avoid the awkward UX of "I pressed recall but there was an error".

@psychedelicious psychedelicious self-requested a review April 6, 2024 03:53
@psychedelicious psychedelicious merged commit 4d0a492 into main Apr 6, 2024
14 checks passed
@psychedelicious psychedelicious deleted the recall-i2i-image branch April 6, 2024 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: "Use All" for linear image to image doesn't recall source image
2 participants