-
Notifications
You must be signed in to change notification settings - Fork 245
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) O3-4166 - add option to hide links in vitals header #2090
Conversation
Size Change: +34 B (0%) Total Size: 15.9 MB ℹ️ View Unchanged
|
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 @chibongho LGTM
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. Could we add some test coverage for the new case?
Added tests. I am not sure why, but I couldn't get the test to query the "Record Vitals" button with |
I’ll have a look. Thanks, @chibongho! |
It's because that button text matches two elements: Using a regex match should get it to match the exact text: expect(screen.getByRole('button', { name: /^record vitals$/i })).toBeInTheDocument(); I've pushed a commit fixing it here. |
Requirements
Summary
https://openmrs.atlassian.net/browse/O3-4166
We have a use case to include the vitals header in the ward app, and have it not display any links to the O3 patient chart or launch the record vitals workspace.
I thought about adding a config option in the vitals app to configure custom links and use
<ConfigurableLink>
, but that doesn't let us representlaunchWorkspace
actions.Screenshots
Related Issue
Other