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) O3-3774: Add implementation for the Nav Group #1116

Merged
merged 19 commits into from
Sep 29, 2024

Conversation

hadijahkyampeire
Copy link
Contributor

@hadijahkyampeire hadijahkyampeire commented Aug 16, 2024

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

  • Moved the implementation of Nav Groups to the style guide.

Screenshots

I couldn't link the framework to the patient chart so I tested with the primary navigation app instead and below is a demo.

nav-group-demo.mov
Screenshot 2024-08-22 at 02 13 57

Related Issue

Other

Copy link
Contributor

github-actions bot commented Aug 16, 2024

Size Change: -430 kB (-6.99%) ✅

Total Size: 5.73 MB

Filename Size Change
packages/apps/esm-devtools-app/dist/889.js 324 kB +27.8 kB (+9.41%) 🔍
packages/apps/esm-help-menu-app/dist/889.js 324 kB +27.8 kB (+9.41%) 🔍
packages/apps/esm-implementer-tools-app/dist/775.js 0 B -134 kB (removed) 🏆
packages/apps/esm-implementer-tools-app/dist/889.js 324 kB +27.8 kB (+9.41%) 🔍
packages/apps/esm-login-app/dist/272.js 266 B -24.2 kB (-98.91%) 🏆
packages/apps/esm-login-app/dist/889.js 324 kB +27.8 kB (+9.41%) 🔍
packages/apps/esm-offline-tools-app/dist/18.js 0 B -91.4 kB (removed) 🏆
packages/apps/esm-offline-tools-app/dist/889.js 324 kB +27.8 kB (+9.41%) 🔍
packages/apps/esm-primary-navigation-app/dist/889.js 324 kB +27.8 kB (+9.41%) 🔍
packages/apps/esm-primary-navigation-app/dist/958.js 0 B -24.3 kB (removed) 🏆
packages/framework/esm-framework/dist/openmrs-esm-framework.js 454 kB +24.6 kB (+5.74%) 🔍
packages/framework/esm-styleguide/dist/openmrs-esm-styleguide.js 145 kB +12 kB (+9.08%) 🔍
packages/shell/esm-app-shell/dist/22d2389728f15f76.js 0 B -18.3 kB (removed) 🏆
packages/shell/esm-app-shell/dist/4743b86418f14e15.js 0 B -58.2 kB (removed) 🏆
packages/shell/esm-app-shell/dist/c13eac382178cd3b.js 0 B -167 kB (removed) 🏆
packages/shell/esm-app-shell/dist/d0f08e07f350069d.js 0 B -39 kB (removed) 🏆
packages/shell/esm-app-shell/dist/openmrs.1449dba9368f893b.js 0 B -21.4 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 -1 B (0%)
packages/apps/esm-devtools-app/dist/657.js 7.02 kB -2 B (-0.03%)
packages/apps/esm-devtools-app/dist/735.js 2.63 kB 0 B
packages/apps/esm-devtools-app/dist/762.js 4.1 kB +20 B (+0.49%)
packages/apps/esm-devtools-app/dist/788.js 42.9 kB 0 B
packages/apps/esm-devtools-app/dist/875.js 11.6 kB +21 B (+0.18%)
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 7.07 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 -2 B (-0.01%)
packages/apps/esm-help-menu-app/dist/657.js 7.02 kB -1 B (-0.01%)
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/958.js 3.74 kB +22 B (+0.59%)
packages/apps/esm-help-menu-app/dist/main.js 8.56 kB +21 B (+0.25%)
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/271.js 744 B +21 B (+2.9%)
packages/apps/esm-implementer-tools-app/dist/289.js 14.1 kB +1 B (+0.01%)
packages/apps/esm-implementer-tools-app/dist/319.js 662 B +23 B (+3.6%)
packages/apps/esm-implementer-tools-app/dist/336.js 137 kB 0 B
packages/apps/esm-implementer-tools-app/dist/36.js 2.49 kB 0 B
packages/apps/esm-implementer-tools-app/dist/426.js 27.8 kB 0 B
packages/apps/esm-implementer-tools-app/dist/441.js 4.38 kB 0 B
packages/apps/esm-implementer-tools-app/dist/448.js 4.66 kB +20 B (+0.43%)
packages/apps/esm-implementer-tools-app/dist/460.js 775 B +27 B (+3.61%)
packages/apps/esm-implementer-tools-app/dist/491.js 134 kB 0 B
packages/apps/esm-implementer-tools-app/dist/56.js 0 B -3.08 kB (removed) 🏆
packages/apps/esm-implementer-tools-app/dist/574.js 584 B 0 B
packages/apps/esm-implementer-tools-app/dist/587.js 2.93 kB 0 B
packages/apps/esm-implementer-tools-app/dist/625.js 585 B +21 B (+3.72%)
packages/apps/esm-implementer-tools-app/dist/631.js 0 B -3.45 kB (removed) 🏆
packages/apps/esm-implementer-tools-app/dist/642.js 21.1 kB -1 B (0%)
packages/apps/esm-implementer-tools-app/dist/644.js 739 B +16 B (+2.21%)
packages/apps/esm-implementer-tools-app/dist/657.js 7.03 kB 0 B
packages/apps/esm-implementer-tools-app/dist/667.js 121 kB 0 B
packages/apps/esm-implementer-tools-app/dist/735.js 2.63 kB 0 B
packages/apps/esm-implementer-tools-app/dist/757.js 692 B +129 B (+22.91%) 🚨
packages/apps/esm-implementer-tools-app/dist/788.js 42.9 kB 0 B
packages/apps/esm-implementer-tools-app/dist/807.js 583 B +21 B (+3.74%)
packages/apps/esm-implementer-tools-app/dist/833.js 714 B +23 B (+3.33%)
packages/apps/esm-implementer-tools-app/dist/845.js 6.43 kB 0 B
packages/apps/esm-implementer-tools-app/dist/859.js 3.09 kB 0 B
packages/apps/esm-implementer-tools-app/dist/873.js 3.67 kB 0 B
packages/apps/esm-implementer-tools-app/dist/main.js 20.8 kB +27 B (+0.13%)
packages/apps/esm-implementer-tools-app/dist/openmrs-esm-implementer-tools-app.js 3.4 kB +4 B (+0.12%)
packages/apps/esm-login-app/dist/111.js 0 B -1.22 kB (removed) 🏆
packages/apps/esm-login-app/dist/122.js 0 B -266 B (removed) 🏆
packages/apps/esm-login-app/dist/126.js 0 B -2.5 kB (removed) 🏆
packages/apps/esm-login-app/dist/173.js 0 B -1.22 kB (removed) 🏆
packages/apps/esm-login-app/dist/202.js 2.57 kB 0 B
packages/apps/esm-login-app/dist/224.js 0 B -258 B (removed) 🏆
packages/apps/esm-login-app/dist/236.js 272 B 0 B
packages/apps/esm-login-app/dist/240.js 366 B 0 B
packages/apps/esm-login-app/dist/271.js 874 B -88 B (-9.15%)
packages/apps/esm-login-app/dist/319.js 795 B -84 B (-9.56%) 👏
packages/apps/esm-login-app/dist/336.js 233 B 0 B
packages/apps/esm-login-app/dist/415.js 26.7 kB 0 B
packages/apps/esm-login-app/dist/460.js 867 B -100 B (-10.34%) 👏
packages/apps/esm-login-app/dist/539.js 300 B 0 B
packages/apps/esm-login-app/dist/56.js 0 B -3.07 kB (removed) 🏆
packages/apps/esm-login-app/dist/574.js 687 B 0 B
packages/apps/esm-login-app/dist/593.js 149 kB 0 B
packages/apps/esm-login-app/dist/625.js 688 B -74 B (-9.71%) 👏
packages/apps/esm-login-app/dist/627.js 0 B -258 B (removed) 🏆
packages/apps/esm-login-app/dist/63.js 16.5 kB 0 B
packages/apps/esm-login-app/dist/642.js 21.1 kB -1 B (0%)
packages/apps/esm-login-app/dist/644.js 873 B -89 B (-9.25%)
packages/apps/esm-login-app/dist/657.js 7.02 kB -1 B (-0.01%)
packages/apps/esm-login-app/dist/673.js 286 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/735.js 2.62 kB 0 B
packages/apps/esm-login-app/dist/755.js 3.36 kB 0 B
packages/apps/esm-login-app/dist/757.js 847 B -61 B (-6.72%)
packages/apps/esm-login-app/dist/788.js 42.9 kB 0 B
packages/apps/esm-login-app/dist/80.js 30.6 kB +15 B (+0.05%)
packages/apps/esm-login-app/dist/807.js 1 kB -128 B (-11.35%) 👏
packages/apps/esm-login-app/dist/833.js 815 B -87 B (-9.65%) 👏
packages/apps/esm-login-app/dist/859.js 3.08 kB 0 B
packages/apps/esm-login-app/dist/93.js 2.04 kB 0 B
packages/apps/esm-login-app/dist/main.js 58.9 kB +31 B (+0.05%)
packages/apps/esm-login-app/dist/openmrs-esm-login-app.js 3.46 kB -8 B (-0.23%)
packages/apps/esm-offline-tools-app/dist/224.js 0 B -6.29 kB (removed) 🏆
packages/apps/esm-offline-tools-app/dist/271.js 1.19 kB 0 B
packages/apps/esm-offline-tools-app/dist/319.js 1.13 kB 0 B
packages/apps/esm-offline-tools-app/dist/460.js 1.3 kB 0 B
packages/apps/esm-offline-tools-app/dist/56.js 0 B -3.08 kB (removed) 🏆
packages/apps/esm-offline-tools-app/dist/574.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 -1 B (0%)
packages/apps/esm-offline-tools-app/dist/644.js 1.19 kB 0 B
packages/apps/esm-offline-tools-app/dist/645.js 91.4 kB 0 B
packages/apps/esm-offline-tools-app/dist/657.js 7.02 kB -2 B (-0.03%)
packages/apps/esm-offline-tools-app/dist/703.js 6.32 kB 0 B
packages/apps/esm-offline-tools-app/dist/735.js 2.63 kB 0 B
packages/apps/esm-offline-tools-app/dist/757.js 1.19 kB +3 B (+0.25%)
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/947.js 8.66 kB 0 B
packages/apps/esm-offline-tools-app/dist/main.js 107 kB +33 B (+0.03%)
packages/apps/esm-offline-tools-app/dist/openmrs-esm-offline-tools-app.js 3.39 kB +5 B (+0.15%)
packages/apps/esm-primary-navigation-app/dist/271.js 270 B 0 B
packages/apps/esm-primary-navigation-app/dist/319.js 232 B 0 B
packages/apps/esm-primary-navigation-app/dist/460.js 266 B 0 B
packages/apps/esm-primary-navigation-app/dist/482.js 15.2 kB -2 B (-0.01%)
packages/apps/esm-primary-navigation-app/dist/513.js 146 kB 0 B
packages/apps/esm-primary-navigation-app/dist/574.js 231 B 0 B
packages/apps/esm-primary-navigation-app/dist/577.js 7.64 kB 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 231 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 270 B 0 B
packages/apps/esm-primary-navigation-app/dist/657.js 7.03 kB -1 B (-0.01%)
packages/apps/esm-primary-navigation-app/dist/735.js 2.63 kB 0 B
packages/apps/esm-primary-navigation-app/dist/757.js 237 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 291 B 0 B
packages/apps/esm-primary-navigation-app/dist/833.js 258 B 0 B
packages/apps/esm-primary-navigation-app/dist/888.js 24.5 kB 0 B
packages/apps/esm-primary-navigation-app/dist/933.js 3.63 kB 0 B
packages/apps/esm-primary-navigation-app/dist/main.js 29.9 kB +131 B (+0.44%)
packages/apps/esm-primary-navigation-app/dist/openmrs-esm-primary-navigation-app.js 3.38 kB -2 B (-0.06%)
packages/framework/esm-api/dist/openmrs-esm-api.js 16.2 kB +14 B (+0.09%)
packages/framework/esm-config/dist/openmrs-esm-module-config.js 8.41 kB +331 B (+4.1%)
packages/framework/esm-context/dist/openmrs-esm-context.js 1.16 kB +68 B (+6.22%) 🔍
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 8.54 kB 0 B
packages/framework/esm-extensions/dist/openmrs-esm-extensions.js 24.8 kB +164 B (+0.67%)
packages/framework/esm-feature-flags/dist/openmrs-esm-feature-flags.js 1.66 kB 0 B
packages/framework/esm-framework/dist/126.openmrs-esm-framework.js 0 B -2.14 kB (removed) 🏆
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-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 -10 B (-0.03%)
packages/framework/esm-react-utils/dist/openmrs-esm-react-utils.js 21.9 kB +6.18 kB (+39.2%) 🚨
packages/framework/esm-routes/dist/openmrs-esm-utils.js 4.67 kB 0 B
packages/framework/esm-state/dist/openmrs-esm-state.js 926 B +16 B (+1.76%)
packages/framework/esm-translations/dist/openmrs-esm-core-translations.js 1.87 kB +7 B (+0.37%)
packages/framework/esm-utils/dist/openmrs-esm-utils.js 45.5 kB +27 B (+0.06%)
packages/shell/esm-app-shell/dist/0320f3310a8e6ffd.js 624 B 0 B
packages/shell/esm-app-shell/dist/0d5049faac5190be.js 1.27 kB 0 B
packages/shell/esm-app-shell/dist/0e69d9ec4853cfe2.js 0 B -958 B (removed) 🏆
packages/shell/esm-app-shell/dist/108de29b7c1b7ac8.js 6.99 kB 0 B
packages/shell/esm-app-shell/dist/14be18646eeccd9a.js 0 B -253 B (removed) 🏆
packages/shell/esm-app-shell/dist/160b31a143ce87fb.js 0 B -1.22 kB (removed) 🏆
packages/shell/esm-app-shell/dist/20e2dd6b8ba9fdd0.js 0 B -253 B (removed) 🏆
packages/shell/esm-app-shell/dist/20ee3ecb5d9c7be1.js 2.58 kB 0 B
packages/shell/esm-app-shell/dist/2b553874176a2d5e.js 0 B -912 B (removed) 🏆
packages/shell/esm-app-shell/dist/2cc5179a2a17e577.js 0 B -911 B (removed) 🏆
packages/shell/esm-app-shell/dist/2ddface0d88d7441.js 43 kB 0 B
packages/shell/esm-app-shell/dist/3644c66a25798faa.js 168 kB 0 B
packages/shell/esm-app-shell/dist/39c27dcaf13969ce.js 6.77 kB 0 B
packages/shell/esm-app-shell/dist/4116af32f25f0de0.js 1 kB 0 B
packages/shell/esm-app-shell/dist/4600ae74dce9320d.js 0 B -1.17 kB (removed) 🏆
packages/shell/esm-app-shell/dist/47b4569526a565e6.js 3.04 kB 0 B
packages/shell/esm-app-shell/dist/4d55947c2d077956.js 0 B -1.19 kB (removed) 🏆
packages/shell/esm-app-shell/dist/4ef81ca673948056.js 18.3 kB 0 B
packages/shell/esm-app-shell/dist/5aadd684d60c6888.js 2.23 kB 0 B
packages/shell/esm-app-shell/dist/5d81ff06955da089.js 0 B -1.22 kB (removed) 🏆
packages/shell/esm-app-shell/dist/5e94f186ee2ac104.js 63.5 kB 0 B
packages/shell/esm-app-shell/dist/613d95f10655d313.js 0 B -2.52 kB (removed) 🏆
packages/shell/esm-app-shell/dist/616faac20f8de7c1.js 5.63 kB 0 B
packages/shell/esm-app-shell/dist/654f286016653dbb.js 1 kB 0 B
packages/shell/esm-app-shell/dist/82b941b0585ccaed.js 624 B 0 B
packages/shell/esm-app-shell/dist/85bbfd1b2f124ed9.js 3.33 kB 0 B
packages/shell/esm-app-shell/dist/85d9e1ec051fd113.js 2.84 kB 0 B
packages/shell/esm-app-shell/dist/8685ddd6b3f4f33c.js 40.6 kB 0 B
packages/shell/esm-app-shell/dist/8711659b05d659a3.js 9.36 kB 0 B
packages/shell/esm-app-shell/dist/8c0747baa436c928.js 1.29 kB 0 B
packages/shell/esm-app-shell/dist/8c7c69fc0e32ca48.js 2.6 kB 0 B
packages/shell/esm-app-shell/dist/9233e5f3969e6c53.js 0 B -3.48 kB (removed) 🏆
packages/shell/esm-app-shell/dist/9306486d6a162aea.js 1.59 kB 0 B
packages/shell/esm-app-shell/dist/93f8566244107be0.js 0 B -628 B (removed) 🏆
packages/shell/esm-app-shell/dist/9e544f6471561cb4.js 0 B -912 B (removed) 🏆
packages/shell/esm-app-shell/dist/a05840be5ec988e7.js 1 kB 0 B
packages/shell/esm-app-shell/dist/a0e789646c4db6de.js 15.1 kB 0 B
packages/shell/esm-app-shell/dist/aa470c594fd34373.js 3.71 kB 0 B
packages/shell/esm-app-shell/dist/ab422ab0d9328ddb.js 1 kB 0 B
packages/shell/esm-app-shell/dist/b0cd7ec054cd4b81.js 0 B -6.69 kB (removed) 🏆
packages/shell/esm-app-shell/dist/b16c958eec8c1cf0.js 0 B -628 B (removed) 🏆
packages/shell/esm-app-shell/dist/b23ddf5f93216491.js 1.29 kB 0 B
packages/shell/esm-app-shell/dist/b83e4961d0a5a387.js 0 B -934 B (removed) 🏆
packages/shell/esm-app-shell/dist/b88532bde74b513a.js 9.41 kB 0 B
packages/shell/esm-app-shell/dist/bbed6140658041e0.js 0 B -3.23 kB (removed) 🏆
packages/shell/esm-app-shell/dist/bd742565375867e5.js 172 kB 0 B
packages/shell/esm-app-shell/dist/c3d7542708411421.js 1.02 kB 0 B
packages/shell/esm-app-shell/dist/c975ea09d09269aa.js 0 B -5.53 kB (removed) 🏆
packages/shell/esm-app-shell/dist/d7b53090c51a6e8e.js 0 B -1.19 kB (removed) 🏆
packages/shell/esm-app-shell/dist/d8ae446a9adb1e6a.js 0 B -3.07 kB (removed) 🏆
packages/shell/esm-app-shell/dist/d9baccebfcd84b87.js 1.05 kB 0 B
packages/shell/esm-app-shell/dist/dc69812e79e05b45.js 3.08 kB 0 B
packages/shell/esm-app-shell/dist/f18d405790351f30.js 6.91 kB 0 B
packages/shell/esm-app-shell/dist/f3254390a777963b.js 3.23 kB 0 B
packages/shell/esm-app-shell/dist/f74be95a974424f5.js 3.38 kB 0 B
packages/shell/esm-app-shell/dist/openmrs.43f1a021831f490c.js 21.4 kB 0 B
packages/shell/esm-app-shell/dist/service-worker.js 46.4 kB -10 B (-0.02%)
packages/tooling/openmrs/dist/cli.js 2.96 kB 0 B
packages/tooling/openmrs/dist/commands/assemble.js 3.31 kB -2 B (-0.06%)
packages/tooling/openmrs/dist/commands/build.js 1.34 kB +16 B (+1.21%)
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.07 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

Copy link
Member

@ibacher ibacher left a comment

Choose a reason for hiding this comment

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

I think this PR both extracts too much and too little. The only things we should need to move (AFAICT) are the generic-nav-group and maybe the generic-dashboard. I don't really see the value of or how anyone would even make use of the DashboardGroup stuff generically (it works in the chart, let's keep it there and simplify what this PR needs to do).

@ibacher
Copy link
Member

ibacher commented Aug 20, 2024

So two other things need to happen for this PR to work:

  1. We need to actually register this extension with the extension system (try renaming the extension to global-nav-group and defining one in configuration).
  2. I still think we need to move the generic dashboard stuff into the styleguide.

@hadijahkyampeire
Copy link
Contributor Author

@ibacher Most of what is in the generic-nav component is what is in the nav-group component unless if i am missing something

@hadijahkyampeire
Copy link
Contributor Author

By registering, do you mean creating a store and registering it in the store as they did in the common-lib? like this;

const navGroupStore = createGlobalStore('global-nav-groups', { navGroups: [] });

export function registerNavGroup(slotName: string) {
  const store = navGroupStore.getState();
  navGroupStore.setState({ navGroups: [slotName, ...store.navGroups] });
}

@ibacher
Copy link
Member

ibacher commented Aug 21, 2024

By registering, do you mean creating a store and registering it in the store as they did in the common-lib?

No. I mean actually registering the extension with the extension system, via the registerExtension() call at some point. For most apps, this is handled by having an appropriate entry in routes.json, so patient-chart does this with it's nav-group extension here; without registering this extension with the extension system, there's no way to actually use it (your video above uses the nav-group defined in patient chart).

This is why I commented suggesting to rename the extension global-nav-group for testing.

@hadijahkyampeire
Copy link
Contributor Author

@ibacher anything we haven't covered in the PR, just want to know if there is more work or just the final review.

@hadijahkyampeire
Copy link
Contributor Author

@ibacher do we still want to move this into core or we close it

@hadijahkyampeire hadijahkyampeire merged commit 4a39d52 into main Sep 29, 2024
14 checks passed
@hadijahkyampeire hadijahkyampeire deleted the O3-3774-nav-group branch September 29, 2024 10:25
Samstar10 pushed a commit to Samstar10/openmrs-esm-core that referenced this pull request Oct 29, 2024
* Add nav group extension

* Update docs

* clean up

* Remove unnecessary components

* update docs

* clean up

* update t

* define feature name for nav group

* update docs

* make group title translatable

* update docs

* tweak title translation and slot name

* update api docs

* register the global nav group extension

* update docs

* clean up

* PR reviews

* Update docs

* Move nav group to primary-navigation-app

---------

Co-authored-by: Ian <[email protected]>
@denniskigen denniskigen mentioned this pull request Dec 5, 2024
4 tasks
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.

3 participants