💄 Add option for panels to fit to content#1096
💄 Add option for panels to fit to content#1096harkabeeparolus wants to merge 30 commits intofastapi:masterfrom
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Any chances to merge this PR soon? Can someone please restart CI? |
This comment was marked as outdated.
This comment was marked as outdated.
I believe what's missing is test coverage for my new code and logic, which is not my strong suit. I would appreciate any help or suggestions on how to approach writing tests for this. |
This comment was marked as resolved.
This comment was marked as resolved.
📝 Docs previewLast commit e708718 at: https://1186698f.typertiangolo.pages.dev Modified Pages |
|
I updated the PR to remove merge conflicts, and:
Remaining issues:
|
Yes, of course, as long as the CI is running 3.8/3.9 tests, that means we're still officially supporting these versions of Python, even if they've become EOL. We'll likely drop them at some point in the near future, but nevertheless every PR should always pass the full test suite. |
|
Hi @harkabeeparolus, thanks for the status update! I'll try to look into these issues sometime in the next 10 days. |
…lus/typer into feature/rich_expand
There was a problem hiding this comment.
This now looks good to me, though another review from someone who hasn't worked on it directly would be good 🙏
(Also @harkabeeparolus: feel free to check and report whether the docs look good to you after my edits!)
Current docs link can be found here.
|
Yeah, the docs look great to me! The example really helps to illustrate the different look. @svlandeg, thank you so much! You've been super helpful and I'm really happy. 😊 |
Provide an option for using Rich
Panel.fit()akaPanel(expand=False)for help panels and errors. This was mentioned in discussion #607 and #680. To opt into this new, non-default behavior, just use:I think this can look nicer on very wide terminals, especially for CLIs with few parameters, or short parameter descriptions, so I would prefer to have the option to choose this style sometimes.
Status
Example