-
-
Notifications
You must be signed in to change notification settings - Fork 609
XWIKI-17296: Inconsistent dropdown behaviour between object and class editor #4860
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
Conversation
… editor * Removed a minor bug from the `Add property` button. When there was no name set for the property it would submit the edit form and open the preview of the doc?? AFAIU the type on this button should have been `button` (action unrelated to the form) instead of `submit` (the button purpose is to submit the form -- here the edition of the page). * Removed a minor bug where clicking on the reordering handle would also expand/collapse the section. * Fixed the default state.
|
I just went to double check docker tests. They don't fail despite the change in the initial state because:
Technically the expand function could be removed. Leaving it, because it doesn't hurt and I don't want to run all the flamingo tests again just to make sure removing it is not a regression... |
...lamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/editclass.vm
Outdated
Show resolved
Hide resolved
...latform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/editors/dataeditors.js
Show resolved
Hide resolved
… editor * Removed unrelated change * Added a comment to explain an update.
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Jira URL
https://jira.xwiki.org/browse/XWIKI-17296
Changes
Description
Clarifications
expandCollapseMetaPropertyin a way that would keep backwards compatibility. When providing only the first argument, the result of this function is the same as it was.button(action unrelated to the form) instead ofsubmit(the button purpose is to submit the form -- here the edition of the page). (fix oneditclass.vmL143) Note that hiting theEnterkey on the input still submits the edition form... Since it's not the main concern of the ticket, I'm not providing further solution for this problem here.dataeditors.jsL697)Screenshots & Video
Here is a video demo of my local instance with the PR applied. Everything mentionned above and in the ticket description behaves as expected.
2025-12-01.16-16-37.mp4
Executed Tests
Manual tests, see video above.
Checked the updated files with SonarQube, no new codestyle/quality violation.
Successfully built the quality profiles of modules with changes:
mvn clean install -f xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/ -Pqualitymvn clean install -f xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources -PqualitySuccessfully passed docker tests
mvn clean install -f xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker, which containsEditClassITthat use theClassEditPageobject. (I tried to use a pattern but didn't get it to work so it just ran all the flamingo tests in about 25 minutes).Expected merging strategy