Skip to content

Remove the additional explicit wait "hack" in progress bar #1965

Description

@cardil

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: knative/client-pkg#162 (comment)

Originally posted by @cardil in knative/client-pkg#162 (comment)

Activity

  1. cardil commented on Mar 22, 2024

    @cardil
    ContributorAuthor

    I don't think it is possible with the current API. When the tea.Quit command is handled, the Bubbletea's renderer stops, and restores the terminal to standard output mode. So, you can't replace the line that was already written.

    I think the Bubbletea should allow defining the last tea.Quit state, that will be printed just before the exit, and without waiting for the animation loop to draw it.

  2. cardil commented on Mar 22, 2024

    @cardil
    ContributorAuthor

    /kind bug

  3. github-actions commented on Jun 21, 2024

    @github-actions

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Reopen the issue with /reopen. Mark the issue as
    fresh by adding the comment /remove-lifecycle stale.

  4. added
    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
    on Jun 21, 2024
  5. dsimansk commented on Jun 21, 2024

    @dsimansk
    Contributor

    /remove-lifecycle stale

  6. removed
    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
    on Jun 21, 2024
  7. added
    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
    triage/acceptedIssues which should be fixed (post-triage)
    on Jun 21, 2024
  8. transferred this issue fromknative/client-pkgon Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.triage/acceptedIssues which should be fixed (post-triage)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions