Open ibraheemdev opened 2 weeks ago
could it be sorted (the largest at top)?
@T-256 I put the largest at the bottom which looks more natural, in my opinion.
https://github.com/astral-sh/uv/assets/34988408/52915706-5349-48b4-82e4-a72f8b1c9846
The code generally looks good (well done) but need to find a bit of time to play with this myself to see if I have any feedback on the UX.
Just tested this on a large requirements file, I think any downloads <250kb shouldn't be displayed. The output changes too fast for it to be useful.
Comparing ibraheemdev:concurrent-progress-bar
(1f035b4) with main
(630d3fd)
✅ 12
untouched benchmarks
We should also probably provide a way to disable this output.
We could consider making it opt-in. (That would also make it less risky to ship.)
What's the risk, specifically? It seems improbable that this will break people's workflows right?
We do have a preview option now though, if you really want to gate it. A dedicated setting might make sense too? but opt-in seems wrong for that.
I think the risk is just that it’s overly verbose for most package installs and may require tuning. I would be fine shipping it under preview so we can get feedback on the UI/UX. I haven’t had a chance to play with it myself yet though.
I don't mind iterating on display ux without opt-in, it feels much safer than other changes we make and we release very often.
Is this waiting on any feedback?
Yes, from me at least - not sure if others are planning to review.
Summary
Implements concurrent progress bars. Resolves https://github.com/astral-sh/uv/issues/1209.
Test Plan
https://github.com/astral-sh/uv/assets/34988408/b21bdfbb-8817-4873-a65c-16c9e8c7c460