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

feat: persistance of login and singup forms #111

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

ahtesham-quraish
Copy link
Contributor

@ahtesham-quraish ahtesham-quraish commented Jul 10, 2024

Description

  • Persistence of login, signup forgot password forms
  • Error alert should not be visible on forms switches

JIRA

VAN-1957
VAN-2007

How Has This Been Tested?

It has been tested locally

Copy link
Contributor

@mubbsharanwar mubbsharanwar left a 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 }) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
backupLoginFormBegin: (state, { payload }) => {
backupLoginForm: (state, { payload }) => {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment on lines +260 to +270
store = mockStore({
...initialState,
login: {
...initialState.login,
},
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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 }) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
backupRegistrationFormBegin: (state, { payload }) => {
backupRegistrationForm: (state, { payload }) => {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Comment on lines +197 to +204
store = mockStore({
...initialState,
register: {
...initialState.register,
},
});
Copy link
Contributor

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.

Suggested change
store = mockStore({
...initialState,
register: {
...initialState.register,
},
});
store = mockStore(initialState);

Copy link
Contributor Author

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

@ahtesham-quraish
Copy link
Contributor Author

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?

yes it is working i have added the change

Description:
Persistance of login and signup forms
VAN-1957
@@ -16,6 +16,15 @@ export const registerInitialState = {
validationState: DEFAULT_STATE,
registrationError: {},
registrationResult: {},
registrationFormData: {
isFormDirty: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
isFormDirty: false,
isFormFilled: false,

Copy link
Contributor Author

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
@ahtesham-quraish ahtesham-quraish merged commit 4d0f0dd into master Jul 12, 2024
5 checks passed
@ahtesham-quraish ahtesham-quraish deleted the ahtesham/van-1957 branch July 12, 2024 11:12
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