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

docs(examples): update tabs example and tabs.tape #855

Merged
merged 3 commits into from
Jan 21, 2024

Conversation

Emivvvvv
Copy link
Contributor

Issue: #846, #819

This PR adds:

for tabs.rs

  • general refactoring on code
  • subjectively better looking front
  • add tailwind colors

for tabs.tape

  • change to get better output from the new code

Here is the new output:
tabs

updated tabs example and tabs.tape
Copy link
Member

@orhun orhun left a comment

Choose a reason for hiding this comment

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

Nice, had some comments.

examples/tabs.rs Outdated Show resolved Hide resolved
examples/tabs.rs Outdated Show resolved Hide resolved
added documentation comment for SelectedTab::tab_title()
@orhun orhun self-requested a review January 20, 2024 20:30
@orhun
Copy link
Member

orhun commented Jan 20, 2024

There might be ways to further simplify this - let's wait for comments from other devs.

examples/tabs.rs Outdated Show resolved Hide resolved
examples/tabs.rs Outdated Show resolved Hide resolved
impl From<SelectedTab> for Line<'_> to get enum names to set them as tab titles.
Copy link

codecov bot commented Jan 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a489d85) 92.5% compared to head (fcaf7d6) 92.5%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #855   +/-   ##
=====================================
  Coverage   92.5%   92.5%           
=====================================
  Files         61      61           
  Lines      16316   16316           
=====================================
  Hits       15095   15095           
  Misses      1221    1221           

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

@orhun orhun requested a review from Valentin271 January 21, 2024 08:58
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.

Thanks!

@Valentin271 Valentin271 merged commit eb1484b into ratatui:main Jan 21, 2024
34 checks passed
@Emivvvvv Emivvvvv mentioned this pull request Jan 21, 2024
2 tasks
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.

4 participants