-
-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(chart): fix chart row style being incorrect when using Axis::title #462
Conversation
Codecov Report
@@ Coverage Diff @@
## main #462 +/- ##
==========================================
+ Coverage 90.00% 90.06% +0.06%
==========================================
Files 40 40
Lines 11156 11166 +10
==========================================
+ Hits 10041 10057 +16
+ Misses 1115 1109 -6
|
I'm not really sure on how to go about fixing that commit lint :( |
Mainly this would be fixed by changing the word "added" to "add" |
Actually - change of plans, double checking this locally, the conventional commit lint prevented the formatting check to run, and there's an extraneous newline that the formatter corrects. Can you please squash the two commits using git rebase and then run Do you think it would be worth adding another unit test that also checks that the data style is not overwritten by the title / axis style? Here's a suggestion for an improved commit message. I'm not sure if I've correctly noted that it's the dataset style not the title style here.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually - change of plans, double checking this locally, the conventional commit lint prevented the formatting check to run, and there's an extraneous newline that the formatter corrects. Can you please squash the two commits using git rebase and then run cargo +nightly fmt --all
and force push the result to your github branch (git push origin main --force
)?
Do you think it would be worth adding another unit test that also checks that the data style is not overwritten by the title / axis style?
Here's a suggestion for an improved commit message. I'm not sure if I've correctly noted that it's the dataset style not the title style here.
fix(chart): use graph style for top line
A bug in the rendering caused the top line of the chart to be rendered
using the style of the Y Axis, instead of the dataset style. This is
fixed by only setting the style for the width of the text, and not the
entire row.
Fixes: https://github.com/ratatui-org/ratatui/issues/379
Added the test. Hopefully I did the rebase correctly. Thanks for the commit suggestion. |
Thanks for adding the test. LGTM. One last thing (unless the other maintainers have comments on the PR): We use commit signature verification, which will block commits from being merged unless they are signed. To set up your machine to sign commits, see managing commit signature verification in GitHub docs. Also not a big deal, the commit message doesn't really need the following lines as writing tests can be generally considered as part of a feature:
|
A bug in the rendering caused the top line of the chart to be rendered using the style of the chart, instead of the dataset style. This is fixed by only setting the style for the width of the text, and not the entire row. Fixes: ratatui#379
Everything should be good now. |
Fixes: #379
old behavior
new fixed