-
Notifications
You must be signed in to change notification settings - Fork 8
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
Sitegen: Refactor Error State #530
Conversation
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.
Looks good!
On the site-logo page, if you choose to skip the upload, all APIs are triggered twice. This issue may occur because while on this step, the APIs are still pending, and if you skip the step, they are triggered again. |
Fixed, thanks @girish-lokapure @ajayadav09. Please let me know if you find any more issues. |
|
||
if ( response.body ) { | ||
currentData.sitegen.homepages.data = response.body; | ||
currentData.sitegen.siteGenMetaStatus.currentStatus += 1; |
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 failed the homepage API with mock error.
When the home page API fails in the background on the experience step and the user has selected one of the options from the survey question. The page doesn't move to the next step and the user is not aware of any errors, the user will be stuck on that step.
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.
Looks good. It'll be good in case to show the error UI when the home page api fails on the experience step. Have added screenshot in the comments.
Fixed, thanks @ajayadav09 |
Looks Good! Thanks @arunshenoy99 |
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.
Tested the home page error status. Working as expected
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.
Looks Good!
…oarding into fix/error-state
Proposed changes
Type of Change
Checklist
Further comments
This refactors the error state to make it more predictable, readable, and also fixes multiple bugs found within it.