Remove the additional explicit wait "hack" in progress bar

Open
#1,965 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start at pkg/output/tui/progress.go, lines 188-193, and review the current progress-bar handling alongside the linked bubbles progress API. Remove the additional explicit wait without leaving progress bars visibly incomplete; verify the behavior with multiple progress bars.

Written by the indexing model from the issue text.

Description

kind/bug lifecycle/stale triage/accepted

The additional explicit wait "hack" in the progress bar should be removed. If your UI has a lot of progress bars, this wait will be visible.

https://github.com/knative/client-pkg/blob/cf1573f9363107e30399011565bf11f95bac52d7/pkg/output/tui/progress.go#L188-L193

But, I don't see a way, with the current API of bubbles' progress, to achieve it otherwise...

Without the wait, we get UI with progress bars that are never 100% completed. See example: https://github.com/knative/client-pkg/pull/162#issuecomment-2013176150

Originally posted by @cardil in https://github.com/knative/client-pkg/pull/162#discussion_r1535599192

Dominant language
Go
Stars
387
Forks
279
Avg merge
2d 10h
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from knative/client

All issues in knative/client

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.