Skip to content

[perf UX] add spinner to print-dev-env output #1551

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

Merged
merged 2 commits into from
Oct 11, 2023
Merged

Conversation

savil
Copy link
Collaborator

@savil savil commented Oct 10, 2023

Summary

Added a nice spinner while we get a result from nix

How was it tested?

Spinning state:
Screenshot 2023-10-10 at 4 43 34 PM

Final state:
Screenshot 2023-10-10 at 4 41 30 PM

Copy link
Collaborator Author

savil commented Oct 10, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@savil savil force-pushed the savil/print-dev-env-output branch from 57d6660 to afe7790 Compare October 10, 2023 23:22
@savil savil marked this pull request as ready for review October 10, 2023 23:45
Comment on lines 789 to 790
spinny.FinalMSG = "✓ Got env-vars from nix.\n"
spinny.Suffix = " Getting env-vars from nix...\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

Computing new devbox environment...
...
Devbox environment computed

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, we could do that. I was trying to indicate to the user that this is nix being slow (which it is, in this instance) 😃

@savil savil merged commit 35ed72e into main Oct 11, 2023
@savil savil deleted the savil/print-dev-env-output branch October 11, 2023 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants