Skip to content

feat(tui): show download progress while installing an update (#88) - #89

Merged
damusix merged 1 commit into
masterfrom
next
Sep 9, 2026
Merged

feat(tui): show download progress while installing an update (#88)#89
damusix merged 1 commit into
masterfrom
next

Conversation

@damusix

@damusix damusix commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator
  • feat(tui): track update download progress from observer events

The updater has emitted received/total every 512KB and a retry notice all along; nothing in the TUI listened. Mirrors useTransferProgress so the update screen can show real progress instead of a bare spinner.

  • feat(tui): render download progress on the update screen

The installing state was a bare spinner for the whole of a ~70MB download, indistinguishable from a hang. Shows MB, percent and a bar once the total is known, MB alone when the server sends no Content-Length, and the retry reason so a resume does not read as one.

  • refactor(cli): correct a comment promising a fallback that never existed

The comment claimed piped output falls back to periodic newlines; it prints nothing, and suppression is right, since a tick per 512KB would bury a CI log. Behaviour is unchanged, the early return just replaces formatting a line that was already being discarded.

  • docs(tui): add the Update screen to the screen reference

The screen reference had no entry for it at all, so the download progress, the unknown-size fallback and the resume notice were undocumented.

  • docs(update): bring the spec up to standard and drop a drawn mockup

The spec was missing the change tree, outline, flows, risks and change log a sibling spec two commits earlier already carried; its approaches table moves to a design doc. The screen reference loses a hand-drawn progress bar, the artifact class the VHS pipeline exists to retire.

  • chore(changeset): add update download progress

Every user-facing change in this repo carries one; this had none.

* feat(tui): track update download progress from observer events

The updater has emitted received/total every 512KB and a retry notice
all along; nothing in the TUI listened. Mirrors useTransferProgress so
the update screen can show real progress instead of a bare spinner.

* feat(tui): render download progress on the update screen

The installing state was a bare spinner for the whole of a ~70MB
download, indistinguishable from a hang. Shows MB, percent and a bar
once the total is known, MB alone when the server sends no
Content-Length, and the retry reason so a resume does not read as one.

* refactor(cli): correct a comment promising a fallback that never existed

The comment claimed piped output falls back to periodic newlines; it
prints nothing, and suppression is right, since a tick per 512KB would
bury a CI log. Behaviour is unchanged, the early return just replaces
formatting a line that was already being discarded.

* docs(tui): add the Update screen to the screen reference

The screen reference had no entry for it at all, so the download
progress, the unknown-size fallback and the resume notice were
undocumented.

* docs(update): bring the spec up to standard and drop a drawn mockup

The spec was missing the change tree, outline, flows, risks and change
log a sibling spec two commits earlier already carried; its approaches
table moves to a design doc. The screen reference loses a hand-drawn
progress bar, the artifact class the VHS pipeline exists to retire.

* chore(changeset): add update download progress

Every user-facing change in this repo carries one; this had none.
@damusix
damusix merged commit 685b125 into master Sep 9, 2026
1 check passed
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.

1 participant