-
-
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
Clear selection when changing path in structure pattern #1435
base: master
Are you sure you want to change the base?
Conversation
I'm d'accord with your statement, that the persistent selection creates more problems, than it solves. But it was designed for this purpose and if you clear the selection when changeing path, it doesn't make sense to me at all to show this dropdown anymore. Nevertheless, this is a breaking change and has to be discussed. @plone/classicui-team |
The dropdown still might be useful, when selecting across page 1, page 2, ... within the same folder_contents view. While that being said, we at TUD have customized/simplified the dropdown in the moment, when we introduced this change. We introduced three options:
See the screenshots as better illustration: I did not want to pitch too much in this PR, but if more improvements are needed (like shown in the screenshots), I'm willing to add this to my PR as well (with the original styles of course). |
ah, that would be a very nice improvement. Happy to review the PR then. Note: since last week we got rid of |
BTW. the commitlint uses
it would appear correctly in the changelog. |
8627659
to
21e622c
Compare
The selection button shows now the number of selected and maximum number of items within the current folder. The corresponding popover offers the option to select all items, all visible items on the page and to cancel the selection. The previous popover to manage the selected items is gone. There are also some minor fixes, e.g. one to prevent degrading the breadcrumb to show only ids, but rather keep the titles. The upper-left checkbox in the table for selecting all the items has now a tooltip.
21e622c
to
d271cc8
Compare
I have added the changes. Some notes:
I created a small screencast too: selection-button-demo.mp4Let me know, what you think. |
Line 230 in a265e4d
you've to add them to plone.app.locales, translation can be done there or, after, using weblate: https://hosted.weblate.org/browse/plone/widgets/en/?q= |
If i remember me correctly, the work on robottest for the selection button was very tricky. We run in some flaky test results. |
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.
Huge +1 from me for this improvement 🎉
I've some minor issues here:
- first time I go to
folder_contents
the button says "0 of 0 selected" ... when I select something, then theof x
fits the amount of items in the folder.

- I'm perfectly fine with the bootstrap icons. Introducing new icons would need an upgrade step in staticresources to register them in the registry ... but that's too much noise I'd say.
- tests needs to be adapter accordingly.
yes we must also check for robottests in CMFPlone if we need to change something. @pgrunewald are you able to run the playwright browsers and test the dependent robottests ? |
Playright tests run generally. Just those tests breaks, where I have changed something. I will work on the remaining tasks (bugs, tests, i18n, docs) starting by tomorrow. |
This fixes plone/Products.CMFPlone#3933
I think persistent selections creates more problems that it solves. With this PR it resets the selection whenever the path is changed.
Let me know, if something more is needed.
As a side note, I had problems with the commit-linter
I had to by-pass the commit-linter via
git commit --no-verify -m "..."
.This was the error: