-
Notifications
You must be signed in to change notification settings - Fork 5
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
Sc-17544: Clear form refactoring #1037
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.
I've given this an initial pass and this is a good start. I'll take another look when the changes we talked about are ready.
onResetModalClose={handleResetClick} | ||
isOpened={isOpen} | ||
handleResetForm={handleResetForm} | ||
resetFormType="basic" |
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.
resetFormType="basic" | |
resetFormType={StepEnum.CONTACTS} |
</Trans> | ||
{isResetAllType ? ( | ||
<Trans> | ||
Click “Reset” to clear and reset the registration form. All data will be |
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.
Click “Reset” to clear and reset the registration form. All data will be | |
Click "Reset" to clear and | |
<Text as="span" fontWeight={'bold'}> | |
{' '} | |
reset the form{' '} | |
</Text>{' '}. All data will be |
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.
{isResetAllType ? ( | ||
<Trans> | ||
Click “Reset” to clear and reset the registration form. All data will be | ||
deleted and you will be re-directed to the beginning of the form and you will |
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.
deleted and you will be re-directed to the beginning of the form and you will | |
deleted and cleared from the registration form. You may want to export the data first. |
<Trans> | ||
Click “Reset” to clear and reset the registration form. All data will be | ||
deleted and you will be re-directed to the beginning of the form and you will | ||
be required to restart the registration process |
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.
be required to restart the registration process | |
After clearing, you will be taken to the start of the form. |
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 not currently taken to the start of the form after clearing. Will this be added or should the copy be updated?
@@ -88,9 +92,9 @@ const ConfirmationResetForm = (props: any) => { | |||
{' '} | |||
this section{' '} | |||
</Text>{' '} | |||
of the registration form. All data will be cleared from only this section of |
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.
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.
Thanks for making changes quickly! If you could double check the copy in the clear section and clear form modals before merging, that would be great. The rest looks good.
<Text as="span" fontWeight={'bold'}> | ||
reset the form. | ||
</Text>{' '} | ||
reset the registration form. All data will be deleted and you will be |
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.
reset the registration form. All data will be deleted and you will be | |
All data will be deleted and cleared |
reset the form. | ||
</Text>{' '} | ||
reset the registration form. All data will be deleted and you will be | ||
re-directed to the beginning of the form and you will be required to restart |
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.
re-directed to the beginning of the form and you will be required to restart | |
from the registration form. You may want to export the data first. |
</Text>{' '} | ||
reset the registration form. All data will be deleted and you will be | ||
re-directed to the beginning of the form and you will be required to restart | ||
the registration process |
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.
the registration process | |
After clearing you will be taken to the start of the form. |
{' '} | ||
this section{' '} | ||
</Text>{' '} | ||
of the form. All data will be deleted and cleared from the registration form. |
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.
of the form. All data will be deleted and cleared from the registration form. | |
of the registration form. All data will be cleared from only this section of the registration form. |
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.
These suggestions should make the Clear & Reset Section
match the Figma file.
this section{' '} | ||
</Text>{' '} | ||
of the form. All data will be deleted and cleared from the registration form. | ||
You may want to export the data first. After clearing, you will be taken to |
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.
You may want to export the data first. After clearing, you will be taken to | |
Other sections of the registration form will not be cleared. |
</Text>{' '} | ||
of the form. All data will be deleted and cleared from the registration form. | ||
You may want to export the data first. After clearing, you will be taken to | ||
the start of the form. |
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.
the start of the form. |
<ModalOverlay /> | ||
<ModalContent width={'100%'}> | ||
<ModalHeader data-testid="confirmation-modal-header" textAlign={'center'}> | ||
<Trans id="Clear & Reset Registration Form">Clear & Reset Registration Form</Trans> | ||
{isResetAllType ? ( | ||
<Trans>Clear & Reset Registration Form</Trans> |
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.
<Trans>Clear & Reset Registration Form</Trans> | |
<Trans>Clear & Reset Form</Trans> |
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.
Scope of changes
This adds clear form refactoring.
Type of change
Acceptance criteria
Describe how reviewers can test this change to be sure that it works correctly. Add a checklist if possible
Author checklist
Reviewer(s) checklist