Skip to content
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) Add icons for various order types #1259

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vasharma05
Copy link
Member

@vasharma05 vasharma05 commented Jan 7, 2025

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. Ensure your PR title includes a conventional commit label (such as feat, fix, or chore, among others). See existing PR titles for inspiration.

For changes to apps

If applicable

  • My work includes tests or is validated by existing tests.
  • I have updated the esm-framework mock to reflect any API changes I have made.

Summary

This PR adds icons for drug, imaging, procedure, material and referral order types.

Screenshots

None

Related Issue

None

Other

@vasharma05 vasharma05 force-pushed the feat/add-order-pictograms branch from 26151fa to 3b0e489 Compare January 7, 2025 19:52
@vasharma05 vasharma05 requested review from denniskigen, ibacher and usamaidrsk and removed request for denniskigen January 7, 2025 19:52
Copy link
Contributor

github-actions bot commented Jan 7, 2025

Size Change: -145 kB (-2.28%)

Total Size: 6.2 MB

Filename Size Change
packages/shell/esm-app-shell/dist/0030f1956e452721.js 0 B -46.7 kB (removed) 🏆
packages/shell/esm-app-shell/dist/5ac0916f1f09686c.js 0 B -66.3 kB (removed) 🏆
packages/shell/esm-app-shell/dist/openmrs.58c77b1193ccea8c.js 0 B -21.8 kB (removed) 🏆
ℹ️ View Unchanged
Filename Size Change
packages/apps/esm-devtools-app/dist/593.js 149 kB 0 B
packages/apps/esm-devtools-app/dist/642.js 21.1 kB 0 B
packages/apps/esm-devtools-app/dist/657.js 7.02 kB 0 B
packages/apps/esm-devtools-app/dist/735.js 2.63 kB 0 B
packages/apps/esm-devtools-app/dist/762.js 4.1 kB 0 B
packages/apps/esm-devtools-app/dist/788.js 42.9 kB 0 B
packages/apps/esm-devtools-app/dist/875.js 11.6 kB 0 B
packages/apps/esm-devtools-app/dist/889.js 376 kB +954 B (+0.25%)
packages/apps/esm-devtools-app/dist/988.js 326 B 0 B
packages/apps/esm-devtools-app/dist/main.js 3.23 kB 0 B
packages/apps/esm-devtools-app/dist/openmrs-esm-devtools-app.js 3.28 kB 0 B
packages/apps/esm-help-menu-app/dist/167.js 1.07 kB 0 B
packages/apps/esm-help-menu-app/dist/248.js 9.89 kB 0 B
packages/apps/esm-help-menu-app/dist/611.js 2.45 kB 0 B
packages/apps/esm-help-menu-app/dist/642.js 21.1 kB 0 B
packages/apps/esm-help-menu-app/dist/657.js 7.02 kB 0 B
packages/apps/esm-help-menu-app/dist/662.js 147 kB 0 B
packages/apps/esm-help-menu-app/dist/735.js 2.63 kB 0 B
packages/apps/esm-help-menu-app/dist/788.js 42.9 kB 0 B
packages/apps/esm-help-menu-app/dist/889.js 376 kB +954 B (+0.25%)
packages/apps/esm-help-menu-app/dist/958.js 3.74 kB 0 B
packages/apps/esm-help-menu-app/dist/main.js 8.56 kB 0 B
packages/apps/esm-help-menu-app/dist/openmrs-esm-help-menu-app.js 3.23 kB 0 B
packages/apps/esm-implementer-tools-app/dist/1491.js 134 kB 0 B
packages/apps/esm-implementer-tools-app/dist/1644.js 758 B 0 B
packages/apps/esm-implementer-tools-app/dist/1873.js 3.67 kB 0 B
packages/apps/esm-implementer-tools-app/dist/1901.js 590 B 0 B
packages/apps/esm-implementer-tools-app/dist/236.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/2735.js 2.63 kB 0 B
packages/apps/esm-implementer-tools-app/dist/2757.js 716 B 0 B
packages/apps/esm-implementer-tools-app/dist/2788.js 42.9 kB 0 B
packages/apps/esm-implementer-tools-app/dist/3336.js 137 kB 0 B
packages/apps/esm-implementer-tools-app/dist/3448.js 4.66 kB 0 B
packages/apps/esm-implementer-tools-app/dist/3574.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/3652.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/4272.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/4378.js 699 B 0 B
packages/apps/esm-implementer-tools-app/dist/4426.js 27.8 kB 0 B
packages/apps/esm-implementer-tools-app/dist/4460.js 786 B 0 B
packages/apps/esm-implementer-tools-app/dist/4705.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/4889.js 376 kB +955 B (+0.25%)
packages/apps/esm-implementer-tools-app/dist/5240.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/5336.js 591 B 0 B
packages/apps/esm-implementer-tools-app/dist/539.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/5642.js 21.1 kB 0 B
packages/apps/esm-implementer-tools-app/dist/5673.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/5711.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/5737.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/5833.js 727 B 0 B
packages/apps/esm-implementer-tools-app/dist/587.js 2.93 kB 0 B
packages/apps/esm-implementer-tools-app/dist/5962.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/6566.js 700 B 0 B
packages/apps/esm-implementer-tools-app/dist/667.js 121 kB 0 B
packages/apps/esm-implementer-tools-app/dist/6727.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/7036.js 2.5 kB 0 B
packages/apps/esm-implementer-tools-app/dist/744.js 722 B 0 B
packages/apps/esm-implementer-tools-app/dist/7807.js 591 B 0 B
packages/apps/esm-implementer-tools-app/dist/7859.js 3.09 kB 0 B
packages/apps/esm-implementer-tools-app/dist/8271.js 753 B 0 B
packages/apps/esm-implementer-tools-app/dist/8289.js 14.3 kB 0 B
packages/apps/esm-implementer-tools-app/dist/8319.js 687 B 0 B
packages/apps/esm-implementer-tools-app/dist/8323.js 591 B 0 B
packages/apps/esm-implementer-tools-app/dist/845.js 6.43 kB 0 B
packages/apps/esm-implementer-tools-app/dist/8657.js 7.02 kB 0 B
packages/apps/esm-implementer-tools-app/dist/8788.js 590 B 0 B
packages/apps/esm-implementer-tools-app/dist/899.js 590 B 0 B
packages/apps/esm-implementer-tools-app/dist/9261.js 592 B 0 B
packages/apps/esm-implementer-tools-app/dist/9441.js 4.38 kB 0 B
packages/apps/esm-implementer-tools-app/dist/9579.js 591 B 0 B
packages/apps/esm-implementer-tools-app/dist/main.js 21 kB 0 B
packages/apps/esm-implementer-tools-app/dist/openmrs-esm-implementer-tools-app.js 3.4 kB 0 B
packages/apps/esm-login-app/dist/202.js 2.57 kB 0 B
packages/apps/esm-login-app/dist/211.js 35 kB 0 B
packages/apps/esm-login-app/dist/236.js 777 B 0 B
packages/apps/esm-login-app/dist/240.js 842 B 0 B
packages/apps/esm-login-app/dist/261.js 753 B 0 B
packages/apps/esm-login-app/dist/271.js 936 B 0 B
packages/apps/esm-login-app/dist/272.js 765 B 0 B
packages/apps/esm-login-app/dist/319.js 868 B 0 B
packages/apps/esm-login-app/dist/323.js 1.12 kB 0 B
packages/apps/esm-login-app/dist/336.js 838 B 0 B
packages/apps/esm-login-app/dist/378.js 879 B 0 B
packages/apps/esm-login-app/dist/415.js 26.7 kB 0 B
packages/apps/esm-login-app/dist/460.js 991 B 0 B
packages/apps/esm-login-app/dist/539.js 783 B 0 B
packages/apps/esm-login-app/dist/566.js 907 B 0 B
packages/apps/esm-login-app/dist/574.js 752 B 0 B
packages/apps/esm-login-app/dist/579.js 751 B 0 B
packages/apps/esm-login-app/dist/593.js 149 kB 0 B
packages/apps/esm-login-app/dist/625.js 753 B 0 B
packages/apps/esm-login-app/dist/63.js 16.5 kB 0 B
packages/apps/esm-login-app/dist/642.js 21.1 kB 0 B
packages/apps/esm-login-app/dist/644.js 934 B 0 B
packages/apps/esm-login-app/dist/652.js 753 B 0 B
packages/apps/esm-login-app/dist/657.js 7.02 kB 0 B
packages/apps/esm-login-app/dist/673.js 792 B 0 B
packages/apps/esm-login-app/dist/676.js 2.23 kB 0 B
packages/apps/esm-login-app/dist/7.js 3.03 kB 0 B
packages/apps/esm-login-app/dist/705.js 753 B 0 B
packages/apps/esm-login-app/dist/711.js 752 B 0 B
packages/apps/esm-login-app/dist/727.js 752 B 0 B
packages/apps/esm-login-app/dist/735.js 2.62 kB 0 B
packages/apps/esm-login-app/dist/737.js 752 B 0 B
packages/apps/esm-login-app/dist/744.js 1.01 kB 0 B
packages/apps/esm-login-app/dist/755.js 3.36 kB 0 B
packages/apps/esm-login-app/dist/757.js 913 B 0 B
packages/apps/esm-login-app/dist/788.js 42.9 kB 0 B
packages/apps/esm-login-app/dist/807.js 1.05 kB 0 B
packages/apps/esm-login-app/dist/833.js 889 B 0 B
packages/apps/esm-login-app/dist/859.js 3.08 kB 0 B
packages/apps/esm-login-app/dist/889.js 376 kB +955 B (+0.25%)
packages/apps/esm-login-app/dist/899.js 750 B 0 B
packages/apps/esm-login-app/dist/901.js 751 B 0 B
packages/apps/esm-login-app/dist/93.js 2.16 kB 0 B
packages/apps/esm-login-app/dist/962.js 753 B 0 B
packages/apps/esm-login-app/dist/main.js 63.1 kB 0 B
packages/apps/esm-login-app/dist/openmrs-esm-login-app.js 3.46 kB 0 B
packages/apps/esm-offline-tools-app/dist/236.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/240.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/261.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/271.js 1.19 kB 0 B
packages/apps/esm-offline-tools-app/dist/272.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/319.js 1.16 kB 0 B
packages/apps/esm-offline-tools-app/dist/323.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/336.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/378.js 1.17 kB 0 B
packages/apps/esm-offline-tools-app/dist/460.js 1.3 kB 0 B
packages/apps/esm-offline-tools-app/dist/539.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/566.js 1.17 kB 0 B
packages/apps/esm-offline-tools-app/dist/574.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/579.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/601.js 142 kB 0 B
packages/apps/esm-offline-tools-app/dist/625.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/63.js 16.5 kB 0 B
packages/apps/esm-offline-tools-app/dist/642.js 21.1 kB 0 B
packages/apps/esm-offline-tools-app/dist/644.js 1.19 kB 0 B
packages/apps/esm-offline-tools-app/dist/645.js 91.6 kB 0 B
packages/apps/esm-offline-tools-app/dist/652.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/657.js 7.02 kB 0 B
packages/apps/esm-offline-tools-app/dist/673.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/703.js 6.32 kB 0 B
packages/apps/esm-offline-tools-app/dist/705.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/711.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/727.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/735.js 2.63 kB 0 B
packages/apps/esm-offline-tools-app/dist/737.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/744.js 1.28 kB 0 B
packages/apps/esm-offline-tools-app/dist/757.js 1.19 kB 0 B
packages/apps/esm-offline-tools-app/dist/788.js 42.9 kB 0 B
packages/apps/esm-offline-tools-app/dist/807.js 1.1 kB 0 B
packages/apps/esm-offline-tools-app/dist/833.js 1.21 kB 0 B
packages/apps/esm-offline-tools-app/dist/859.js 3.09 kB 0 B
packages/apps/esm-offline-tools-app/dist/889.js 376 kB +955 B (+0.25%)
packages/apps/esm-offline-tools-app/dist/899.js 1.02 kB 0 B
packages/apps/esm-offline-tools-app/dist/901.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/947.js 8.66 kB 0 B
packages/apps/esm-offline-tools-app/dist/962.js 1.03 kB 0 B
packages/apps/esm-offline-tools-app/dist/main.js 107 kB 0 B
packages/apps/esm-offline-tools-app/dist/openmrs-esm-offline-tools-app.js 3.39 kB 0 B
packages/apps/esm-primary-navigation-app/dist/236.js 239 B 0 B
packages/apps/esm-primary-navigation-app/dist/238.js 147 kB 0 B
packages/apps/esm-primary-navigation-app/dist/240.js 240 B 0 B
packages/apps/esm-primary-navigation-app/dist/261.js 241 B 0 B
packages/apps/esm-primary-navigation-app/dist/271.js 282 B 0 B
packages/apps/esm-primary-navigation-app/dist/272.js 240 B 0 B
packages/apps/esm-primary-navigation-app/dist/319.js 246 B 0 B
packages/apps/esm-primary-navigation-app/dist/323.js 240 B 0 B
packages/apps/esm-primary-navigation-app/dist/336.js 240 B 0 B
packages/apps/esm-primary-navigation-app/dist/378.js 267 B 0 B
packages/apps/esm-primary-navigation-app/dist/459.js 8.64 kB 0 B
packages/apps/esm-primary-navigation-app/dist/460.js 277 B 0 B
packages/apps/esm-primary-navigation-app/dist/482.js 15.2 kB 0 B
packages/apps/esm-primary-navigation-app/dist/539.js 239 B 0 B
packages/apps/esm-primary-navigation-app/dist/566.js 262 B 0 B
packages/apps/esm-primary-navigation-app/dist/574.js 240 B 0 B
packages/apps/esm-primary-navigation-app/dist/579.js 240 B 0 B
packages/apps/esm-primary-navigation-app/dist/619.js 6.45 kB 0 B
packages/apps/esm-primary-navigation-app/dist/625.js 241 B 0 B
packages/apps/esm-primary-navigation-app/dist/63.js 16.5 kB 0 B
packages/apps/esm-primary-navigation-app/dist/644.js 290 B 0 B
packages/apps/esm-primary-navigation-app/dist/652.js 241 B 0 B
packages/apps/esm-primary-navigation-app/dist/657.js 7.03 kB 0 B
packages/apps/esm-primary-navigation-app/dist/673.js 240 B 0 B
packages/apps/esm-primary-navigation-app/dist/705.js 241 B 0 B
packages/apps/esm-primary-navigation-app/dist/711.js 240 B 0 B
packages/apps/esm-primary-navigation-app/dist/727.js 240 B 0 B
packages/apps/esm-primary-navigation-app/dist/735.js 2.63 kB 0 B
packages/apps/esm-primary-navigation-app/dist/737.js 240 B 0 B
packages/apps/esm-primary-navigation-app/dist/744.js 288 B 0 B
packages/apps/esm-primary-navigation-app/dist/757.js 244 B 0 B
packages/apps/esm-primary-navigation-app/dist/788.js 42.9 kB 0 B
packages/apps/esm-primary-navigation-app/dist/807.js 301 B 0 B
packages/apps/esm-primary-navigation-app/dist/833.js 282 B 0 B
packages/apps/esm-primary-navigation-app/dist/888.js 24.8 kB 0 B
packages/apps/esm-primary-navigation-app/dist/889.js 376 kB +953 B (+0.25%)
packages/apps/esm-primary-navigation-app/dist/899.js 237 B 0 B
packages/apps/esm-primary-navigation-app/dist/901.js 239 B 0 B
packages/apps/esm-primary-navigation-app/dist/933.js 3.63 kB 0 B
packages/apps/esm-primary-navigation-app/dist/962.js 241 B 0 B
packages/apps/esm-primary-navigation-app/dist/main.js 30.3 kB 0 B
packages/apps/esm-primary-navigation-app/dist/openmrs-esm-primary-navigation-app.js 3.38 kB 0 B
packages/framework/esm-api/dist/openmrs-esm-api.js 16.9 kB 0 B
packages/framework/esm-config/dist/openmrs-esm-module-config.js 8.42 kB 0 B
packages/framework/esm-context/dist/openmrs-esm-context.js 1.16 kB 0 B
packages/framework/esm-dynamic-loading/dist/openmrs-esm-dynamic-loading.js 2.89 kB 0 B
packages/framework/esm-error-handling/dist/openmrs-esm-error-handling.js 891 B 0 B
packages/framework/esm-expression-evaluator/dist/openmrs-esm-expression-evaluator.js 9.02 kB 0 B
packages/framework/esm-extensions/dist/openmrs-esm-extensions.js 25.3 kB 0 B
packages/framework/esm-feature-flags/dist/openmrs-esm-feature-flags.js 1.66 kB 0 B
packages/framework/esm-framework/dist/278.openmrs-esm-framework.js 14.5 kB 0 B
packages/framework/esm-framework/dist/530.openmrs-esm-framework.js 2.93 kB 0 B
packages/framework/esm-framework/dist/588.openmrs-esm-framework.js 2.15 kB 0 B
packages/framework/esm-framework/dist/619.openmrs-esm-framework.js 6.49 kB 0 B
packages/framework/esm-framework/dist/645.openmrs-esm-framework.js 9.3 kB 0 B
packages/framework/esm-framework/dist/735.openmrs-esm-framework.js 2.65 kB 0 B
packages/framework/esm-framework/dist/746.openmrs-esm-framework.js 6.14 kB 0 B
packages/framework/esm-framework/dist/788.openmrs-esm-framework.js 42.9 kB 0 B
packages/framework/esm-framework/dist/openmrs-esm-framework.js 459 kB +169 B (+0.04%)
packages/framework/esm-globals/dist/openmrs-esm-globals.js 791 B 0 B
packages/framework/esm-navigation/dist/openmrs-esm-navigation.js 9.34 kB 0 B
packages/framework/esm-offline/dist/openmrs-esm-offline.js 34.4 kB 0 B
packages/framework/esm-react-utils/dist/openmrs-esm-react-utils.js 22 kB 0 B
packages/framework/esm-routes/dist/openmrs-esm-utils.js 4.68 kB 0 B
packages/framework/esm-state/dist/openmrs-esm-state.js 1.59 kB 0 B
packages/framework/esm-styleguide/dist/openmrs-esm-styleguide.js 195 kB +928 B (+0.48%)
packages/framework/esm-translations/dist/openmrs-esm-core-translations.js 1.89 kB 0 B
packages/framework/esm-utils/dist/openmrs-esm-utils.js 45.5 kB 0 B
packages/shell/esm-app-shell/dist/02af6181aebfc3a3.js 172 kB 0 B
packages/shell/esm-app-shell/dist/0bf5f337a1bf9187.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/0e8ae674954c0c22.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/1af7a4d6b41cd1cd.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/2ecffd6094f75ff7.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/358c311631fbf075.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/38d4b8fb75f8850c.js 18.3 kB 0 B
packages/shell/esm-app-shell/dist/3b01402cd7292844.js 2.85 kB 0 B
packages/shell/esm-app-shell/dist/4bc75ee78353dab4.js 1.19 kB 0 B
packages/shell/esm-app-shell/dist/4c46128f5543a744.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/53baea24a93b42fc.js 0 B -7.12 kB (removed) 🏆
packages/shell/esm-app-shell/dist/572e81f004cc10c5.js 15.1 kB 0 B
packages/shell/esm-app-shell/dist/58675205690e717d.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/5af0efb6dbd89b3a.js 7.17 kB 0 B
packages/shell/esm-app-shell/dist/5bd4d5d1e74e6532.js 1.2 kB 0 B
packages/shell/esm-app-shell/dist/6f47008d9c93c1cb.js 3.33 kB 0 B
packages/shell/esm-app-shell/dist/71ab27e0b8d1949e.js 2.58 kB 0 B
packages/shell/esm-app-shell/dist/7245ef51b3517bf9.js 1.06 kB 0 B
packages/shell/esm-app-shell/dist/79e0fe636d1ed41c.js 1.59 kB 0 B
packages/shell/esm-app-shell/dist/7b204450699b0daf.js 2.6 kB 0 B
packages/shell/esm-app-shell/dist/833266e5b57b6c3e.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/89207e71b7e535a3.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/8c23534022bd2cd3.js 66.4 kB 0 B
packages/shell/esm-app-shell/dist/8e0d11f862dfbba6.js 626 B 0 B
packages/shell/esm-app-shell/dist/932785417ef383b8.js 6.99 kB 0 B
packages/shell/esm-app-shell/dist/935dd2c6ef71ecc9.js 1.07 kB 0 B
packages/shell/esm-app-shell/dist/965c9d9f6a80b848.js 1.31 kB 0 B
packages/shell/esm-app-shell/dist/9af438c9d7c57d05.js 3.96 kB 0 B
packages/shell/esm-app-shell/dist/9c36bff0a4f1503e.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/9f45975dde77f07d.js 1.31 kB 0 B
packages/shell/esm-app-shell/dist/a528b4b01d62ed17.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/a6a47d287599a0c6.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/a7792d6252d85b20.js 43 kB 0 B
packages/shell/esm-app-shell/dist/a7efa2596cd2be4f.js 168 kB 0 B
packages/shell/esm-app-shell/dist/b407f548b6fadfa3.js 3.08 kB 0 B
packages/shell/esm-app-shell/dist/b500f36d715a6ea5.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/b87a5878f8961d1a.js 2.23 kB 0 B
packages/shell/esm-app-shell/dist/b88532bde74b513a.js 9.41 kB 0 B
packages/shell/esm-app-shell/dist/bb04bb60f8aa150f.js 3.04 kB 0 B
packages/shell/esm-app-shell/dist/bd8148abf2d524fc.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/c9ba768259e8702c.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/c9bc7c77210219a8.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/cc0d293bb9b870d9.js 3.38 kB 0 B
packages/shell/esm-app-shell/dist/ce3732f7d7483fdb.js 0 B -5.95 kB (removed) 🏆
packages/shell/esm-app-shell/dist/cfbdc202f554566e.js 1.19 kB 0 B
packages/shell/esm-app-shell/dist/d5082a5140f450d7.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/d80423830df5e906.js 1.31 kB 0 B
packages/shell/esm-app-shell/dist/d80464c66e5d20d7.js 3.23 kB 0 B
packages/shell/esm-app-shell/dist/dd0262d4e75c15f8.js 1.35 kB 0 B
packages/shell/esm-app-shell/dist/df7d4d5adc26ef20.js 5.95 kB 0 B
packages/shell/esm-app-shell/dist/e419a658f4742c3e.js 9.36 kB 0 B
packages/shell/esm-app-shell/dist/ea114697cfb59962.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/f368b00f4e1695a5.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/f5c65190072bb3f7.js 626 B 0 B
packages/shell/esm-app-shell/dist/f6c843b8e18d6149.js 1.29 kB 0 B
packages/shell/esm-app-shell/dist/f9436d6c87d5f5fa.js 49 kB 0 B
packages/shell/esm-app-shell/dist/fcb385df17a82210.js 6.77 kB 0 B
packages/shell/esm-app-shell/dist/ff8fd36f7a9ca50a.js 0 B -3.91 kB (removed) 🏆
packages/shell/esm-app-shell/dist/openmrs.09cc0598669bf18b.js 21.8 kB 0 B
packages/shell/esm-app-shell/dist/service-worker.js 46.7 kB +3 B (+0.01%)
packages/tooling/openmrs/dist/cli.js 2.84 kB 0 B
packages/tooling/openmrs/dist/commands/assemble.js 3.31 kB 0 B
packages/tooling/openmrs/dist/commands/build.js 1.34 kB 0 B
packages/tooling/openmrs/dist/commands/debug.js 543 B 0 B
packages/tooling/openmrs/dist/commands/develop.js 2.71 kB 0 B
packages/tooling/openmrs/dist/commands/index.js 437 B 0 B
packages/tooling/openmrs/dist/commands/start.js 850 B 0 B
packages/tooling/openmrs/dist/index.js 517 B 0 B
packages/tooling/openmrs/dist/runner.js 640 B 0 B
packages/tooling/openmrs/dist/utils/config.js 726 B 0 B
packages/tooling/openmrs/dist/utils/debugger.js 575 B 0 B
packages/tooling/openmrs/dist/utils/dependencies.js 643 B 0 B
packages/tooling/openmrs/dist/utils/helpers.js 397 B 0 B
packages/tooling/openmrs/dist/utils/importmap.js 3.21 kB 0 B
packages/tooling/openmrs/dist/utils/index.js 443 B 0 B
packages/tooling/openmrs/dist/utils/logger.js 368 B 0 B
packages/tooling/openmrs/dist/utils/npmConfig.js 831 B 0 B
packages/tooling/openmrs/dist/utils/untar.js 725 B 0 B
packages/tooling/openmrs/dist/utils/variables.js 192 B 0 B
packages/tooling/openmrs/dist/utils/webpack.js 278 B 0 B
packages/tooling/webpack-config/dist/index.js 3.61 kB 0 B

compressed-size-action

@ibacher
Copy link
Member

ibacher commented Jan 7, 2025

So, this needs a few changes.

  1. Pictograms are these things , i.e., SVGs rendered at the top of the app in 92x92 format. These are much closer to icons.
  2. The icons we use are SVGs with a 16x16 viewport. These SVGs are 24x24. Normally, I've just asked Sonder to convert things into the correct format.
  3. Both icons and pictograms should be uncolored, which means we need to somewhat modify those SVGs to remove the fills, etc.

@vasharma05
Copy link
Member Author

Hi @ibacher!

The icons we use are SVGs with a 16x16 viewport. These SVGs are 24x24. Normally, I've just asked Sonder to convert things into the correct format.

Yeah, I tried removing the size factor from these SVGs, but wasn't being able to do the same.

Both icons and pictograms should be uncolored, which means we need to somewhat modify those SVGs to remove the fills, etc.

Yes, they should be uncolored, but as per designs for the order basket, these pictograms are colored, I have asked for these icons from this slack thread: https://openmrs.slack.com/archives/C06SSBQ7FPU/p1733426639388409

Thanks!

@vasharma05 vasharma05 changed the title (feat) Add pictograms for various order types (feat) Add icons for various order types Jan 9, 2025
@ibacher
Copy link
Member

ibacher commented Jan 9, 2025

Yeah, I tried removing the size factor from these SVGs, but wasn't being able to do the same.

Basically, the problem here is that neither the pictogram nor icon setups are really that adaptable. The SVGs need to be in the expected viewport size or else they won't render correctly. So either we need versions of these upscaled to a 80x80 view box (sorry, that's the actual view port size of the pictograms) or downscaled to a 16x16 view box or we need a new custom component for images with a viewbox sized to the size of these. These won't render correctly without one of those three things being done.

Yes, they should be uncolored, but as per designs for the order basket, these pictograms are colored

Hmmm... maybe we should treat them more similarly to pictograms then. They'll still need to be either resized or will need a custom component, I think to make things work correctly.

@vasharma05
Copy link
Member Author

Hi @ibacher, as I confirmed from the designs, these icons are meant to be 24px in size, instead of 16px.

@ibacher
Copy link
Member

ibacher commented Jan 10, 2025

@vasharma05 The size that they are meant to displayed at here is irrelevant. We can support that. It's an SVG. The problem is that the Icon component is designed to work with SVGs that have a 16 x 16 view box. That view box can be scaled to whatever size we need, but if the SVGs added don't conform to the right view box size, then then won't be rendered correctly.

What's going to happen is that the Icon thing will pick out a 16x16 view box from the 24x24 image, dropping everything that doesn't fix, so the image will not look right.

Similarly, the Pictogram really only works with images built with an 80x80 view box. Again, this can be scaled up to 160px x 160px or down to 24px x 24px, but if the underlying SVGs don't render into the same size view box we will either lose parts of the icons or they will display in a very small size (e.g., by padding a 24x24 image into an 80x80 image).

Basically, our SVGs need to be in standardized view boxes for the icon and pictogram framework to work. This is also true of, e.g., Carbon's icons, which are rendered in a 20x20 view box, but can be scaled to whatever number of pixels is required.

@vasharma05
Copy link
Member Author

Hi @ibacher, I have updated the icons and have also added icon for Drug order

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this just a colorized version of user-xray? I'm not sure we need this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually makes me think we should go back to stripping the fills from these icons and set them at the point we're rendering them and need the colors (none of these icons have more than two colors, so we can handle it as fill and background-color.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ibacher, I accept that we can fill the colors using the background-color and fill. But, I have 2 points to consider, 1. These icons are specific to the order basket, and secondly, we are able to add the order types in the order basket via configuration, hence defining the background-color and fill will be something that will have to handled by configuration. Something similar being faced with the order type colors, for which I created a PR here: openmrs/openmrs-esm-patient-chart#2188

Either we don't put any colors in the SVGs, or we should keep the icons as is. I am hoping to pass SVG registration name in the configuration as is implemented here and here. Similar are implemented for General Order types.
Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also to add to the above points, the icons will have to modified, because the icon size is smaller than the viewbox to fill in the background colors, hence these icons will appear smaller than the rest of the icons, something which will have to be taken care by the developer implementing these icons, instead of using them out of styleguide directly.
Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ian, your final thoughts on this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I honestly don't think this "new order types through configuration" is a fully-baked idea. Even though it's achievable in the order basket, I can't think of a scenario where we don't also need a paired app to handle tracking the orders or at least ensuring they end up somewhere, like we do with medications and tests. And once we do that, the need for defining order types via configuration just seems to be creating work in two different places. This whole approach to me looks like a first draft that's going to need to be heavily revised. (The only example I can think of is a maybe a referral order which transfers at least an aspect of a patient's care to another clinic or organization).

