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(scrollbar)!: move symbols and set to symbols module #330

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

joshka
Copy link
Member

@joshka joshka commented Jul 17, 2023

This makes it consistent with the other symbol sets

BREAKING CHANGE: The symbols are now in the symbols module. To update
your code, add an import for ratatui::symbols::scrollbar::* (or the
specific symbols you need).

@codecov
Copy link

codecov bot commented Jul 17, 2023

Codecov Report

Merging #330 (61493c5) into main (df90982) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #330   +/-   ##
=======================================
  Coverage   85.05%   85.05%           
=======================================
  Files          40       40           
  Lines        8590     8590           
=======================================
  Hits         7306     7306           
  Misses       1284     1284           
Impacted Files Coverage Δ
src/symbols.rs 20.00% <0.00%> (-5.00%) ⬇️
src/widgets/mod.rs 64.70% <ø> (ø)
src/widgets/scrollbar.rs 87.87% <ø> (+0.15%) ⬆️

The symbols and sets are moved from `widgets::scrollbar` to
`symbols::scrollbar`. This makes it consistent with the other symbol
sets and allows us to make the scrollbar module private rather than
re-exporting it.

BREAKING CHANGE: The symbols are now in the `symbols` module. To update
your code, add an import for `ratatui::symbols::scrollbar::*` (or the
specific symbols you need). The scrollbar module is no longer public. To
update your code, remove any `widgets::scrollbar` imports and replace it
with `ratatui::widgets::Scrollbar`.
@joshka joshka force-pushed the fix-scrollbar-symbols branch from 85018c2 to 61493c5 Compare July 17, 2023 11:47
@orhun
Copy link
Member

orhun commented Jul 18, 2023

nit: commit message should be fix(scrollbar)!: instead of fix!(scrollbar).

@joshka joshka changed the title fix!(scrollbar): move symbols and set to symbols module fix(scrollbar)!: move symbols and set to symbols module Jul 18, 2023
@joshka
Copy link
Member Author

joshka commented Jul 24, 2023

nit: commit message should be fix(scrollbar)!: instead of fix!(scrollbar).

Fixed :)

@orhun orhun added this pull request to the merge queue Jul 26, 2023
Merged via the queue into ratatui:main with commit 7539f77 Jul 26, 2023
@joshka joshka mentioned this pull request Aug 18, 2023
@joshka joshka deleted the fix-scrollbar-symbols branch August 20, 2023 05:59
@joshka joshka added this to the v0.23.0 milestone Aug 21, 2023
@kdheepak kdheepak added the Type: Breaking Change This change will cause application code to break and must be noted in the breaking changes docs etc. label Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Breaking Change This change will cause application code to break and must be noted in the breaking changes docs etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants