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

Fix registration bugs, update input design, and improve validation logic #543

Merged
merged 34 commits into from
Jul 24, 2024

Conversation

tjementum
Copy link
Member

@tjementum tjementum commented Jul 21, 2024

Summary & Motivation

Fix a bug in account registration where form state is lost, and address an issue where validation errors were not shown to users. Downgrading to React 18 Canary fixes this, as these bugs were related to React 19 Canary - Waiting for React Aria Components to catch up.

Restructure frontend pages to use a shared layout and move out components from pages / routing and into shared ui for a clearer seperation of concerns.
Update the design of input fields to ensure they are all the same height.

Remove client-side validation and disable browser native validation that duplicates server-side validation to ease maintainability and provide a clear seperation of responsibility between client and server validation.

Change the Account Registration start endpoint to return the AccountRegistrationId and expiration data in the response body, simplifying the frontend and allowing central control of the expiration time.

Add "is subdomain" check in the register page and illustrated messages for better user experience.

Checklist

  • I have added a Label to the pull-request
  • I have added tests, and done manual regression tests
  • I have updated the documentation, if necessary

@tjementum tjementum added the Bug Something isn't working label Jul 21, 2024
@tjementum tjementum self-assigned this Jul 21, 2024
@tjementum tjementum force-pushed the clean-up-account-registration branch from de09d16 to 4d46319 Compare July 21, 2024 19:35
@tjementum tjementum requested a review from raix July 21, 2024 20:36
Copy link
Contributor

@raix raix left a comment

Choose a reason for hiding this comment

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

Let's not merge this for now - it's not solving the underlying issue of why things working suddenly stopped working.

@tjementum
Copy link
Member Author

Let's not merge this for now - it's not solving the underlying issue of why things working suddenly stopped working.

I've have never seen errors in the UI. And losing form data has been a problem since we upgraded to React 19 Canary :)

@tjementum tjementum force-pushed the clean-up-account-registration branch 2 times, most recently from 55f921b to cf8411e Compare July 22, 2024 19:05
@tjementum tjementum force-pushed the clean-up-account-registration branch 3 times, most recently from fb7e302 to 0f51a27 Compare July 23, 2024 13:37
@tjementum tjementum changed the title Fix account registration bugs and remove duplicate client-side validation Fix registration bugs, update input design, and improve validation logic Jul 23, 2024
@tjementum tjementum force-pushed the clean-up-account-registration branch from 0f51a27 to 090030d Compare July 23, 2024 13:46
@tjementum tjementum requested a review from raix July 23, 2024 13:47
@tjementum tjementum marked this pull request as ready for review July 23, 2024 13:47
@tjementum tjementum enabled auto-merge July 23, 2024 14:11
@tjementum tjementum linked an issue Jul 23, 2024 that may be closed by this pull request
Copy link
Contributor

@raix raix left a comment

Choose a reason for hiding this comment

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

Added a few notes - mostly to myself, will fix comments and merge

application/package.json Show resolved Hide resolved
@raix raix force-pushed the clean-up-account-registration branch from 090030d to ebb19a9 Compare July 23, 2024 22:58
@raix raix force-pushed the clean-up-account-registration branch from ebb19a9 to 04b2298 Compare July 23, 2024 23:05
@raix raix added Enhancement New feature or request .NET labels Jul 24, 2024
Copy link

@tjementum tjementum merged commit 903be2f into main Jul 24, 2024
13 checks passed
@tjementum tjementum deleted the clean-up-account-registration branch July 24, 2024 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation errors are not shown in the account registration flow.
2 participants