Each order type is handled via a different workflow, usually that goes to different staff to handle who do not need to interact with the rest of the system. E.g., a radiology order goes to the imaging department which only handles imaging orders. They'd need something like the dispensing app: a specific view that queues up imaging orders that have been placed, tracks certain patient data and allows them to submit the report of the reading, and potentially a link to the PACS. Procedure orders, meanwhile, are handled by the provider performing the procedure. For surgical orders, the first thing they may need to do is locate an appropriate OR on the schedule, add a slot to the schedule, perform the procedure and then report any outcomes (which may be notes or results depending on the procedure type.

In short, I don't see how we build something that's long-term usable without building a focused app for it and, at that point, I don't see the value proposition of being able to define orders via configuration.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the icon size is smaller than the viewbox to fill in the background colors

Every icon has a certain amount of padding. All we've done is remove colors, not change the drawing. Note that every icon we get is always colored, they're just usually black.

These icons are specific to the order basket

In what way? These icons are being used in the order basket in the designs, but the actual images are not necessarily unique to the order basket, thus, for example, thisimaging-order icon is the exact image that we have as the user-xray icon, except that one is colored green and the other isn't and I think that applies to all of these—even if we don't use them yet, there's no reason that, e.g., the Rx icon is only going to be used here.

I also want to point out that if the argument here is that we need to support users adding custom order types, then we want to make it as flexible as possible for users to add icons for those new order types, i.e., it makes it ridiculous if I can add an order type via config, but get the icon for it, I need to make a PR to update the styleguide. So that seems to suggest that we really should support specifying the background and fill colors via configuration, because then I can define an order type and reuse an existing icon for it.

