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

(chore) Dependency upgrades and improvements to linting and types #190

Merged
merged 8 commits into from
Sep 20, 2023

Conversation

denniskigen
Copy link
Member

@denniskigen denniskigen commented Sep 16, 2023

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

I’ve made various upgrades to dependencies, lint tooling and types in this PR. Specifically, these changes include:

  • Bumps various packages to their latest versions.
  • Updates the ESLint configuration to include the recommended-type-checked plugin configuration for improved type safety. I’ve also turned off a few potentially conflicting rules.
  • Replacing pretty-quick with lint-staged for managing pre-commit hooks. pretty-quick isn’t compatible with the latest version of Prettier.
  • Improved type annotations.
  • Adds an error notification to the Edit Question modal that gets shown when the name of the linked concept for a question cannot be resolved.

Other

Changes to linting and formatting were inspired by https://www.joshuakgoldberg.com/blog/configuring-eslint-prettier-and-typescript-together/.

@denniskigen denniskigen force-pushed the chore/lint-and-type-improvements branch from 96a7dcb to f790633 Compare September 16, 2023 14:09
@github-actions
Copy link

github-actions bot commented Sep 16, 2023

Size Change: +42.9 kB (+1%)

Total Size: 2.98 MB

Filename Size Change
dist/208.js 0 B -109 kB (removed) 🏆
dist/773.js 0 B -282 kB (removed) 🏆
dist/800.js 175 kB +44.1 kB (+34%) 🚨
dist/515.js 284 kB +284 kB (new file) 🆕
dist/878.js 111 kB +111 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size Change
dist/002a2ac7b7d3b3b807ddcb210cfc91eb.js 1.09 kB 0 B
dist/003671ee2a876e7614cd94390e2255b3.js 269 B 0 B
dist/0144de97a3c256f81447e7e7135780e5.js 486 B 0 B
dist/02174460fe8ff6a6bc19db86543b9600.js 653 B 0 B
dist/023545291c7d55eb893591da836fc73d.js 2.56 kB 0 B
dist/029ed9161a8d24a9c2ba97124020989d.js 118 B 0 B
dist/02b97d3c4a7e895228beec69fb63e420.js 1.56 kB 0 B
dist/03452373324e7ceaf58e3830eafd1a28.js 34.4 kB 0 B
dist/03980cb12dacd26148c22bb61fce440f.js 119 B 0 B
dist/039ae6f160cd9781bcbb003484e23cdc.js 2.83 kB 0 B
dist/03aae8272914723a7bf85b984385032c.js 116 B 0 B
dist/069a0d6b093e73e820f6a60a91fa614b.js 2.56 kB 0 B
dist/06d958315fc6cdbb28576b03e43203aa.js 122 B 0 B
dist/07397bd479cbc34bc04576b4f15bdf18.js 2.16 kB 0 B
dist/07567125b93045706d81f17f7d04e262.js 940 B 0 B
dist/078dd0bd08c93b1512e3d1b777591b21.js 116 B 0 B
dist/08d12eee2127dc573b757f69752c6704.js 2.29 kB 0 B
dist/0972f21af3e75388ef55435c0b3b831d.js 4.57 kB 0 B
dist/0973bb38b2e3efd2a879fd8e81d50fce.js 992 B 0 B
dist/0a1d9862d917663419ac2dd2e8193267.js 119 B 0 B
dist/0b06cbc7edf78b6f2810187262e7630b.js 2.55 kB 0 B
dist/0c1e757d25446799bcab87a8607dee60.js 967 B 0 B
dist/0d419aec4c7e2317238c3502a967b560.js 1.06 kB 0 B
dist/0d8cca845a71e82acc3ffc1fc95c94f3.js 1.07 kB 0 B
dist/0e693b29bbe881d5b78f15fb9cacbedd.js 1.02 kB 0 B
dist/0ec8abb2e91cb079eed4605ea6851cb8.js 6.57 kB 0 B
dist/0f147528a6f36ca40c8b3ec796429f58.js 281 B 0 B
dist/10132993df2cf9c9423b53a8a44379ab.js 115 B 0 B
dist/1034e3807d1bcf55cb564491950237ab.js 119 B 0 B
dist/1092154c23dcc20005a669b15497159f.js 11.8 kB 0 B
dist/10c464f3f882bfeeefbc0934c2ee9fbe.js 2.47 kB 0 B
dist/111d9fdb9864abba36298d1a0807fe6d.js 1.78 kB 0 B
dist/116d29a13f16f0a9bf9c25eaa2186c24.js 10.6 kB 0 B
dist/119f6c45ea400e3c27e1ce172e4c881d.js 222 B 0 B
dist/11e3a2a8fb5bcb9d19298a80cafd3f5a.js 1.47 kB 0 B
dist/127.js 3.83 kB +2 B (0%)
dist/130340e2c62b9e858f186dab5f491e55.js 117 B 0 B
dist/135747176621bcc94e9edd0323a81d3c.js 2.14 kB 0 B
dist/13eda3507db9cbfb400f46b9b3ff6553.js 118 B 0 B
dist/1495a3d68b15b8622c53f6688b64809f.js 1.62 kB 0 B
dist/150.js 27.9 kB +1.28 kB (+5%) 🔍
dist/151786e5421aae5a57d862be1387a079.js 2.81 kB 0 B
dist/153.js 1.11 kB -2 B (0%)
dist/1533058f0ce13acdaa8d5bdc7d147bef.js 119 B 0 B
dist/154e51d48e7dc7f244bf748e4deb64f9.js 18.3 kB 0 B
dist/15f3800d33b854ba476c9daf1b9e0326.js 122 B 0 B
dist/164.js 15.2 kB 0 B
dist/16b5146f5e9b7a1a196f6d11a6187282.js 680 B 0 B
dist/170487867de05784a96608617bdd544d.js 117 B 0 B
dist/1736cea368ae85240f34289307fdf67f.js 852 B 0 B
dist/17632e1e19e438f431784dfd77e01773.js 244 B 0 B
dist/17b41db8dd7120d3a88417a1490f57b7.js 1.19 kB 0 B
dist/17dc98279d24649d3ca77cbce8c44e83.js 115 B 0 B
dist/1875ecdf54e78b5f07ff1bd944cf794b.js 607 B 0 B
dist/19017707f34649cae551ee9d5ea1edbf.js 3.56 kB 0 B
dist/191feb6103c36b202bc01ba262916cdf.js 115 B 0 B
dist/19df93bf1797b4caf8232cc4b544f865.js 5.52 kB 0 B
dist/1ab96c77da77918d9160c787732c68a6.js 1.84 kB 0 B
dist/1b15b9f88acaf59b96e59c6b5f32da12.js 121 B 0 B
dist/1c57b3481f295105588972ffa1305521.js 118 B 0 B
dist/1d633c2bf495c2c286fe37d00950e1d4.js 1.07 kB 0 B
dist/1db8d65ab1ad8dbb0aae7b9ebe280ca7.js 1.47 kB 0 B
dist/1ef4b371fd98f0144354e57bb89d7fa3.js 20.2 kB 0 B
dist/1ff3e5ecc0f8d69a4611a7cd8337f0b2.js 20.9 kB 0 B
dist/2091e4c01015d7dda392116f3ae59801.js 1.05 kB 0 B
dist/211511e7b374f57ad31acaf49dbdccb1.js 115 B 0 B
dist/2184bcd361a0e38d249bc49439d994cb.js 11.7 kB 0 B
dist/2272c6632c52c3e402ab27b8045ab8f1.js 118 B 0 B
dist/23602ad4c88f0f19e7a0a12454ebf556.js 2.21 kB 0 B
dist/23bb1a9f279e7a732bfd405350aab114.js 118 B 0 B
dist/24a3ff38afde257888d755ece9bfd704.js 115 B 0 B
dist/250c230f9465d8affc02c67d41d7e067.js 6.13 kB 0 B
dist/252b829e2dab81bc5a4c28d52f34edf5.js 7.62 kB 0 B
dist/256.js 860 B -1 B (0%)
dist/25718a469574ade47e23567d8c543169.js 112 B 0 B
dist/25eda4bb98e40a82cfd5b4bf9fbc06ec.js 127 B 0 B
dist/2611b2dc99534665bf6734ddfa6b8de4.js 2.31 kB 0 B
dist/262f489eb59166e1215642b60446d123.js 4.78 kB 0 B
dist/275b72e6e6256f50527832ba14ec291e.js 6.35 kB 0 B
dist/2765855f04cd6d7fb7fcf0a81c1e2022.js 2.36 kB 0 B
dist/277128dcbc226dfeb8fde9391fb24787.js 3.27 kB 0 B
dist/2772fa250d538d9b7a8702fb6c50d195.js 1.14 kB 0 B
dist/27730a0bdc6f430cc85049a46a73a029.js 118 B 0 B
dist/283970c76db99e2d0d90f0e7c45494f9.js 1.37 kB 0 B
dist/28785bea435918d49b290d27bf660baa.js 119 B 0 B
dist/294.js 2.63 kB 0 B
dist/2ad349208b3a727abb3c9f943865a27c.js 2.05 kB 0 B
dist/2adc6bc4a8a2bf35636e8fc7fe0df2dd.js 1.15 kB 0 B
dist/2dd82c65030101b60dffccedd8741c6e.js 119 B 0 B
dist/2e2f30806fe3accb9b340fb082a1494e.js 6.73 kB 0 B
dist/2f055ac4066041b9008dd6aebf9df34b.js 116 B 0 B
dist/2f25a4dc442bc9aebc58cae30c50c3e2.js 1.39 kB 0 B
dist/2f55cddc8eb85b63ee5b4ce0e5488230.js 642 B 0 B
dist/2fc0239242a898632ca8aa451cb930c2.js 117 B 0 B
dist/2fe2904fc024afaf81732563cb83e547.js 894 B 0 B
dist/3053f55c4697117c4c2cd156803b3155.js 17.7 kB 0 B
dist/3063479c31202a0d1ecf707b2a4ce742.js 1.28 kB 0 B
dist/30d2b805bcbc5d6bd558d7bdf9137a0e.js 766 B 0 B
dist/319.js 3.21 kB +184 B (+6%) 🔍
dist/32f291b1164c2610ed1a9260677d15f0.js 1 kB 0 B
dist/330c0deacbfbbb6f1249b5bd887d608a.js 1.17 kB 0 B
dist/33b4e371d4983ab56f4db08627119f0b.js 416 B 0 B
dist/349237ad9565dc823ce7bcb7527ba7ee.js 2.47 kB 0 B
dist/3564e45dfb2ed064007f910db434889f.js 7.06 kB 0 B
dist/3567d1ea443427e944a6f189a0898819.js 124 B 0 B
dist/356c61041d30223f74711e79c8bb8ae9.js 1.11 kB 0 B
dist/363d3bac8dcd9a83332c3758185ce080.js 1.36 kB 0 B
dist/37172facd8a534a38f378ca2a9c7c11b.js 118 B 0 B
dist/37ee3b5201ae2e2dc5dc8b1b20ad900e.js 121 B 0 B
dist/38b1d18836e38ee7b4deaeba0c35f7b8.js 368 B 0 B
dist/392e4c8d74cb1c9267a14eb0270ba2d6.js 1.13 kB 0 B
dist/397e6669a1d15065bd742d20079d6a95.js 7.78 kB 0 B
dist/39fea85ed7dd99d7c6c9e59b7040523f.js 4.46 kB 0 B
dist/3a3b2fef963d6c2c49c5b11b74a9ea81.js 2.76 kB 0 B
dist/3a6ca6958d003ae67bb7fefc8713ee93.js 1.99 kB 0 B
dist/3aa8f5e8ff182ed46cb6570dad4c4eee.js 19.6 kB 0 B
dist/3afb97252c417c5f0dd54e20b1954f63.js 1.11 kB 0 B
dist/3b02cca9e95276a74f3ed2bbc7a64ce6.js 1.88 kB 0 B
dist/3b190e5159c72fb7e27271956772bcba.js 117 B 0 B
dist/3b544bb2c5a4e7b225a4b50235a0fd6d.js 117 B 0 B
dist/3b6e7dc98c47eeafd851ca5072db4be6.js 116 B 0 B
dist/3b8b51248b6aa0474a02a6c352d1caa1.js 124 kB 0 B
dist/3bd6e7a72c8b16825ce3a83b17bd681e.js 8.64 kB 0 B
dist/3bfb519dbb980d6d8fee1bf543dfc5ae.js 17.9 kB 0 B
dist/3c1857a15493f62c5c85c13007a6c32c.js 46.9 kB 0 B
dist/3c5b59a666c5d39d9ba9cc054d36a410.js 122 B 0 B
dist/3cd75b9fb238f5af900205216be23a66.js 1.18 kB 0 B
dist/3d7fd940e543a183c4c376ef0d65773a.js 1.1 kB 0 B
dist/3db12a05792313b3c537e3256f5e2e93.js 30.8 kB 0 B
dist/3ea020c57c2bbf457a8497df313b2e5c.js 463 B 0 B
dist/3fa11e77942b4cf2c50e845525ae5a9f.js 20.9 kB 0 B
dist/3fe09c1c283d4a26d228f37a77a018b2.js 23.2 kB 0 B
dist/40f9100a898e3396df73051eb7c44cb8.js 1.41 kB 0 B
dist/410ecb602443afbd5908a14f39b40eb2.js 954 B 0 B
dist/4123d5ea3e1f99dd3a5f2a89e16c6e59.js 1.19 kB 0 B
dist/41469950e6a0ef73a57342235b44c55a.js 1.3 kB 0 B
dist/4150db3307181a1afef55ab2c9ec191e.js 1.21 kB 0 B
dist/43139bfbcbce9de597b4985dc1e6a03b.js 951 B 0 B
dist/432aff60ba31a74d2120031fdc894775.js 659 B 0 B
dist/438ed06fb7f9516b12edaf7411c832b0.js 23.7 kB 0 B
dist/4430c55f023b72fb5e389cee9351b38c.js 2.49 kB 0 B
dist/447.js 413 B 0 B
dist/45873024a393c691246898090c972cd3.js 1.03 kB 0 B
dist/4686855c499be892779f614770ec2cf7.js 2.71 kB 0 B
dist/46f088332f17d2ea452bd0ef7a5cdbc6.js 12.3 kB 0 B
dist/474c86d7a4a0fa50030c6503fdb52392.js 2.77 kB 0 B
dist/47e5776dff3b80ed69ab5947dba33c76.js 313 B 0 B
dist/4816d92f4fbed14925ed1946f4135365.js 1.9 kB 0 B
dist/489b22b946f5972fed0daab6ef587c60.js 13.4 kB 0 B
dist/48e9351c5623d4da657ce7d5d0267ea6.js 122 B 0 B
dist/494ca3291c219565bfb6e45f8eb8c583.js 7.82 kB 0 B
dist/49582665262ff6179b9f3a98adf7ed5c.js 1.03 kB 0 B
dist/49c44a682cc7627c4a2e8b4d1cfec022.js 1.01 kB 0 B
dist/49c58e614c06572ffbabe974a7fda21c.js 6.96 kB 0 B
dist/4afde8c89469302b064e693fa77035f6.js 13.6 kB 0 B
dist/4b692785a8a6340a89e6067274a7583c.js 1.89 kB 0 B
dist/4b73278b511eebb4d0f44a0eec778327.js 913 B 0 B
dist/4b75999ea99d719689337def2fab50a3.js 2.73 kB 0 B
dist/4bf3bc1fbdd26ac698fef1bdf26e3ff4.js 117 B 0 B
dist/4d0ebf4c528cee9b0cdd3e076e06570b.js 6.08 kB 0 B
dist/4d156ee0485ab4b40b090a3cd7b995a9.js 1.05 kB 0 B
dist/4d6d9020e7e5c8d8dee7a5e374355f05.js 4.8 kB 0 B
dist/4d8cb7033879cb7fcc7a43798e2bde22.js 117 B 0 B
dist/4dec4bb457555975c148226534ecbdbe.js 1.02 kB 0 B
dist/4e389cce6fb8f78845fab249bce43c0b.js 116 B 0 B
dist/4ef80ee74467e0297eec3cc03092da01.js 115 B 0 B
dist/4f5c3cb0b76fa2978539d8b64a71537d.js 18.7 kB 0 B
dist/4f89e8c1a691faf5f1bfe3987ddf108a.js 2.86 kB 0 B
dist/5061ac5e99882b9f26051a5d73c75271.js 3.38 kB 0 B
dist/50bd9a652785963a5d7d24bda4dee4ca.js 871 B 0 B
dist/51f903c5ce5284a63196247cffb5ca40.js 121 B 0 B
dist/52c9726f9e52ed3a57c0634718366029.js 66.6 kB 0 B
dist/52ee9d28ed4c3389951a46084343a993.js 14 kB 0 B
dist/52fd09d1713345d9ee64dc7daea9fd6f.js 1.69 kB 0 B
dist/531e426da5d4c152efe1e9522991e466.js 1.37 kB 0 B
dist/5352ecd8e5f1a2637b48e18cc406edb1.js 119 B 0 B
dist/536.js 0 B -6.7 kB (removed) 🏆
dist/53e2fb3b82eafad81897aab9ab79edff.js 1.08 kB 0 B
dist/53e3600928916423671f3388e2d67844.js 118 B 0 B
dist/54560f13b36626237959e93b7771a484.js 117 B 0 B
dist/54a10f3bddad1e6da452fee7124fe846.js 5.98 kB 0 B
dist/54a7b0b5248e428a4a703329f36e286f.js 2.47 kB 0 B
dist/55a1830305eaf8f525aad4c04c138483.js 2.09 kB 0 B
dist/56ddbe1e119db3c02da97dc04012cf2b.js 2.63 kB 0 B
dist/574.js 3.17 kB +187 B (+6%) 🔍
dist/57f4109bd1f06be4dc2bcb8ff7eaf1e5.js 123 B 0 B
dist/582e24f5ba929e358fadfc7be4c18025.js 117 B 0 B
dist/583d06a5b9251de455ebd89550449842.js 6.92 kB 0 B
dist/58598705e7012f4ca1eb1dd21d3c59a5.js 118 B 0 B
dist/5861dfe4f2c7823623e82d0619c5bf06.js 117 B 0 B
dist/58aab872dbdb5e1607076e1935130e03.js 122 B 0 B
dist/58c35e5c73bbc1664bbd67c570342aa0.js 119 B 0 B
dist/59cc05504a1c823b6d4796bf6b430822.js 117 B 0 B
dist/5a496ae20cc576bef1d35972548207cf.js 120 B 0 B
dist/5aedf04cf240c6c43540081c3bf9573e.js 13.9 kB 0 B
dist/5b2b9bc695bfdee92665388010a7e74d.js 2.07 kB 0 B
dist/5b6a626249d0bc43e412fffa6a9ee177.js 117 B 0 B
dist/5cab33610b8d9c1aee4db4672811cb5f.js 1.54 kB 0 B
dist/5cd4e1282f4409600b942819b7aa4f21.js 4.73 kB 0 B
dist/5d3314103b00c8ea165c6f9f6757f794.js 120 B 0 B
dist/5d833ca045603c1105d2db3b9d931274.js 14 kB 0 B
dist/5df362c9904925cdf574d9506e4be76d.js 3.81 kB 0 B
dist/5e55b301888460bd06c8e26d1011e01a.js 119 B 0 B
dist/5e8a4f4320a07ae4bb1d8a5cd621d955.js 567 B 0 B
dist/5f3ce6efab3c679ec1ad25ab0b3f6b2f.js 119 B 0 B
dist/5f8e9f09349e37425d6ef96bf1bf7a2d.js 902 B 0 B
dist/5fc5b7fdc1899b18bee20c7905c76182.js 4.04 kB 0 B
dist/5fedbf948ed123687f77167fac1faf8b.js 118 B 0 B
dist/62.js 0 B -6.75 kB (removed) 🏆
dist/6231f0100394f756aac18e8d972d8f2b.js 2.98 kB 0 B
dist/6257c20a623b032171b358cc95a1adab.js 1.95 kB 0 B
dist/62a96977e725e8bc809dc80afe0fedf1.js 1.62 kB 0 B
dist/6327ff8d569aa463a91e5ea774d1980e.js 1.67 kB 0 B
dist/63596b4896732fb322ab0496b4be1e74.js 120 B 0 B
dist/6365d65802807679247605c8df7ea9ec.js 6.77 kB 0 B
dist/6416bde11154c29c4e296eb82fed0bdf.js 1.18 kB 0 B
dist/645b74a0625033669c9d0440b32e3fd0.js 2.75 kB 0 B
dist/64a5f4d62507d032038dcd76d15188e1.js 119 B 0 B
dist/64d6924350bd7706850cdc0dcc76ccf6.js 123 B 0 B
dist/663ffb67b9683a2126410325d1a5a152.js 795 B 0 B
dist/66713913fc89a3bcad5d7804c03dcb43.js 18.6 kB 0 B
dist/6707296f86034ccf2225ce3c27370114.js 2.66 kB 0 B
dist/677b2b5d0c9507508a831e4b67d61c6e.js 18.4 kB 0 B
dist/686915e134683f72ea5f3c227a6f13be.js 3.28 kB 0 B
dist/69ec362e03850ff2d49044acbb19b385.js 8.14 kB 0 B
dist/6aa13e92b5cf7d479e73acdc7c05abf3.js 179 kB 0 B
dist/6b07bdedc12700f257d08813b3c0887f.js 6.24 kB 0 B
dist/6bbbe63c75c85941f855ab27fb5f36db.js 39.7 kB 0 B
dist/6c0a75dc5671c3f237a79f6e45b9891c.js 114 B 0 B
dist/6c67587c2093ac3a19da9f2196e040b7.js 121 B 0 B
dist/6d38cef4a006e6cfe54a6117aba7b600.js 115 B 0 B
dist/6f77d1c97d1c6937d21c4a1034be62b6.js 1.22 kB 0 B
dist/6faa9e5f2a0122d2333fa450337a09b0.js 121 B 0 B
dist/700530bc418f23dccca7db36bfa9f745.js 1.13 kB 0 B
dist/70074e0c785c9a808dea76c7c7d17af3.js 113 B 0 B
dist/70286c33cab463fd576766adecd2d5d9.js 119 B 0 B
dist/7080d2a1db1608264a6d9d9fbaf2cce8.js 121 B 0 B
dist/70e2f052e416e2611ded0f57ed53f18a.js 8.95 kB 0 B
dist/714763ddd9bd466c95df7b042900bb87.js 941 B 0 B
dist/71f39fefd16025c224fe31cdb352ae01.js 1.09 kB 0 B
dist/724a16861717b5b4f786d24b56b62614.js 291 B 0 B
dist/725da29f1643c2263a437c08a1454aea.js 122 B 0 B
dist/727e2cbdf695b3abfe88917062d16a5f.js 18.6 kB 0 B
dist/73cdbb2580cd6a02d989c86e56bb83f3.js 437 B 0 B
dist/755114145e5b97e5571a160a39e716db.js 116 B 0 B
dist/757.js 3.21 kB +185 B (+6%) 🔍
dist/7620537538da40e17ccbf70a43f4fd0c.js 1.07 kB 0 B
dist/764b59bdd3a89e14f88c9d63020551a1.js 2.54 kB 0 B
dist/77aaca51c1c32acaf32656d45f4dc017.js 117 B 0 B
dist/77c629df0ebf40b066d0ffeb34b7711b.js 816 B 0 B
dist/788.js 3.21 kB +185 B (+6%) 🔍
dist/78b1ba82f7882d931072c4ef6e87f579.js 1.05 kB 0 B
dist/796a2d1a925ed311f35e5fc5907a3132.js 1.08 kB 0 B
dist/7abc8b6c17be848321a446cfd88c27a9.js 1.12 kB 0 B
dist/7cc98960277ab04470e3ff9ed5fc6028.js 2.24 kB 0 B
dist/7d64980faff5b041a461fd0ba3e2f3f5.js 1.76 kB 0 B
dist/7e4099fc2d04c7c1cf96892b962ba4ec.js 119 B 0 B
dist/7e4b5afab13800eedc72d1669997de99.js 2.41 kB 0 B
dist/7f79d4bde67c8013b187889b63e25bce.js 2.52 kB 0 B
dist/7f9a9efc9ab681fcbf6400e2adb368a9.js 3.86 kB 0 B
dist/805cb6232d7a9fa46025d48a43622ecf.js 117 B 0 B
dist/807.js 3.21 kB +185 B (+6%) 🔍
dist/80ddbf4f0fdde4ddba57130e61043017.js 646 B 0 B
dist/8211ff24c6eb59feeb74cf3ae60e4e5d.js 2.48 kB 0 B
dist/833.js 3.21 kB +185 B (+6%) 🔍
dist/83387cb17a7680f59240e7b399e3ac2b.js 121 B 0 B
dist/839e3594798c1942d3c92f9acfaa5f0b.js 927 B 0 B
dist/83bd353f98aa901411c82b8af58d1296.js 1.98 kB 0 B
dist/83d1c691b58768e3ec0a1f88450a7ceb.js 1.08 kB 0 B
dist/83e2ed887ee6426c8e0aa4d976b76720.js 18.7 kB 0 B
dist/843c762c24f7fac628d8c62519a7b308.js 330 B 0 B
dist/84abf03cc94d264bb38020b4ac5f76e1.js 1.71 kB 0 B
dist/852f0ecd7b17e3bfd700a821ff438f7e.js 1.87 kB 0 B
dist/875ae58e8015a6d08dbc9d0c04e24638.js 8.08 kB 0 B
dist/879d6bc1ca1dde95a9a98dc7a2ab0d06.js 495 B 0 B
dist/87bce6f50196688852142c679227b1b9.js 799 B 0 B
dist/88e2feda80ac8cfb28f1dc0ec833b40d.js 118 B 0 B
dist/894052ca1f8f35cc1cf7cfb29ef75027.js 1.32 kB 0 B
dist/894edcaf39c3c95818e3949d737ed459.js 119 B 0 B
dist/8a31266178067a316bb2503147cdb5cb.js 1.55 kB 0 B
dist/8a70eec5a46e423328f1e9d7d1a87f41.js 1.22 kB 0 B
dist/8b0e5da82a1aa923f454ee2e6568850b.js 2.99 kB 0 B
dist/8cfffdd2f772eec8342fdfc4d511e0cc.js 4.02 kB 0 B
dist/8d7988f603ec76ecb92315442285a83d.js 2.37 kB 0 B
dist/8d9bb1799d9b98db107e84f10132e17f.js 118 B 0 B
dist/8db9f93698f3eea94f936fcb5986f1a3.js 5.1 kB 0 B
dist/8de1f09307a99c5a8bb0a53d32fbaaa9.js 5.59 kB 0 B
dist/8ed58ed9c7e1cb1ae1f2830d29011ffb.js 115 B 0 B
dist/8eede17ae9e4d25c3c17b8a8a7fc3c3d.js 462 B 0 B
dist/8efee5c45bbfdd52eec7a8a0eec72ec3.js 250 kB 0 B
dist/8f8ce96f0f6ce8d8a30d5f2dcb4eca76.js 3 kB 0 B
dist/919edf70e532c72ecd4b9579c1879bc2.js 4.6 kB 0 B
dist/92164e5d714ab4cda2b91eede29bc191.js 990 B 0 B
dist/9296988a753e8e251ff627aef2c929e8.js 4.29 kB 0 B
dist/92e96a5183122509403347f8fde3e407.js 1.09 kB 0 B
dist/92f4aab5c66f6269c7054c8fbcb3de13.js 118 B 0 B
dist/935.js 42.9 kB 0 B
dist/938b32f75aefeab50ba608132c5862c8.js 7.24 kB 0 B
dist/93be766c753e075a3f7d5b89b3ee04ce.js 2.65 kB 0 B
dist/945ea249c1f1d3595cc55a51046d9032.js 2.54 kB 0 B
dist/949a350e1d9f92839865e927eb00673f.js 2.51 kB 0 B
dist/951a8cbe4efaab1b1451ffd8904fc9dd.js 1.5 kB 0 B
dist/962969a46fefcace3305abd4d6e14a2e.js 117 B 0 B
dist/9696a4229fb787eeb25b26f1274b75ee.js 118 B 0 B
dist/96efd2775defcf3611fe9a07ed29065f.js 18.7 kB 0 B
dist/979239ac9b74c2c57dcc2b66e7e3b353.js 2.38 kB 0 B
dist/9807cf1e443a7440371904b6525f37eb.js 115 B 0 B
dist/9827973b533de05b338533a0211d97d9.js 118 B 0 B
dist/996d24547b492c3140f64d51f5229f3c.js 6.78 kB 0 B
dist/99e41196ce05ad5fb70891b44ac227e8.js 1.82 kB 0 B
dist/99e45b7d238576aa6d4c830bd8715356.js 18 kB 0 B
dist/9b1fd9cf4206cc32e84150c49707d811.js 116 B 0 B
dist/9b3441051d8551264ac58b36253b9b10.js 4.04 kB 0 B
dist/9b5a6ec07bb0a2daade10189696fc399.js 7.11 kB 0 B
dist/9b80d1a12acd18c90e41ca92073122a7.js 662 B 0 B
dist/9d29de85381ba75c190573ea82708954.js 1.03 kB 0 B
dist/9ed8c3550b5c3c1e878d0692f0338cb7.js 981 B 0 B
dist/9fd3f255cfd09016ec7f4896bc51864c.js 934 B 0 B
dist/a13fa501edcc6c9712061e0ca5fd400e.js 10.4 kB 0 B
dist/a1c8660c5bcc6b6a43a7fb3c351174d9.js 119 B 0 B
dist/a2746fc96d535b19c120d4b87dc86ef1.js 1.01 kB 0 B
dist/a4bedde07e392f8ebf64341b61f75df2.js 122 B 0 B
dist/a4d638b976f02f35740be031f996e088.js 119 B 0 B
dist/a4e021a4b5d5d65cc87fee17c1886c3f.js 1.72 kB 0 B
dist/a533e643002830be2da76c9527265860.js 114 B 0 B
dist/a58f90f6c8db84024327b4d9059c991e.js 7.98 kB 0 B
dist/a6b8f5b8c9ce7808c5ca6baccdf1ad1e.js 3.42 kB 0 B
dist/a709bba98acec5da3ea6258e245514cb.js 2.12 kB 0 B
dist/a72ec8ab4a5bdfd6695dfa5fa86ef30d.js 1.27 kB 0 B
dist/a9cb92db2399f7ac97ad55fe79fe5c20.js 115 B 0 B
dist/a9ed61bdf8ae777e7a6f68bf7175e839.js 3.08 kB 0 B
dist/aa0eee504d52a12d3a30bbd523afcc34.js 118 B 0 B
dist/aa5623ec68d23fedb9c9c115c7d99063.js 119 B 0 B
dist/aa6c0d1a7dfd344894b8eba8db42ad04.js 33.6 kB 0 B
dist/ab237eed5fd16ab99c06f0d28d465edb.js 4.16 kB 0 B
dist/ab3d46f8dd12e29e10eb35c5e406bbcb.js 3.24 kB 0 B
dist/ac0681e93739efad9b6f1b85453d6a1b.js 1.72 kB 0 B
dist/ac12519ccf3cc323b28f70e35f922e3f.js 707 B 0 B
dist/acaef5b3d4971efbf24be1a229186ff5.js 1.18 kB 0 B
dist/acb898eefa176c3f28344f5780cceb63.js 19.6 kB 0 B
dist/ad88ef07c8c702b1a5f1e3d19c1052c7.js 8.99 kB 0 B
dist/aefed4953ced506e20b934606ac083f3.js 1.97 kB 0 B
dist/b02d982ccb1011197a5a24800b178a0a.js 117 B 0 B
dist/b1170472ae4b50e3b0070eb991e502fe.js 115 B 0 B
dist/b1e349371cb9c226905c846706ad8b93.js 809 B 0 B
dist/b1f3f77a9279cdb38846ebe13c3438bc.js 116 B 0 B
dist/b20cd9acf45420fcacfd923754185663.js 117 B 0 B
dist/b306285dfd802d091e788de0f96b8cb2.js 273 B 0 B
dist/b33ef9b4202539d3690251cb8213a034.js 123 B 0 B
dist/b35c9a9d72f02feae440dd385a020ef6.js 20.9 kB 0 B
dist/b491027881efabe4493ad65daf3368de.js 2.04 kB 0 B
dist/b49ae09a10a2a2d6dfc7ba9cb37cbbb3.js 6.35 kB 0 B
dist/b76ff0f203825dcdefb649d98de32f5b.js 125 kB 0 B
dist/b808fb222140a85b23ebbe0fffa906d9.js 116 B 0 B
dist/b881dca9d9a80f61d87374b4bd5a2dd5.js 117 B 0 B
dist/b8b6bd460e7da0ba8f3b2218327966ee.js 1.29 kB 0 B
dist/b8cb123e6c753c6031ab9c6a4acbbcd6.js 2.93 kB 0 B
dist/b934b22e8f8a8b1ba81dbc2cf058b0cd.js 850 B 0 B
dist/b943c561d9e064f79f938275bad6e597.js 8.95 kB 0 B
dist/b992b348ffb6453e4a02a60e71c5304e.js 1.89 kB 0 B
dist/ba6b8b3e06cd9d0aee9c69278ee84647.js 115 B 0 B
dist/bb5bab7a675544fe31ddb7f4a77dffb9.js 121 B 0 B
dist/bba393726b199f66d8b4314385c1f2f0.js 7.44 kB 0 B
dist/bf37de323316c6ae5745fc11fd576b1c.js 1.69 kB 0 B
dist/c2fb2aaf17fa23ca4b9bf7f1c1441caa.js 18.3 kB 0 B
dist/c3174a46927bbec0fbd8946f97bd7170.js 877 B 0 B
dist/c3f345c994392d97785925e790513a9f.js 307 B 0 B
dist/c4e58637b4d14c303e29d3ce4b4a210f.js 659 B 0 B
dist/c4ee489cb1eb39f3d31e99fcc78e886e.js 6.91 kB 0 B
dist/c51840077c684be0e7e13339f85cd4a9.js 114 B 0 B
dist/c530988d2b1966fd10a4d99fa3877e1b.js 120 B 0 B
dist/c64d6e1e72024bb5d3d3e9bfc19d183d.js 342 B 0 B
dist/c80e89199aef31e48addb2b35ea96365.js 117 B 0 B
dist/c92169023ff93e3c3e03bc2f4c73615a.js 1.7 kB 0 B
dist/c97c8951af9153f36715121ab359334c.js 1.02 kB 0 B
dist/cb652f200fc3dd740b2e7f678a9272ea.js 120 B 0 B
dist/cbdbd623038183a8c068dd24ecd90682.js 117 B 0 B
dist/cbdc4ca43a8c940a6c3f59a8b6f17df5.js 122 B 0 B
dist/cbf021d377207ecc00145a138fd03f0f.js 576 B 0 B
dist/cd1309ef590ed94ac5735c4c667e6549.js 18.9 kB 0 B
dist/cd29b6e52c3ebcbaee8c7bb709fd1d8e.js 1.86 kB 0 B
dist/cd88309c904c403022c51d1fa3ee4bf3.js 3.13 kB 0 B
dist/cd9a17f94a922c7c88000b1b3cdd67df.js 121 B 0 B
dist/cf188b3f83735389d47bb12fc9f7069a.js 115 B 0 B
dist/cf26dd07f19bcb5b7efbf057a6cfeb8f.js 118 B 0 B
dist/cf3f6b1c74c72cb5d02870022dbc9f94.js 116 B 0 B
dist/cf9c7cbfc2b609b9ae59daeab82719c4.js 117 B 0 B
dist/cfe1a9dd61dd943a574fc6c7157372f7.js 1.59 kB 0 B
dist/d1db2c4677dd2ee7a0c690c58798a013.js 2.35 kB 0 B
dist/d1f0ad8ca2a550bc292669b06a614f79.js 3.27 kB 0 B
dist/d3a6de3a3eae748464b9d49001eba546.js 3.37 kB 0 B
dist/d3c6f63283deafb27231ec767a161534.js 235 B 0 B
dist/d43ad5f9bad9a042b49b2592c7639c28.js 121 B 0 B
dist/d492c085b5834c819ba21542b9147966.js 1.01 kB 0 B
dist/d4f1a314cb3668f8e17f24bccf0229b6.js 1.74 kB 0 B
dist/d542dda7308361c34af2afb9b70d755a.js 117 B 0 B
dist/d5999827bd3af6b813a871de344b109a.js 4.07 kB 0 B
dist/d5a6140d581e5c4eb200259ce372f40b.js 117 B 0 B
dist/d5f79987405c2169278f8de37bcc9d05.js 120 B 0 B
dist/d723acafb30584c955c9aeaedb3e03f0.js 4.41 kB 0 B
dist/d72f9e2d15bf7a51a613e2f116b1a2df.js 4.75 kB 0 B
dist/d78d3b050ea95b068380d975fd413fd7.js 117 B 0 B
dist/d7d616d4aa8fd3f51d681242853dcde9.js 117 B 0 B
dist/d83cda12aee0c87c8b381a1234bf7798.js 479 B 0 B
dist/d8f7ecdd496f3caf14f5afbedfff1937.js 34.9 kB 0 B
dist/da3a9dc1f8b62f2221f1040e8d207d0e.js 2.59 kB 0 B
dist/daad7cddd8afb1713b51cf5882d2da34.js 6.03 kB 0 B
dist/db8ca5cfb6fe4aaef215f116f6991784.js 116 B 0 B
dist/dc8240db39815020378555a4d80571c3.js 738 B 0 B
dist/ddbc961769cd2ff4d4a7a136168ebf4c.js 123 B 0 B
dist/de0fd4fd7c2d7a4887cbc99eed91f797.js 118 B 0 B
dist/df350f726187b69bcededaaed6cf5f31.js 1.58 kB 0 B
dist/e0564e4f4ec3f3165b6890be52cf9a5e.js 18.8 kB 0 B
dist/e06608fe5b8e7e9d30879d4d91113a08.js 1.45 kB 0 B
dist/e0adad8a8579bf99f3e22f7c214a5c64.js 117 B 0 B
dist/e0c565aadda4787ba4ef4456c0a7ee29.js 346 B 0 B
dist/e0d8e58814f40cb5f60e1fe5fb37e9fa.js 6.38 kB 0 B
dist/e0fa6a4fe8bff90d50ce812e666957ca.js 1.93 kB 0 B
dist/e13fc7d468ab9b5797f2a44412ca2f00.js 3.01 kB 0 B
dist/e2b38a8393be2cf23f3894ace3efb1c3.js 117 B 0 B
dist/e2fe8f0d4fd950b20b30fabaea96b3f8.js 942 B 0 B
dist/e430b621361ebe3a4071e3cca1d0dbe8.js 19.2 kB 0 B
dist/e45a0dfd102b67ad7cdefe10500bf0d7.js 2.94 kB 0 B
dist/e4917fa7632b01d28e99304d32d989f7.js 120 B 0 B
dist/e4bea9a2a2680d970c13cc4ed89bc1a0.js 1.07 kB 0 B
dist/e542ddbb78bb244c0465f22e0e11ab61.js 20.8 kB 0 B
dist/e61779df91186b23e7adf2d1968b2708.js 121 B 0 B
dist/e6ad50b520736b595970c9e07029c3f1.js 121 B 0 B
dist/e6e768df4733fa1a1c8a9b06a24ff2fd.js 998 B 0 B
dist/e7e1a807af3160b342e0a3550cf8f7c5.js 122 B 0 B
dist/e874d975c9128dc6eb9a513d088bed9f.js 125 B 0 B
dist/e9c8f7e13e00284ce126890bf7ac46fd.js 115 B 0 B
dist/eaa55a522fb2cb2f0287711f42344984.js 120 B 0 B
dist/ebaed1b3f483c7391037315a62571718.js 1.1 kB 0 B
dist/ecdb4966f685f3e44b1f28fae46827a3.js 119 B 0 B
dist/ef87482c92662e8b69a21f47588474ea.js 419 B 0 B
dist/efbb5510bc35424b261de45355e3a626.js 4.02 kB 0 B
dist/efc14cdf19554635e477781704353ec2.js 116 B 0 B
dist/eff4371180dfac54de25ed3a0105d82f.js 1.39 kB 0 B
dist/f2abbd0caa62a607a87be62111595f0c.js 18 kB 0 B
dist/f326f2f263b1498fedbe1d07d7254d10.js 120 B 0 B
dist/f3a21a0f236d2b7d45be954c32efaa14.js 3.62 kB 0 B
dist/f59696ab0f6f26c339d7e6bb1d73a5c3.js 1.35 kB 0 B
dist/f5d50af31e924b65e3bd3764e8d1df3a.js 4.42 kB 0 B
dist/f5dfa3d3658fddbce84d7c3ecd5504f0.js 8.75 kB 0 B
dist/f6a1ff9a83e32555a4e3c7b99727e02d.js 1.08 kB 0 B
dist/f6d7091e70dee6c74956acfef2464d08.js 1.31 kB 0 B
dist/f8ee12a5cfa6ff1d3550ef30a238d89a.js 1.81 kB 0 B
dist/f93c341314b490174cf67fed1ca62ee0.js 22.5 kB 0 B
dist/fa0c561bb37040fc8145e5c70ea64912.js 16.7 kB 0 B
dist/faa809ba713143a2e8b4760a45e1fe89.js 17 kB 0 B
dist/fb08407a1b7ad7f9a2da2a7845f596c5.js 2.61 kB 0 B
dist/fc84e4779f22e5f1c9a70f56f47e0ed6.js 1.18 kB 0 B
dist/fd5bc50b18c9f46380cbe5ec1ac2127b.js 117 B 0 B
dist/fd9645aaf1f70c8abc562be41bee25fc.js 4.46 kB 0 B
dist/fec23c6964d6cf25681d1f3e24b076a4.js 445 B 0 B
dist/ff9176b28afa428194276840d85679ef.js 1.71 kB 0 B
dist/ffb6d262efb0718a20d60b5fecb76ea6.js 18 kB 0 B
dist/ffd3b83e8b5878f4785591ff54b1dfff.js 115 B 0 B
dist/main.js 3.44 kB -1 B (0%)
dist/openmrs-esm-form-builder-app.js 3.25 kB -3 B (0%)
dist/527.js 5.72 kB +5.72 kB (new file) 🆕

