Skip to content

Conversation

@Sereza7
Copy link
Contributor

@Sereza7 Sereza7 commented Dec 1, 2025

Jira URL

https://jira.xwiki.org/browse/XWIKI-17296

Changes

Description

  • Fixed the default state of the dropdown.
  • Fixed a couple small usability bugs on the user path described in the ticket description. See clarification for details.

Clarifications

  • I updated the signature of expandCollapseMetaProperty in a way that would keep backwards compatibility. When providing only the first argument, the result of this function is the same as it was.
  • 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). (fix on editclass.vm L143) Note that hiting the Enter key 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.
  • When the user clicked on the reordering handle (blue "move" icon), the description of the field would expand or collapse, making it significantly more difficult to reorder fields here. (fix on dataeditors.js L697)

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/ -Pquality
  • mvn clean install -f xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources -Pquality

Successfully 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 contains EditClassIT that use the ClassEditPage object. (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

  • Prefers squash: Yes
  • Backport on branches:
    • 17.10.X . The scope of the change is well defined and the changes are pretty limited.

… 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants