Skip to content
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: prevent graph lines from showing up behind legend #1683

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

mtoohey31
Copy link
Contributor

Description

Currently, when some entries in a graph's legend are shorter than others, it's possible for the graph lines to show up through the legend. This can be seen in the following screenshot:

bottom-bug-circled-screenshot

This pull request fixes the issue. In terms of how the fix is actually implemented, I'm not that familiar with ratatui so lmk if there's a better way to ensure the legend is fully opaque.

Issue

N/A

Testing

I visually examined the graphs to confirm that the bug no longer appears.

If this is a code change, please also indicate which platforms were tested:

  • Windows
  • macOS
  • Linux

Checklist

If relevant, ensure the following have been met:

  • Areas your change affects have been linted using rustfmt (cargo fmt)
  • The change has been tested and doesn't appear to cause any unintended breakage
  • Documentation has been added/updated if needed (README.md, help menu, doc pages, etc.)
  • The pull request passes the provided CI pipeline
  • There are no merge conflicts
  • If relevant, new tests were added (don't worry too much about coverage)

Copy link

codecov bot commented Feb 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.21%. Comparing base (d2177ed) to head (9a27c41).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1683       +/-   ##
===========================================
- Coverage   54.08%   42.21%   -11.87%     
===========================================
  Files         111      111               
  Lines       17441    17445        +4     
===========================================
- Hits         9433     7365     -2068     
- Misses       8008    10080     +2072     
Flag Coverage Δ
macos-14 37.73% <100.00%> (+0.01%) ⬆️
ubuntu-latest 44.03% <100.00%> (-12.51%) ⬇️
windows-2019 37.62% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ClementTsang ClementTsang self-assigned this Feb 23, 2025
Copy link
Owner

@ClementTsang ClementTsang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a small change to use cell_mut instead, but otherwise LGTM. Thanks for catching this and fixing it (and sorry for the delay in reviewing)!

@ClementTsang
Copy link
Owner

@all-contributors please add @mtoohey31 for code

Copy link
Contributor

@ClementTsang

I've put up a pull request to add @mtoohey31! 🎉

@ClementTsang ClementTsang enabled auto-merge (squash) February 28, 2025 08:54
@ClementTsang ClementTsang merged commit f8cfd96 into ClementTsang:main Feb 28, 2025
37 checks passed
ClementTsang added a commit that referenced this pull request Feb 28, 2025
ClementTsang added a commit that referenced this pull request Feb 28, 2025
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