compressed-size-action

@denniskigen denniskigen force-pushed the chore/lint-and-type-improvements branch from f790633 to c1b185a Compare September 16, 2023 14:20
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"ts-react-important-stuff"
Copy link
Member

Choose a reason for hiding this comment

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

+1

.prettierrc Outdated
@@ -0,0 +1,8 @@
{
"bracketSpacing": true,
"printWidth": 80,
Copy link
Member

Choose a reason for hiding this comment

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

Don't we usually use 120?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. I'll switch back to that.

"@openmrs/openmrs-form-engine-lib":
"@openmrs/openmrs-form-engine-lib/src/index",
'@openmrs/esm-framework': '@openmrs/esm-framework/src/internal',
'@openmrs/openmrs-form-engine-lib':
Copy link
Member

Choose a reason for hiding this comment

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

I know this wasn't added in this PR, but it's absolutely absurd that we need an alias for this. We should be able to setup the package.json for the form engine lib to remove this necessity (things are a little different with esm-framework; we have a series of "internal" methods, which are basically exposed so they can be called from the app-shell, but nowhere else, but at runtime, we only want one framework bundle, so this rule has us bundle the full esm-framework, including internals, but only allow user-code to see the public interface).

.eslintignore Outdated
@@ -1,2 +1,3 @@
e2e/**
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the tests themselves be linted?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, they should. I forgot to restore this.

ibacher
ibacher previously approved these changes Sep 19, 2023
@denniskigen
Copy link
Member Author

Dunno why the e2e tests are failing @ibacher. I've posted a thread on the qa-support channel on Slack.

.getByRole("combobox", {
name: "Filter by publish status: All Open menu",
.getByRole('combobox', {
name: 'Filter by publish status: All Open menu',
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this test could've ever succeeded. The DOM element with the role combobox is the button which only has the text "All".

Copy link
Member Author

@denniskigen denniskigen Sep 19, 2023

Choose a reason for hiding this comment

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

The Playwright codegen tool suggests using page.getByText('Filter by publish status:')

playwright-codegen.mp4

Copy link
Member Author

Choose a reason for hiding this comment

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

And it works!

await page.getByRole('row', { name: form.name }).getByLabel('Edit Schema').click();
});

await test.step("Then I click on the unpublish form button and confirms the unpublication", async () => {
await test.step('Then I click on the unpublish form button and confirms the unpublication', async () => {
await formBuilderPage.unpublishFormButton().click();
await formBuilderPage.unpublishFormConfirmationButton().click();
Copy link
Member

Choose a reason for hiding this comment

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

Watching the video, this doesn't seem to work. There's a failure "Cannot read properties of undefined (reading 'length')". This seems to trigger at the first unpublishFormButton().click().

@denniskigen
Copy link
Member Author

All fixed, @ibacher.

vasharma05
vasharma05 previously approved these changes Sep 20, 2023
Copy link
Member

@vasharma05 vasharma05 left a comment

Choose a reason for hiding this comment

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

Thanks!

npx lint-staged
Copy link
Member

Choose a reason for hiding this comment

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

We have the pretty-quick as well in the pre-commit

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in the latest commit

donaldkibet
donaldkibet previously approved these changes Sep 20, 2023
@denniskigen denniskigen merged commit cd4e306 into main Sep 20, 2023
6 checks passed
@denniskigen denniskigen deleted the chore/lint-and-type-improvements branch September 20, 2023 08:42
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.

4 participants