Commit Graph

7 Commits

Author SHA1 Message Date
Rodrigo Girão Serrão
4148b1d450 Implement a Progress Bar widget. (#2333)
* First prototype of PB.

* Repurpose UnderlineBar.

* Factor out 'Bar' widget.

* Revert "Factor out 'Bar' widget."

This reverts commit 0bb4871adf.

* Add Bar widget.

* Cap progress at 100%.

* Add skeleton for the ETA label.

[skip ci]

* Add ETA display.

* Improve docstrings.

* Directly compute percentage.

* Watch percentage changes directly.

[skip ci]

* Documentation.

* Make reactive percentage private.

Instead, we create a public read-only percentage property.

* Update griffe to fix documentation issue.

Related issues: #1572, https://github.com/mkdocstrings/griffe/issues/128.
Related PRs: https://github.com/mkdocstrings/griffe/pull/135.

* Add example and docs.

* Address review feedback.

[skip ci]

* More documentation.

* Add tests.

* Changelog.

* More tests.

* Fix/fake tests.

* Final tweaks.
2023-04-26 15:25:39 +01:00
Darren Burns
9287f64a66 Add isort pre-commit hook, sort imports in src and test directories 2023-02-09 13:28:08 +00:00
Darren Burns
8674269010 Add a test for clickable bar ranges 2022-02-17 13:53:26 +00:00
Darren Burns
4e61770a7c Unroll tab headers into single renderable, more parameterisation of tabs, more examples 2022-02-17 12:20:44 +00:00
Darren Burns
65eb1b0b4f Using console.get_style, adding test ensuring style applies 2022-01-31 14:13:49 +00:00
Darren Burns
776284ddd0 Ensure we clamp range properly, passing Styles directly 2022-01-31 14:02:16 +00:00
Darren Burns
5651e97a64 Underline bar renderable 2022-01-31 13:03:48 +00:00