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

feat(table): deprecate SegmentSize on table #842

Merged

Conversation

Emivvvvv
Copy link
Contributor

Issue: #835

This PR adds:

for table

  • Added new flex method with flex field
  • Changed segment_size method to use flex method
  • Deprecated segment_size method and removed segment_size field
  • Updated documentation
  • modified tests to use flex instead of segment_size except for one test.
    -test fn underconstrained_segment_size() still uses segment_size to test if it still works.

Added new flex method with flex field

Changed segment_size method to use flex method

Deprecated segment_size method

Removeed segment_size field

Updated documentation
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (68d5783) 92.4% compared to head (97bf310) 92.4%.
Report is 1 commits behind head on main.

Files Patch % Lines
src/widgets/table/table.rs 97.2% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #842   +/-   ##
=====================================
  Coverage   92.4%   92.4%           
=====================================
  Files         60      60           
  Lines      16185   16214   +29     
=====================================
+ Hits       14966   14994   +28     
- Misses      1219    1220    +1     

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

@kdheepak
Copy link
Collaborator

Thank you for the PR!

@Valentin271 Valentin271 linked an issue Jan 18, 2024 that may be closed by this pull request
added since ="0.26.0" and changed note of the deprecated

removed deprecated note from Table::segment_size method

modified Table::flex doc to test the example
Copy link
Member

@Valentin271 Valentin271 left a comment

Choose a reason for hiding this comment

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

Everything seems resolved here and the code looks good. Approved. Thanks for this!

@Valentin271 Valentin271 merged commit a489d85 into ratatui:main Jan 19, 2024
34 checks passed
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.

Deprecate SegmentSize on Table
5 participants