-
Notifications
You must be signed in to change notification settings - Fork 249
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
O3-1713: Order basket drug search implemented with SWR #922
Conversation
Size Change: -169 kB (-3%) Total Size: 5.72 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.
This is great!
...dications-app/src/order-basket/order-basket-search/order-basket-search-results.component.tsx
Outdated
Show resolved
Hide resolved
Hi @FlorianRappl, I've done the requested changes. Please re-review the changes. |
…ient-chart into O3-1713-drug-search-fix
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.
Great - well, maybe let's have one more micro optimization in there ;)
...dications-app/src/order-basket/order-basket-search/order-basket-search-results.component.tsx
Outdated
Show resolved
Hide resolved
...es/esm-patient-medications-app/src/order-basket/order-basket-search/drug-search.resource.tsx
Show resolved
Hide resolved
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.
Mainly looks great, just a small code improvement suggestion
...dications-app/src/order-basket/order-basket-search/order-basket-search-results.component.tsx
Outdated
Show resolved
Hide resolved
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.
Very nice work @vasharma05 this will really improve the experience with the drug ordering. Feel free to merge after everything is ready.
…ient-chart into O3-1713-drug-search-fix
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!
Hey, @vasharma05, superb work! Could you get rid of this line. I suspect this is what's cancelling the encounter request when a user launches the order basket in the workspace for the first time.
|
...dications-app/src/order-basket/order-basket-search/order-basket-search-results.component.tsx
Show resolved
Hide resolved
hasIconOnly={true} | ||
renderIcon={(props) => <ShoppingCart size={16} {...props} />} | ||
iconDescription={t('directlyAddToBasket', 'Immediately add to basket')} | ||
onClick={() => handleSearchResultClicked(orderItem, true)} |
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.
Thanks a lot!
Duly noted.
Thanks for the helpful observations and suggestions @denniskigen |
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.
Looks great!
...es/esm-patient-medications-app/src/order-basket/order-basket-search/drug-search.resource.tsx
Show resolved
Hide resolved
…ient-chart into O3-1713-drug-search-fix
Thanks a lot for pointing out the changes and useful reviews @FlorianRappl @denniskigen @hadijahkyampeire! |
…ient-chart into O3-1713-drug-search-fix
Requirements
Summary
This PR introduces the following changes:
searchMedications
function previously used to order medications withuseDrugSearch
Screenshots
Improved skeletons
No results found view
The new and improved flow
Screen.Recording.2022-12-22.at.3.54.12.AM.mov
Tablet view improved
Related Issue
https://issues.openmrs.org/browse/O3-1713
Other