-
Notifications
You must be signed in to change notification settings - Fork 16
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
6272 move status change to footer #6276
Conversation
Bundle size differenceComparing this PR to
|
@@ -46,7 +46,7 @@ export const SplitButton = <T,>({ | |||
<ButtonGroup color={color} variant="outlined" aria-label={ariaLabel}> | |||
<ButtonWithIcon | |||
color={color} | |||
disabled={isDisabled} | |||
disabled={isDisabled || selectedOption.isDisabled} |
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.
Hopefully we are okay with the change?
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 look a little funky!
Does this essentially ensure the currently selected option is greyed out if that's the current status anyway?
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.
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.
Yeah - Mariya's got that in some new designs, I don't think there is a specific issue for it yet though... unless easy to include in your button PR @aimee-mcneil-melville?:
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.
Yeah it sounds straight forward - I'll take a look :)
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 updated the split button to have the rounded corners on the right hand side - I'm not set up for encounters so haven't tested in this area with the disabled split yet
@@ -81,11 +81,15 @@ const useSaveWithStatus = ( | |||
}; | |||
}; | |||
|
|||
const useSaveWithStatusChangeModal = ( | |||
const useSaveWithStatusChange = ( |
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.
just renaming as I'm now using both in and outside of the modal
@@ -133,7 +142,7 @@ export const Footer: FC<FooterProps> = ({ | |||
gap={2} | |||
> | |||
<Typography sx={{ fontSize: 18, fontWeight: 700 }}> | |||
Document Edit History | |||
{t('label.document-edit-history')} |
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.
side quest - missed translation from ages ago!
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 got a db setup for testing this stuff yet, could you flick me your one please?
Looks mint though!
@@ -46,7 +46,7 @@ export const SplitButton = <T,>({ | |||
<ButtonGroup color={color} variant="outlined" aria-label={ariaLabel}> | |||
<ButtonWithIcon | |||
color={color} | |||
disabled={isDisabled} | |||
disabled={isDisabled || selectedOption.isDisabled} |
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 look a little funky!
Does this essentially ensure the currently selected option is greyed out if that's the current status anyway?
Fixes #6272
👩🏻💻 What does this PR do?
Make status change/delete workflows of encounters match those of other features.
Removes status change and delete from toolbar.
Adds delete button to side panel, and status change to footer:
Pre-requisite to hooking into status change logic within vax card.
💌 Any notes for the reviewer?
🧪 Testing
Mark as Visited
by default📃 Documentation
1.
2.