Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Conversation

@ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Nov 7, 2019

  • if we filter the data and an empty dataset is returned, we should display "Page 1 of 1", not "Page 0 of 0". Also instead of "0-0 of 0 items", we should hide the "0-0" and only display "0 items".
    This matches roughly what UI-Grid does (in their case, they actually even hide the total count).
    this fixes some small issues that I have seen, sometime the page 0 of 0 was sticking even though we - removed the filter, so it's better to use Page 1 of 1 as a minimum
  • update Cypress E2E test

BEFORE
image

AFTER
image

@codecov
Copy link

codecov bot commented Nov 7, 2019

Codecov Report

Merging #334 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #334      +/-   ##
==========================================
+ Coverage   99.71%   99.71%   +0.01%     
==========================================
  Files         138      138              
  Lines        8038     8041       +3     
  Branches     2731     2733       +2     
==========================================
+ Hits         8014     8017       +3     
  Misses         24       24
Impacted Files Coverage Δ
...angular-slickgrid/formatters/checkmarkFormatter.ts 100% <ø> (ø) ⬆️
...s/angular-slickgrid/services/pagination.service.ts 99.36% <100%> (+0.02%) ⬆️
...s/angular-slickgrid/filters/compoundInputFilter.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 44899e2...bbe6e8e. Read the comment docs.

@ghiscoding ghiscoding merged commit 3f0cef6 into master Nov 8, 2019
@ghiscoding ghiscoding deleted the bugfix/pagination-never-display-0-page branch November 13, 2019 21:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants