-
Notifications
You must be signed in to change notification settings - Fork 43
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
🐛 Convert assessment wizard to modal #1486
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1486 +/- ##
==========================================
- Coverage 40.29% 40.22% -0.07%
==========================================
Files 143 143
Lines 4532 4539 +7
Branches 1096 1096
==========================================
Hits 1826 1826
- Misses 2609 2616 +7
Partials 97 97
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
@ibolton336 this mostly LGTM, but with the wizard in a modal it should have a WizardHeader
at the top passed in via the header
prop of Wizard (example here)
I was going to comment about the wizard header as well. With title/sub something like Questionaire/[Title of questionaire]. Also, I was wondering why you hid the button like that instead of using |
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.
21788c3
to
23cb0a7
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.
<Modal | ||
isOpen={isOpen} | ||
onClose={onRequestClose} | ||
showClose={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.
showClose={false} | |
showClose={isFetching || !!fetchError} |
this seems to fix the focus trap issue. it is an issue when you have an error/loader rather than the wizard.
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.
Mostly lgtm, one verbiage comment
@@ -583,13 +583,13 @@ export const AssessmentWizard: React.FC<AssessmentWizardProps> = ({ | |||
<ConfirmDialog | |||
title={t("dialog.title.leavePage")} |
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.
title should probably be changed too. "Close Assessment"? or if you want to use existing message... maybe dialog.title.discard
with Assessment for the what
?
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.
Other possible confirm modal titles:
- "Leave assessment"
- "Confirm cancel"
- "Close wizard"
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.
Code changes LGTM.
The assessment actions page and the wizard all work well.
As already noted, the title for the confirm cancel modal is confusing since the assessment is a wizard and not a page anymore.
cdfc25b
to
1b08eac
Compare
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
… fetch Signed-off-by: ibolton336 <[email protected]>
Signed-off-by: ibolton336 <[email protected]>
1b08eac
to
b50969c
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.
LGTM with a nice confirm title and everything!
Signed-off-by: ibolton336 <[email protected]>
a19a587
to
00a6f39
Compare
Resolves loading state for slow connections & moves the assessment wizard to a modal to simplify code & improve UX. This was approved by Justin from UXD.