-
Notifications
You must be signed in to change notification settings - Fork 248
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
(fix) O3-2907: Always show order type filters in the order details table #1706
Conversation
@mccarthyaaron, thanks for the PR. I think the ideal approach here is moving the Dropdown filter out of the data tile, like so: dropdown-filters.mp4This change gets the UI/UX in line with the rest of the app. The other thing I'd recommend is customising the empty state tiles to reflect the related order type. So, |
Thanks @denniskigen for the feedback. Let me work on it |
…isplay while still allowing user to switch between filters
- Spacing fixes for drug orders - Add expand all toggle to TableHeader
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, @mccarthyaaron!
…ble (openmrs#1706) * Added an <EmptyData>-like component for when there are no orders to display while still allowing user to switch between filters * Take the filter component out of the data tile * display text for the EmptyState depends on the currently selected order type * Remove unused imports that were previously imported and used * Miscellaneous tweaks - Spacing fixes for drug orders - Add expand all toggle to TableHeader --------- Co-authored-by: Dennis Kigen <[email protected]>
Requirements
Summary
Issue: When the user selects a filter(All, Drug Order, Test Order) and there are no entries to display for the given the filter, the
<EmptyState/>
component is rendered which does not provide an option for the user to undo the filter and select another one.Suggested solution: Display the component that includes the filter in both cases i.e when there are entries to display and zero entries. With entries to display, show the and with zero entries display a UI that resembles the component but without the header part of it.
Screenshots
O3-2907.mp4
Related Issue
https://openmrs.atlassian.net/browse/O3-2907