I'm not trying to be difficult here; I'm trying to make sure that we're not committing stuff that's going to require lots of churn. O3 is meant to be becoming stable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I honestly don't think this "new order types through configuration" is a fully-baked idea. Even though it's achievable in the order basket, I can't think of a scenario where we don't also need a paired app to handle tracking the orders or at least ensuring they end up somewhere, like we do with medications and tests. And once we do that, the need for defining order types via configuration just seems to be creating work in two different places. This whole approach to me looks like a first draft that's going to need to be heavily revised. (The only example I can think of is a maybe a referral order which transfers at least an aspect of a patient's care to another clinic or organization).

Each order type is handled via a different workflow, usually that goes to different staff to handle who do not need to interact with the rest of the system. E.g., a radiology order goes to the imaging department which only handles imaging orders. They'd need something like the dispensing app: a specific view that queues up imaging orders that have been placed, tracks certain patient data and allows them to submit the report of the reading, and potentially a link to the PACS. Procedure orders, meanwhile, are handled by the provider performing the procedure. For surgical orders, the first thing they may need to do is locate an appropriate OR on the schedule, add a slot to the schedule, perform the procedure and then report any outcomes (which may be notes or results depending on the procedure type.

In short, I don't see how we build something that's long-term usable without building a focused app for it and, at that point, I don't see the value proposition of being able to define orders via configuration.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the icon size is smaller than the viewbox to fill in the background colors

