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(list)!: add list navigation methods (first, last, previous, next) #1159

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

joshka
Copy link
Member

@joshka joshka commented May 31, 2024

Also cleans up the list example significantly (see also
#1157)

Fixes: #1159

BREAKING CHANGE: The List widget now clamps the selected index to the
bounds of the list when navigating with first, last, previous, and
next, as well as when setting the index directly with select.

joshka added a commit that referenced this pull request May 31, 2024
Also cleans up the list example significantly (see also
<#1157>)

Fixes: <#1159>
src/symbols.rs Outdated Show resolved Hide resolved
src/widgets/list.rs Show resolved Hide resolved
src/widgets/list.rs Show resolved Hide resolved
examples/list.rs Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jun 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.4%. Comparing base (3f2f2cd) to head (e7935cf).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1159   +/-   ##
=====================================
  Coverage   94.4%   94.4%           
=====================================
  Files         62      62           
  Lines      14941   14991   +50     
=====================================
+ Hits       14110   14160   +50     
  Misses       831     831           

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

joshka added a commit that referenced this pull request Jun 24, 2024
Also cleans up the list example significantly (see also
<#1157>)

Fixes: <#1159>

BREAKING CHANGE: The `List` widget now clamps the selected index to the
bounds of the list when navigating with `first`, `last`, `previous`, and
`next`, as well as when setting the index directly with `select`.

fix: integ test
Also cleans up the list example significantly (see also
<#1157>)

Fixes: <#1159>

BREAKING CHANGE: The `List` widget now clamps the selected index to the
bounds of the list when navigating with `first`, `last`, `previous`, and
`next`, as well as when setting the index directly with `select`.
@joshka joshka changed the title feat(list): add list navigation methods (first, last, previous, next) feat(list)!: add list navigation methods (first, last, previous, next) Jun 24, 2024
@joshka
Copy link
Member Author

joshka commented Jun 24, 2024

Rebased on main, added breaking changes docs, updated commit message and PR comment to note breaking change.

@orhun orhun merged commit 46977d8 into main Jun 24, 2024
42 checks passed
@orhun orhun deleted the jm/list-next-prev branch June 24, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants