-
Notifications
You must be signed in to change notification settings - Fork 0
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: persistance of login and singup forms #111
Conversation
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.
Have we tested the flow when the pipeline is active and the user switch between login and register forms that the form data should be presist?
@@ -59,6 +67,9 @@ export const loginSlice = createSlice({ | |||
setLoginSSOIntent: (state) => { | |||
state.isLoginSSOIntent = true; | |||
}, | |||
backupLoginFormBegin: (state, { payload }) => { |
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.
backupLoginFormBegin: (state, { payload }) => { | |
backupLoginForm: (state, { payload }) => { |
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.
Done
store = mockStore({ | ||
...initialState, | ||
login: { | ||
...initialState.login, | ||
}, | ||
}); |
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.
store = mockStore({ | |
...initialState, | |
login: { | |
...initialState.login, | |
}, | |
}); | |
store = mockStore(initialState); |
@@ -65,6 +73,9 @@ export const registerSlice = createSlice({ | |||
setRegistrationFields: (state, { payload }) => { | |||
state.registrationFields = payload; | |||
}, | |||
backupRegistrationFormBegin: (state, { payload }) => { |
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.
backupRegistrationFormBegin: (state, { payload }) => { | |
backupRegistrationForm: (state, { payload }) => { |
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.
done
store = mockStore({ | ||
...initialState, | ||
register: { | ||
...initialState.register, | ||
}, | ||
}); |
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.
I think it should work.
store = mockStore({ | |
...initialState, | |
register: { | |
...initialState.register, | |
}, | |
}); | |
store = mockStore(initialState); |
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.
It does not work that is why i have added these lines
c54c69a
to
fcbfffa
Compare
yes it is working i have added the change |
Description: Persistance of login and signup forms VAN-1957
e9bb8be
to
79a6659
Compare
@@ -16,6 +16,15 @@ export const registerInitialState = { | |||
validationState: DEFAULT_STATE, | |||
registrationError: {}, | |||
registrationResult: {}, | |||
registrationFormData: { | |||
isFormDirty: false, |
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.
isFormDirty: false, | |
isFormFilled: false, |
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.
done
Description: New changes after review VAN-1957
79a6659
to
806e53b
Compare
Description
JIRA
VAN-1957
VAN-2007
How Has This Been Tested?
It has been tested locally