Every icon has a certain amount of padding. All we've done is remove colors, not change the drawing. Note that every icon we get is always colored, they're just usually black.

These icons are specific to the order basket

In what way? These icons are being used in the order basket in the designs, but the actual images are not necessarily unique to the order basket, thus, for example, thisimaging-order icon is the exact image that we have as the user-xray icon, except that one is colored green and the other isn't and I think that applies to all of these—even if we don't use them yet, there's no reason that, e.g., the Rx icon is only going to be used here.

I also want to point out that if the argument here is that we need to support users adding custom order types, then we want to make it as flexible as possible for users to add icons for those new order types, i.e., it makes it ridiculous if I can add an order type via config, but get the icon for it, I need to make a PR to update the styleguide. So that seems to suggest that we really should support specifying the background and fill colors via configuration, because then I can define an order type and reuse an existing icon for it.

I'm not trying to be difficult here; I'm trying to make sure that we're not committing stuff that's going to require lots of churn. O3 is meant to be becoming stable.

Comment on lines +87 to +91
export const ImagingOrderIcon = () => <span>ImagingOrderIcon</span>;
export const MaterialOrderIcon = () => <span>MaterialOrderIcon</span>;
export const ProcedureOrderIcon = () => <span>ProcedureOrderIcon</span>;
export const ReferralOrderIcon = () => <span>ReferralOrderIcon</span>;
export const DrugOrderIcon = () => <span>DrugOrderIcon</span>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep these alphabetized? It makes it easier for us to ensure that all the icons are created.

*/
export const DrugOrderIcon = memo(
forwardRef<SVGSVGElement, IconProps>(function DrugOrderIcon(props, ref) {
return <Icon ref={ref} icon="omrs-icon-drug-order" iconProps={props} />;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're adding colorized icons, I can see having a new naming convention for the colored versions. However, we should be consistent...

@ibacher
Copy link
Member

ibacher commented Jan 17, 2025

To be clear about the status here, I'll approve this if you can address the two small technical comments.

@vasharma05
Copy link
Member Author

Yes @ibacher , I'll make the changes. Thanks a lot for the above explanations, I align with them.
Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants