-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Frapell sort folder contents #850
Conversation
This reverts commit 6b2dd5b.
@thet @vangheem @jensens Once this PR is merged, we need to also merge plone/Products.CMFPlone#2436 and plone/plone.app.upgrade#163 |
LGTM, I would like to have @thet also had a look at it. From what I see all targets are at Plone master, so Plone 5.2 - are you planning a backport to 5.1 as well? |
Totally. Once I know the functionality is accepted I plan to backport to 5.1 and 5.0 as well |
@thet When you have a chance, please don't forget to review this PR, please :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#cannotdeletethisobsoletemessagethroughgithubsui #dontknowwhy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All in all looks good to me, except these minor points:
- There is no explicit option to reset the datatables ordering, so that one is able to manually reorder items again.
- When clicking in the paginator (e.g. 250) the order is reset but the " Can not order items while manually sorting a column" is still in place. (items can be reordered, though).
- When sorting via datatables, the "Rearrange" button is still active and works. Which is actually fine - no reason to deactivate (except the reorder-warning-message makes one believe that it won't work)
- Why didn't the "All" paginagtion button work?
a6613bb
to
f01a875
Compare
Thanks for the feedback, will work on them and notify you when done |
f01a875
to
e51f759
Compare
@thet Yeah, they were, I will try to fix them when I can have some time to work on your suggestions... I wasn't able these past days :( |
e51f759
to
a6613bb
Compare
@frapell - restored old pre-rebased version. Let's see if tests are green. |
@thet I merged master back into the branch and added the ability to reset the ordering back to default without the need to refresh the whole view. As per your review points:
|
@thet All green :) |
@thet Do you want to review again? or with your approval, I can just go ahead and merge? |
Merging done for you! |
I included the https://datatables.net/ library as a new pattern
pat-datatables
, and included it to be used in the structure, so columns are sortable. I also included it with theplone
bundle, so this is also available to editors when manually creating a table using TinyMCE (Maybe we could add in the future, a style in the drop down for TinyMCE to make it more easy to use... out of the scope of this PR though)In addition, I went ahead and solved a couple of issues that the structure pattern was having (clicking disabled buttons, and allowing reordering after filtering with a query), as well as adding a new "250" option to the pagination size to show more items.
This is coming from gh-848