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
[student-libraries] Exporter ui fail #31502
Conversation
@@ -128,6 +131,7 @@ class LibraryCreationDialog extends React.Component { | |||
libraryJson, | |||
error => { | |||
console.warn(`Error publishing library: ${error}`); |
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.
Still want this console warn now that there's UI for it?
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.
Jessie and I chatted and we decided yes, because then we can help debug if someone writes in with issues.
<p id="error-alert" style={styles.alert}> | ||
{i18n.libraryPublishFail()} | ||
</p> | ||
<div> |
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.
Why is this container div needed?
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 liked the idea of having this state-specific behavior in a div, but it's not necessarily needed. I'm going to leave for now to avoid delaying this PR.
Description
Display an error message and ask users to re-try when publish fails.
Testing story
Added new tests to cover when this is expected and not expected
Reviewer Checklist: