-
-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XWIKI-22121: Improve the registration experience (#3155)
- Part A: Make the registration immediately visible: changed the position of the registration login/logout buttons in the UI. - Part B: Improve live validation (especially for the password) - Part C: Improved the default page displayed after a successful registration * Added the `back to home` button. * Fixed the style of the * Moved the login and register buttons from the drawer to the navbar. * Updated style * Part B: moved around the first and last name fields. TODO: * C. replace the registration confirmation inline styling with some CSS * Split the form into two sections * Added an `About you` title for the second section. * Split the validation messages in multiple parts - Done. * C. replace the registration confirmation inline styling with some CSS * Replaced the registration confirmation inline styling with some CSS * Escaped the content added in RegistrationConfig * B. Check that other uses of Livevalidation are not broken by the changes. * Took care of a fallback for backwards compatibility * Tried to fix the register form not submitting, WIP * Fixed a wrong ID for the UIExtensionClass * Fixed the bug for unexpected lack of form submission * Fixed some codestyle * Added comments * Removed special rule for regex type validation in the JS initialization * Updated the template for creating a validationContainer to fit loading the form with values already given * Improved backwards compatibility * Updated the style of `mandatory` and `must-match` fields when valid to never show the `Ok` text. (wasn't an issue before, because the text was left empty as a mistake) * fixed booleans for validation * fixed boolean for the welcome message formatting. * Fixed `RegisterIT` * Fixed the base page object register and login function to fit the new position of those links. * Fixed the username duplicate validation message * Fixed the size of the hero image on successful registration * Updated the version for deprecation * Merge conflict resolution * Updated version number * Updated the attachment name to be more understandable * Removed a parameter with its default value * Escaped strings in the HTML template. * Improved the display of the Captcha * Solve merge conflict * Fixed wrong version number on translation deprecation section
- Loading branch information
Showing
12 changed files
with
526 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -243,7 +243,8 @@ void registerJohnSmith(boolean isModal, boolean closedWiki, boolean withRegistra | |
{ | ||
AbstractRegistrationPage registrationPage = setUp(testUtils, isModal, closedWiki, withRegistrationConfig); | ||
registrationPage.fillInJohnSmithValues(); | ||
assertTrue(validateAndRegister(testUtils, isModal, registrationPage)); | ||
assertTrue(validateAndRegister(testUtils, isModal, registrationPage), String.format("isModal: %s close " | ||
+ "wiki: %s withRegistrationConfig: %s", isModal, closedWiki, withRegistrationConfig)); | ||
tryToLoginAsJohnSmith(testUtils, AbstractRegistrationPage.JOHN_SMITH_PASSWORD, registrationPage); | ||
} | ||
|
||
|
@@ -345,7 +346,6 @@ void registerWikiSyntaxName(boolean isModal, boolean closedWiki, boolean withReg | |
AbstractRegistrationPage.JOHN_SMITH_USERNAME, password, password, "[email protected]"); | ||
assertTrue(validateAndRegister(testUtils, isModal, registrationPage), String.format("isModal: %s close " | ||
+ "wiki: %s withRegistrationConfig: %s", isModal, closedWiki, withRegistrationConfig)); | ||
|
||
// TODO: looks like a pretty strange behavior, there might be a message box title missing somewhere | ||
String messagePrefix = closedWiki ? "" : "Information "; | ||
|
||
|
204 changes: 169 additions & 35 deletions
204
...administration/xwiki-platform-administration-ui/src/main/resources/XWiki/Registration.xml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.