-
Notifications
You must be signed in to change notification settings - Fork 36
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(app & service release process): resume last edited page during release process #1376
base: main
Are you sure you want to change the base?
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.
@kunalgaurav-bmw please see #1335 (comment)
@manojava-gk @lavanya-bmw please review
@kunalgaurav-bmw its not registration process -> it is release process. Pls change the text in both title and description |
@kunalgaurav-bmw could you pls confirm whether only mandatory fields are being checked to increment or decrement the step? |
Hi @manojava-gk I have done this changes in useEffect in the following way for the all steps and all the mandatory fields I have added in if condition useEffect(() => { |
Quality Gate passedIssues Measures |
@kunalgaurav-bmw Is it possible to determine the step based on response in the first step itself? Create a helper file and move all the step specific conditions to the respective places,
component will have only one condition in first step to determine the actual step. All the step based condition will be hosted in the main method as shown above |
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'm unable to follow what's happening here - guess we should discuss this in a call.
return () => { | ||
dispatch(setAppRedirectStatus(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.
I haven't seen this pattern in our code before. This returns a cleanup function as described in https://react.dev/reference/react/useEffect#parameters - if the dependency array is empty what difference does it make to not simply call the function but return an internal function?
useEffect(() => {
dispatch(setAppRedirectStatus(true))
}, [])
dispatch(setServiceRedirectStatus(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.
another cleanup function - see my other comment. can you explain the need for that?
dispatch(increment()) | ||
hasDispatched.current = true | ||
} | ||
}, [fetchAppStatus, hasDispatched]) |
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 seems quite complicated and hard to follow. What issue are you trying to solve here?
hasDispatched.current = true | ||
} | ||
}, [fetchAppStatus, hasDispatched]) | ||
|
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.
another complicated block
Description
Resume to the last edited page during App/Service release process.
Changelog entry:
Why
Currently if I stop the release process and then get back to the app/service I need to click through all the steps I fulfilled already, It should be automatically resume to the last page where user stop.
Issue
#1335
Checklist
Please delete options that are not relevant.