Skip to content

compact TUI to monitor layers download progress#10281

Merged
ndeloof merged 1 commit intodocker:v2from
ndeloof:tui
Feb 16, 2023
Merged

compact TUI to monitor layers download progress#10281
ndeloof merged 1 commit intodocker:v2from
ndeloof:tui

Conversation

@ndeloof
Copy link
Copy Markdown
Contributor

@ndeloof ndeloof commented Feb 14, 2023

What I did
As terminal height might not allow to display per-layers download progress status, render a compact TUI using 8-dots braille chars as progress status

see demo on https://asciinema.org/a/4jZWUZfhcXouJPd1p6h0yMxtC

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 14, 2023

Codecov Report

Base: 72.79% // Head: 73.89% // Increases project coverage by +1.10% 🎉

Coverage data is based on head (59fb7d6) compared to base (593c426).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10281      +/-   ##
==========================================
+ Coverage   72.79%   73.89%   +1.10%     
==========================================
  Files           2        2              
  Lines         272      272              
==========================================
+ Hits          198      201       +3     
+ Misses         62       60       -2     
+ Partials       12       11       -1     
Impacted Files Coverage Δ
pkg/e2e/framework.go 72.15% <0.00%> (+1.17%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

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

Nice!! Looks really good 🥳

@williamdes
Copy link
Copy Markdown

It's so cute!!
can we have a percentage right after the text?

@ndeloof ndeloof force-pushed the tui branch 2 times, most recently from f376e43 to ffe3aa8 Compare February 14, 2023 16:42
@ndeloof
Copy link
Copy Markdown
Contributor Author

ndeloof commented Feb 14, 2023

this unfortunately breaks the progress alignment, need to double check

@ndeloof ndeloof marked this pull request as draft February 14, 2023 16:52
@ndeloof ndeloof marked this pull request as ready for review February 15, 2023 10:27
Comment thread pkg/compose/push.go
current int64
)
if jm.Status == "Pull complete" || jm.Status == "Already exists" {
if jm.Status == "Pushed" || jm.Status == "Already exists" {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

can this strings not use some sort of enum or const ?
(I don't know golang)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

unfortunately golang doesn't have enums
ideally, const should be defined by the Docker Engine API

Copy link
Copy Markdown

@williamdes williamdes left a comment

Choose a reason for hiding this comment

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

I tested it with my projects that had the initial scolling bug of docker-compose
Using artifact from: https://github.com/docker/compose/actions/runs/4182986999

The new UI you propose is comprehensive and clean !
It's easy to understand

Very good work !

@ndeloof ndeloof force-pushed the tui branch 5 times, most recently from 1851b42 to 89a36ba Compare February 15, 2023 13:47
@ndeloof ndeloof requested review from a team, StefanScherer, glours, milas, nicksieger and ulyssessouza and removed request for a team February 15, 2023 15:52
@ndeloof ndeloof force-pushed the tui branch 2 times, most recently from cc0bbe9 to 51d7307 Compare February 16, 2023 10:36
@williamdes
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@StefanScherer StefanScherer left a comment

Choose a reason for hiding this comment

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

I tried it on Windows in PowerShell/CMD/Windows terminal and looks good there as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants