-
-
Notifications
You must be signed in to change notification settings - Fork 695
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
Sort control panels alphabetically by title within each group #3737
Conversation
✅ Deploy Preview for volto ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Passing run #5107 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Will sorting work for all languages? Will the sort be within groups of control panels? |
AFAIK if you are using the title they will be sorted by title, because p.restapi takes care of exposing the translated title in the relevant controlpanel. But I can provide some screenshot in some languages to check it. |
We tried this in the past (in classic, I contributed to it), and it does not work, because of languages. People preferred to have the icon in the same place across languages than have them alphabetically ordered. |
But we already fixed it some time ago in classic to have it sorted by title:
We should have it both in classic and volto in the same way. I don't know which one (I prefer have it sorted) but the same. |
I do not know now the state in classic, but I agree that we should follow the same approach. |
I updated the PR title to reflect that it's sorted within each group.
@erral That was my understanding too, but I haven't verified this yet.
@sneridagh My experience with multi-lingual sites is very limited, but I imagine most users would use a single language most of the time? I agree that it's not ideal having them move in cases when they do switch, but I can't think of another way right now for them to be logically sorted the other 80% of the time. I'll finish this PR off, can always revisit it :) |
This comment was marked as outdated.
This comment was marked as outdated.
Hmm, why are there different numbers of control panels shown in the different languages? |
Good question 🤔 I think that's because I didn't change the Volto language when testing this, I only modified Plone language, but I will check it again |
FrenchBasqueSpanishHere we have the screenshots with frontend + backend both configured correctly with the same language. The controlpanel differences in French are because of some controlpanels are directly coded in Volto and are not comming from Plone, so their category indicator must be translated into French in the PO/JSON file and it is not. If you check it carefully we have a category called |
@JeffersonBledsoe can you add a changelog entry so that the build is green? |
@erral I'll sort that shortly, but I've still some tests failing locally |
@tiberiuichim Update the snapshot and did some more testing, all finished :) |
@sneridagh Thoughts on including this in the Plone6 release? |
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.
👍
* master: (185 commits) fix: unresponsive add page (#4507) Apply suggestion from browser for password field (#4524) (fix):Object.normaliseMail: Cannot read properties of null (#4558) Fix link in Volto, remove from linkcheck ignore in Documentation v6.0 (#4742) added documentation regarding the static middleware #4518 (#4736) Closes issue #4567 (#4570) Fix whitespace in locales created by the generator (#4737) Tidy up from synch with 16.x.x (#4728) Release notes from 16.20.2, 16.20.3, 16.20.4 (#4729) Use new URL 6.docs.plone.org (#4726) Security upgrade for momentjs (#4715) Don't decode querystring while adding apiExpanders (#4719) (Synchronize redundant block id in listing block on pasting) Fix duplicating listing block (#4239) Translate add-on control panel (cleaned up PR) (#4620) Fix Move to top of folder ordering in folder content view by searchin… (#4709) Fix robot.txt - the sitemap link should respect x-forwarded headers (#4704) Refactor faulty reorder elements in ObjectBrowserList widget (#4703) Release changelog notes for 16.20.1 Release 17.0.0-alpha.5 Generate a split sitemap (also fix robots.txt) (#4639) ...
@JeffersonBledsoe upss I merged your other PR related to the SSR control panel and now there is a conflict that must be resolved. |
# Conflicts: # src/components/manage/Controlpanels/Controlpanels.jsx
@sneridagh Thanks for merging that other PR! I've fixed the merge conflict here, just waiting for tests to run. Are you fussed about the import sorting that VS Code seems to have done, or want me to undo it for a cleaner PR? |
I have reached my (very low) limit of comprehension about why Controlpanels.test.jsx is problematic :) |
Doh, clear example of buried PR... should we resurect it? |
@sneridagh I think we should do it. It sorts on the translated title (it's translated in the |
Ok I just checked and the endpoint return the translations. @davisagli ok! let's do it. |
The control panels within each group are sorted alphabetically