-
Notifications
You must be signed in to change notification settings - Fork 241
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-4211: Reuse patient banner components across search #1483
Conversation
Size Change: -102 kB (-1.6%) Total Size: 6.27 MB
ℹ️ View Unchanged
|
1e6f7fa
to
7f453ee
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! Thanks @denniskigen!
There's this extremely small styling thing that we'll probably need to fix later on where the actions button isn't taking up the entire height similar to how the start visit button or the show more button does:
Yeah, I fixed this issue in openmrs/openmrs-esm-core#1284. The issue here is that bumping the core tooling requires changes to the tests that use the |
Replaces several custom patient banner implementations across patient search interfaces with standardized components from the styleguide. This change: - Removes duplicate patient banner logic and styling - Improves consistency across patient search interfaces - Reduces overall code duplication - Simplifies mapping patient data from REST to FHIR - Reduces maintenance overhead by leveraging shared components - Cleans up redundant CSS rules and improves styling consistency Testing: - Temporarily disabled tests with assertions related to elements in the patient banner. - Added TODOs to restore tests once we improve the stub implementation of the styleguide components (or get rid of them altogether in favor of the actual implementations).
44ae2d4
to
d665f21
Compare
interface IdentifierTagProps { | ||
identifier: Identifier; | ||
} | ||
const getGender = (gender: string) => { |
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.
Does it make sense to refactor this into it's own shared file?
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. Probably makes even more sense to centralize all of the REST to FHIR mapping logic into a reusable hook in a utils file or something similar. I can ticket that and add it to the epic.
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 filed https://openmrs.atlassian.net/browse/O3-4464
I've also filed https://openmrs.atlassian.net/browse/O3-4465 to fix the test stubs. |
Thanks @denniskigen! |
Requirements
Summary
Replaces several custom patient banner implementations across patient search interfaces with standardized components from the styleguide. This change:
Testing:
Screenshots
Basic search on desktop
Advanced search on desktop
Service queues search on desktop
Service queues search on desktop with action buttons clicked
Appointments search on desktop
Appointments search overlay on tablet
Related Issue
https://openmrs.atlassian.net/issues/O3-4211
Other