Add pagination for submissions#2710
Conversation
Chartman123
left a comment
There was a problem hiding this comment.
Hi @Koc
nice start, here are a few comments:
- I think we should split up the filtering from the rest of the pagination block and move it up to the right of the summary/responses switch

- The page dropdown is placed too high, there should be more spacing on top of it
floatingstyle looks odd to me, should be just embedded into the page- page selection should be below the submissions or above and below but not only above them.
- A max of 50 items seems too big for me as a default. You'd still have to scroll a lot before you reach the end of the page
- At best we should make the item limit configurable (user setting)
Regarding the pagination in general: I think we should only fetch the currently shown submissions from the API. But in this case the filtering will no longer be able to work only in the front-end. So more adjustments needed then...
3b059eb to
a8ee312
Compare
|
Hey @Chartman123 , thank you for quick feedback, very appreciated! I've did some changes and updated screenshots in the PR description. So, I've moved pagination to backend and added extra parameter for full text search. For some reason it not works for me 😕 . Please help, feel free to push. |
a8ee312 to
c10b122
Compare
85c7892 to
07600cc
Compare
62b2f1f to
205dfea
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2710 +/- ##
============================================
+ Coverage 44.49% 45.54% +1.05%
- Complexity 974 977 +3
============================================
Files 79 79
Lines 3531 3548 +17
============================================
+ Hits 1571 1616 +45
+ Misses 1960 1932 -28 🚀 New features to boost your workflow:
|
0319a73 to
2bcdcd2
Compare
69bb0a3 to
010352c
Compare
010352c to
26b7b03
Compare
Chartman123
left a comment
There was a problem hiding this comment.
submissionCount is now part of the Form, you can just rely on it. I needed it for the allowEditSubmission PR :)
|
@Chartman123 mate, the problem is that we have 2 different counts. That's the reason why I'm using another property. BTW thanx for SQLite fix! |
|
@Koc ah yes you're right... 🙈 |
ffd258b to
c7889b3
Compare
|
We have green pipeline finally! 🎉 Also I've replaced shitty unit test for |
|
Count looks good now :) But I'm not happy with the name And the search box is not properly aligned to the other items in the block. You could also use the |
c7889b3 to
595cd3a
Compare
|
@Chartman123 done ✔️ |
09b9ad7 to
01c34d3
Compare
jancborchardt
left a comment
There was a problem hiding this comment.
Looks good! Just 2 comments:
Usually the pagination element is on the bottom of the oage rather than the top. It can be made sticky on the bottom if wanted.
At best we should make the item limit configurable (user setting)
@Chartman123 just for info – something unimportant as this should not be a setting but instead have a proper value, as per design guidelines. :)
|
@jancborchardt Thanks for the review 👍🏻
@Koc could you then please remove the page selection from above the results? |
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
01c34d3 to
bacb41f
Compare
|
@Chartman123 removed |


This PR adds pagination for submissions list page. Few notes about implementation:
🔍 Preview