Skip to content

fix: report a download in one place, and let a failed one be dismissed - #203

Merged
Rakesh-46-VR merged 5 commits into
mainfrom
fix/stuck-failed-download-rows
Aug 30, 2026
Merged

fix: report a download in one place, and let a failed one be dismissed#203
Rakesh-46-VR merged 5 commits into
mainfrom
fix/stuck-failed-download-rows

Conversation

@yash-sangwan

Copy link
Copy Markdown
Member

A download that hit a network error left a row nothing could remove, so the panel stayed up until the page was reloaded.

Fixed

  • The store had a clear-after delay for completed and cancelled rows but no case for error. It now clears after 8s, and those timers check the row is still the one they were set for, so retrying does not delete the live row.
  • A failed row had no button at all. The row drew its control for active, completed and cancelled only, and anything that failed fell through to nothing. Fixed for failed uploads and deletes too.
  • The operations panel never mapped download to a remove action, in either the row's remove or the panel's close button. So the X did nothing.

Also

  • The same download reported itself three times: a toast, a card top right, and a row bottom right. The top right card and the routine toasts are gone. One toast is left for a failure that never reaches the card.
  • The row now shows the percentage while downloading, the only thing the removed card had that it did not.

How to check

  1. Start downloading a large file, then set Network to Offline in DevTools.
  2. The failure shows only on the bottom right card. No toast, no top right card.
  3. Hover the failed row and press X. It goes. Leave it instead and it clears after 8s.
  4. Retry the same file within those 8 seconds. The new download must keep running and stay on the card.
  5. During a normal download the row should read Downloading... 45%.

An errored download row had no way out: the store gave completed and cancelled
rows a linger but had no case for error, the top right card rendered its button
only while a transfer was running, and the bottom right panel never mapped
download to a remove action in either its rows or its close button.
A download announced itself as a toast, as a card in the top right, and as a
row on the operations card in the bottom right, all at once. The operations
card already carried every status the separate card did, so that card and the
routine toasts are gone. One toast remains for a failure that never reaches
the card, and the row now shows the percentage.
… retry

Review of the branch turned up two real gaps. The row drew its trailing
control for active, completed and cancelled operations only, so anything that
had failed fell through to nothing and had no button at all. And the linger
timers removed by file id unconditionally, so retrying inside the window
deleted the row of the transfer now running.
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opndrive Ready Ready Preview Aug 30, 2026 4:36pm
opndrive-docs Ready Ready Preview Aug 30, 2026 4:36pm

…itself

Downloads cleared themselves on a timer, which read as tidy until a failure
needed the same treatment: a reason that takes itself off the screen is no use
to anyone who was not looking, and the panel can be collapsed. Uploads and
deletes have always waited to be dismissed, and every settled row now has a
button on it, so downloads match them.
@Rakesh-46-VR
Rakesh-46-VR merged commit 1c3fc86 into main Aug 30, 2026
11 checks 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.

2 participants