-
Notifications
You must be signed in to change notification settings - Fork 936
feat: implement basic archive ui to make archiving failed versions easy #10182
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
Conversation
More work is needed... this is just the MVP
a7129f0
to
2a1f3ee
Compare
onError: (error) => { | ||
displayError(getErrorMessage(error, "Failed to archive version")); | ||
}, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the queries and mutations we are putting into the api/queries modules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just copy pasted what was above, and changed it to archive vs promote.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we refactor this in another PR?
I think I need to learn this new style of pushing the mutation to an external package. I thought it would be a copy paste, but it is not.
The current code is async and works on useState
and callbacks, but it seems the new way is to await
?
site/src/pages/TemplatePage/TemplateVersionsPage/VersionRow.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a few things would be better to be resolved before merging. Let me know if you are ok with doing them or want me to do that 😁
@BrunoQuaresma I will fix your suggestions. also feel free to make any changes you'd like to. |
I recognize the "reload" is not good, and this does not expose all functionality such as "unarchive". I will defer some styling and that for now to the FE team.
The CLI has all the functionality needed, the UI has the easy ability to hide "failed" versions, which is the primary reason for the feature.
Peek.2023-10-10.11-26.webm