Skip to content
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

XWIKI-18994: Replace the Livetable of the Users and groups pages of the administration with a Live Data macro #2942

Merged
merged 18 commits into from
Mar 21, 2024

Conversation

manuelleduc
Copy link
Contributor

@manuelleduc manuelleduc commented Feb 28, 2024

Jira URL

Changes

Description

  • change the Livetables of:
    • users administration
    • groups administration
    • add/remove groups our users from a group

This was easier to change them all at the same time as they share some Javascript code to display modals.

Clarifications

Screenshots & Video

The screenshots have a red delete icon thanks to the separate PR #2972

Users administration

Main change: the actions are not right aligned anymore. I make things inconsistent with other actions.
Unless we want the actions to be right-aligned by default.

Before

image

After

image

Groups administration

Before

image

After

image

Users in group modal

Before

image

After

image

Sub Wiki users administration

Before

image

After

image

Sub Wiki groups administration

Before

image

After

image

Executed Tests

mvn clean install \
  -Pquality,integration-tests,docker \
  -pl :xwiki-platform-administration-test-docker,:xwiki-platform-administration-test-pageobjects,:xwiki-platform-administration-ui,:xwiki-platform-flamingo-skin-resources,:xwiki-platform-livedata-test-pageobjects,:xwiki-platform-livedata-webjar,:xwiki-platform-web-templates,:xwiki-platform-web-war

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • N/A

@manuelleduc manuelleduc marked this pull request as ready for review March 11, 2024 13:16
@michitux
Copy link
Contributor

Quick feedback on the screenshots: the enable icon is now the same as the disable icon, is this intentional?

Copy link
Contributor

@michitux michitux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a quick look, this looks okay but there are some details that could be improved.

@@ -933,7 +933,7 @@ require(['jquery'], function($) {
/* Override general table styles. */
/* TODO: Move to livetable.css */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This to-do seems outdated after moving to Live Data.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is still up to date, as it still apply to the rights administration page table.
But yes, once all the LT for XS are migrated this comment will become outdated.

*/
public List<WebElement> findElementsInRow(int rowNumber, By by)
{
return getRowElement(rowNumber).findElements(by);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional that this is always waiting until the timeout? Or should this maybe use the variant without waiting?

@manuelleduc
Copy link
Contributor Author

Quick feedback on the screenshots: the enable icon is now the same as the disable icon, is this intentional?

This was indeed a mistake. I've fixed this.

@manuelleduc manuelleduc changed the title XWIKI-18994: Replace the Livetable of the Users page of the administration with a Live Data macro XWIKI-18994: Replace the Livetable of the Users and groups pages of the administration with a Live Data macro Mar 21, 2024
@manuelleduc manuelleduc merged commit 44ce0f7 into xwiki:master Mar 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants