-
Notifications
You must be signed in to change notification settings - Fork 12
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
🎁 Terminal UI basic implementation #139
Conversation
Skipping CI for Draft Pull Request. |
576329d
to
1caa1cc
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #139 +/- ##
==========================================
- Coverage 58.26% 57.55% -0.72%
==========================================
Files 94 113 +19
Lines 7833 8382 +549
==========================================
+ Hits 4564 4824 +260
- Misses 3027 3297 +270
- Partials 242 261 +19 ☔ View full report in Codecov by Sentry. |
1caa1cc
to
3846152
Compare
3846152
to
40bbcdf
Compare
/cc @dsimansk Can I get a review, please? |
fe80693
to
bde83a5
Compare
Here's a usage in the ghet project: cardil/ghet@046f9b4 |
bde83a5
to
652a8eb
Compare
652a8eb
to
1e0edc0
Compare
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.
A few nits, around imports and used libs. One more significant wrt/ config logic and existing solution in other package.
In general the PR looks like a good start to start with Terminal UI. I have no strong opinions on widget interfaces. Let's polish those as suitable for implementation needs.
Out of curiosity, why is it called Terminal UI
? Is it sort of de-facto standard for interactive CLIs? 🤔
Well, it's a UI of the terminal. Some people call it DUX (Developer UX), but that's a more broad term. I also heard CLI UX, but just once. Naming is hard... |
//go:build !race | ||
|
||
// TODO: there is a race condition in the progress code that needs to be fixed | ||
// somehow |
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.
@dsimansk This is ugly.
There's a race condition, but I think it's in the bubblegum library itself, rather than my code.
Maybe we should investigate that, and at least open an issue on bubblegum project?!
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'm fine to keep it here for now. Given we either capture it in issue here at least or preferably on bubblegum lib with further details.
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'll try doing a reproducer versus the github.com/charmbracelet/bubbles/progress.
@cardil circling back to the topic, was there any update on the changes |
Not yet. In fact, today, I'm going back to this PR. |
See: https://no-color.org/ and https://force-color.org/ for more information.
Conflicts fixed: - go.mod - go.sum - vendor/modules.txt
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cardil, dsimansk The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
As an initial impl that's suitable. We will refine it over time once put into use in other part of project. @cardil thanks for pushing it forward! |
/override codecov/project |
@dsimansk: Overrode contexts on behalf of dsimansk: codecov/project In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Changes
/kind enhancement
Refers to https://docs.google.com/document/d/15ZY2djwpALUXb-sRag3OksN42NR8zYTSPOggdGawzPY