-
Notifications
You must be signed in to change notification settings - Fork 173
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
feat: simplify registration experiment #1164
Conversation
2a66d7b
to
b41edcc
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1164 +/- ##
==========================================
- Coverage 87.47% 85.20% -2.27%
==========================================
Files 124 127 +3
Lines 2251 2359 +108
Branches 629 668 +39
==========================================
+ Hits 1969 2010 +41
- Misses 273 337 +64
- Partials 9 12 +3 ☔ View full report in Codecov by Sentry. |
ee3a1ea
to
2490707
Compare
2490707
to
25efe40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but have some comments.
let payload = { ...initPayload }; | ||
|
||
// Removing username field that is in second step of registration form | ||
delete payload.username; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are deleting the username from the payload, how are we handling this use case, calling API without a username?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just for validating complete first step of simplified register page. On first step, we don't have username so we are not validating it in the first step. We are validating username in the second step.
src/register/data/utils.js
Outdated
@@ -35,6 +35,7 @@ export const isFormValid = ( | |||
) => { | |||
const fieldErrors = { ...errors }; | |||
let isValid = true; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
25efe40
to
3339eaf
Compare
Description
Adds a simplified registration experiment to authn registration page by moving the username field to the second step in the register page for users falling into variation.
JIRA
VAN-1827
How Has This Been Tested?
Locally
Screenshots/sandbox (optional):
Default Variation
Screen.Recording.2024-02-26.at.1.46.57.PM.mov
Simplified Registration variation
Screen.Recording.2024-02-26.at.1.45.24.PM.mov
Merge Checklist
Post-merge Checklist