-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
(feat) - O3-4044 - Ward App - add support for vertical tiling of cards #1331
Conversation
Size Change: +1.03 kB (+0.02%) Total Size: 6.1 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.
Well, that was easy, thanks @chibongho !
Let's make sure once we argue :) and decide what we want we remove this feature flag and either have it always be the way we want it, or make this be a config parameter instead of a feature flag?
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 don't really understand how this works to change from horizontal -> vertical, but works for me :)
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!
Requirements
Summary
https://openmrs.atlassian.net/browse/O3-4044
Current way of tiling bed cards horizontally in the ward view wastes a lot of space. This PR introduces experimental vertical tiling, which can be enabled with a feature flag.
To enable:
localStorage.setItem("openmrs:feature-flag:ward-view-vertical-tiling", "true")
To disable:
localStorage.removeItem("openmrs:feature-flag:ward-view-vertical-tiling")
Screenshots
Before:

After:

Related Issue
Other
As the elements within the bed cards load, the height of each card can change (sometimes drastically). This can make the vertical tiling look jarring. We can fix that in a separate PR if we decide to go with vertical tiling.
Video:
OpenMRS.Mozilla.Firefox.2024-09-30.10-16-43.mp4