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

Error handling - for package deployment #1582

Closed
4 tasks done
Madeline-UX opened this issue Apr 10, 2023 · 1 comment · Fixed by #1828
Closed
4 tasks done

Error handling - for package deployment #1582

Madeline-UX opened this issue Apr 10, 2023 · 1 comment · Fixed by #1828
Assignees
Labels
Milestone

Comments

@Madeline-UX
Copy link
Contributor

Madeline-UX commented Apr 10, 2023

User Flow

Given - Package deploys correctly
Then - modal shown with a success message and auto redirects back to the main page
If - Package fails to deploy
Then - Step that package failed in changes to error state AND the error message from CLI is in secondary text
And - Action buttons at the bottom of the screen are (secondary) Open Logs (primary) Return to Packages.

Updates

  • Stay on the deploy page when the package fails
  • Change state for stepper that package failed on to error state
  • Change action buttons to reflect error state options
  • Add error message as secondary text to stepper if possible

Design file

https://www.figma.com/file/MUItIzpzLBLuIyt225Bwgl/Zarf-UI?node-id=1369%3A58453&t=I6ve2QRHORWzJXZO-1

Image

Further UX Research Questions

Driving questions for future iterations:

  1. How much information does a user want to see upon success?
  2. What information is the user looking for upon failure?
  3. How does the user prefer to view that information CLI/Modal? More or less info
  4. How do we ensure the user knows what state the deployment is in if they walk away and come back and the deployment is completed while they were gone?
  5. If is deployment failed, how might we support quick and easy resolution?
@Madeline-UX
Copy link
Contributor Author

Design is ready

mike-winberry added a commit that referenced this issue Jun 16, 2023
…ploy stream using ansi-to-html as it is a much smaller dependency and still meets the needs for the deploystream in addition to allowing much simpler custom styling
mike-winberry added a commit that referenced this issue Jun 16, 2023
… the ansi color palette from figma to the ansi-display. Update font size, padding, scrolling behavior.
mike-winberry added a commit that referenced this issue Jun 16, 2023
…tle and set to the warning or error variant depending on the output.
@mike-winberry mike-winberry linked a pull request Jun 16, 2023 that will close this issue
2 tasks
mike-winberry added a commit that referenced this issue Jun 20, 2023
…page. Create yaml-drawer component. Create zarf-prism-theme. Moved the ansi-display to lib. Updated get deployed packages to log an error instead of bailing
mike-winberry added a commit that referenced this issue Jun 21, 2023
…while deploying, fixed the expanded search to ensure the button is connected prior to clicking in the deploy tests.
mike-winberry added a commit that referenced this issue Jun 21, 2023
mike-winberry added a commit that referenced this issue Jun 22, 2023
…errors and a slice of types.DeployedPackage to allow for better error handling when some packages are unmarshaled and others are not. Update packages list.go and cmd package.go to reflect the changes. Update lang english.go with CmdPackageListUnmarshalErr for use when one or more unmarshaling errors occur when getting deployed zarf packages.
mike-winberry added a commit that referenced this issue Jun 22, 2023
…order to properly send all the output in the stream. Fix ui deploy page to properly close the stream when navigating away from the route.
Racer159 added a commit that referenced this issue Jun 22, 2023
## Description
#1582 
#1606 


## Type of change

- [x] New feature (non-breaking change which adds functionality)

## Checklist before merging

- [x] Test, docs, adr added or updated as needed

---------

Co-authored-by: Jonathan Perry <[email protected]>
Co-authored-by: Wayne Starr <[email protected]>
Racer159 pushed a commit that referenced this issue Jun 23, 2023
## Description
Fixed the error handling in the deploy page to account for fatal errors
and to ensure the finalized state reflects the failed components.

Fixes #
#1582 

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants