@openmrs/esm-billing-app 1.3.2-pre.1960 → 1.3.2-pre.1964
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/cache/f65e66b0d056a24c-meta.json +1 -0
- package/.turbo/cache/{7bf55965dc552e68.tar.zst → f65e66b0d056a24c.tar.zst} +0 -0
- package/.turbo/turbo-build.log +1 -1
- package/dist/5390.js.map +1 -1
- package/dist/openmrs-esm-billing-app.js.buildmanifest.json +3 -3
- package/dist/routes.json +1 -1
- package/e2e/commands/index.ts +1 -1
- package/e2e/specs/billing-patient-chart.spec.ts +5 -5
- package/eslint.config.mjs +43 -0
- package/jest.config.js +0 -1
- package/package.json +4 -10
- package/src/modal/finalize-bill-confirmation.modal.tsx +0 -1
- package/tools/update-openmrs-deps.mjs +1 -1
- package/.eslintignore +0 -1
- package/.eslintrc +0 -76
- package/.turbo/cache/7bf55965dc552e68-meta.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"hash":"f65e66b0d056a24c","duration":13665}
|
|
Binary file
|
package/.turbo/turbo-build.log
CHANGED
package/dist/5390.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"5390.js","sources":["webpack://@openmrs/esm-billing-app/./src/modal/delete-line-item-confirmation.scss","webpack://@openmrs/esm-billing-app/./src/modal/delete-line-item-confirmation.scss?adf9","webpack://@openmrs/esm-billing-app/./src/modal/finalize-bill-confirmation.modal.tsx"],"names":["closeModal","bill","onMutate","t","useTranslation","_useState","isFinalizing","setIsFinalizing","ModalHeader","ModalBody","styles","ModalFooter","Button","getCoreTranslation","err","_err_responseBody_error","message","finalizeBill","showSnackbar","console","InlineLoading"],"mappings":"oMAGI,EAA0B,A,SAA4B,KAE1D,EAAwB,IAAI,CAAC,CAAC,EAAO,EAAE,CAAE,sYAAuY,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,2DAA2D,uEAAuE,CAAC,MAAQ,EAAE,CAAC,SAAW,wEAAwE,eAAiB,CAAC,iUAAiU,05DAA05D,CAAC,WAAa,EAAE,EAAE,EAE36F,EAAwB,MAAM,CAAG,CAChC,QAAW,+DACX,UAAa,iEACb,aAAgB,mEACjB,EACA,MAAe,C,uKCDX,EAAU,CAAC,CAEf,GAAQ,iBAAiB,CAAG,IAC5B,EAAQ,aAAa,CAAG,IAElB,EAAQ,MAAM,CAAG,QAAa,CAAC,KAAM,QAE3C,EAAQ,MAAM,CAAG,IACjB,EAAQ,kBAAkB,CAAG,IAEhB,IAAI,GAAO,CAAE,GAKnB,MAAe,GAAO,EAAI,UAAc,CAAG,UAAc,CAAG,M,
|
|
1
|
+
{"version":3,"file":"5390.js","sources":["webpack://@openmrs/esm-billing-app/./src/modal/delete-line-item-confirmation.scss","webpack://@openmrs/esm-billing-app/./src/modal/delete-line-item-confirmation.scss?adf9","webpack://@openmrs/esm-billing-app/./src/modal/finalize-bill-confirmation.modal.tsx"],"names":["closeModal","bill","onMutate","t","useTranslation","_useState","isFinalizing","setIsFinalizing","ModalHeader","ModalBody","styles","ModalFooter","Button","getCoreTranslation","err","_err_responseBody_error","message","finalizeBill","showSnackbar","console","InlineLoading"],"mappings":"oMAGI,EAA0B,A,SAA4B,KAE1D,EAAwB,IAAI,CAAC,CAAC,EAAO,EAAE,CAAE,sYAAuY,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,2DAA2D,uEAAuE,CAAC,MAAQ,EAAE,CAAC,SAAW,wEAAwE,eAAiB,CAAC,iUAAiU,05DAA05D,CAAC,WAAa,EAAE,EAAE,EAE36F,EAAwB,MAAM,CAAG,CAChC,QAAW,+DACX,UAAa,iEACb,aAAgB,mEACjB,EACA,MAAe,C,uKCDX,EAAU,CAAC,CAEf,GAAQ,iBAAiB,CAAG,IAC5B,EAAQ,aAAa,CAAG,IAElB,EAAQ,MAAM,CAAG,QAAa,CAAC,KAAM,QAE3C,EAAQ,MAAM,CAAG,IACjB,EAAQ,kBAAkB,CAAG,IAEhB,IAAI,GAAO,CAAE,GAKnB,MAAe,GAAO,EAAI,UAAc,CAAG,UAAc,CAAG,M,sVC0DnE,MAtE6D,Y,MAAGA,EAAAA,EAAAA,UAAU,CAAEC,EAAAA,EAAAA,IAAI,CAAEC,EAAAA,EAAAA,QAAQ,CAChFC,EAAMC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IAAND,CAAC,CAC+BE,E,4CAAAA,AAAAA,GAAAA,EAAAA,QAAAA,AAAAA,EAAS,M,sLAAA,I,qKAAA,G,uOAAA,G,kLAA1CC,EAAiCD,CAAAA,CAAAA,EAAAA,CAAnBE,EAAmBF,CAAAA,CAAAA,EAAAA,CAsCxC,OACE,oCACE,kBAACG,EAAAA,GAAWA,CAAAA,CAAC,WAAYR,EAAY,MAAOG,EAAE,eAAgB,gB,GAE9D,kBAACM,EAAAA,GAASA,CAAAA,CAAC,UAAWC,EAAAA,CAAAA,CAAAA,SAAgB,A,EACpC,kBAAC,SACEP,EACC,2BACA,wHAKN,kBAACQ,EAAAA,GAAWA,CAAAA,KACV,kBAACC,EAAAA,GAAMA,CAAAA,CAAC,KAAK,YAAY,QAASZ,EAAY,SAAUM,C,EACrDO,AAAAA,GAAAA,EAAAA,kBAAAA,AAAAA,EAAmB,WAGtB,kBAACD,EAAAA,GAAMA,CAAAA,CAAC,KAAK,UAAU,QAtDN,e,0BAkBZE,EAELC,EAAAA,EADIC,E,suCAlBR,GAAI,CAACf,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAM,IAAI,AAAD,EACZ,O,GAGFM,EAAgB,I,iBAGd,O,uBAAA,C,EAAMU,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAahB,EAAK,IAAI,E,eAA5B,SAEAiB,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CACX,MAAOf,EAAE,gBAAiB,kBAC1B,SAAUA,EAAE,uBAAwB,wCACpC,KAAM,SACR,GAEAD,MAAAA,GAAAA,IACAF,I,oBAEMgB,EACJD,OAFKD,CAAAA,EAAAA,EAAAA,IAAAA,EAAAA,GAELC,MAAAA,CAAAA,EAAAA,EAAK,YAAY,AAAD,GAAhBA,MAAAA,CAAAA,EAAAA,EAAmB,KAAK,AAAD,EAAvBA,KAAAA,EAAAA,EAA0B,OAAO,GACjCD,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAK,OAAO,AAAD,GACXX,EAAE,yBAA0B,8CAE9BgB,QAAQ,KAAK,CAAC,+CAAgDL,GAE9DI,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CACX,MAAOf,EAAE,qBAAsB,2BAC/B,SAAUa,EACV,KAAM,OACR,G,oBAEAT,EAAgB,I,uBAEpB,E,gLAoBsD,SAAUD,C,EACvDA,EACC,kBAACc,EAAAA,GAAaA,CAAAA,CAAC,UAAWV,EAAAA,CAAAA,CAAAA,OAAc,CAAE,YAAaP,EAAE,aAAc,cAAgB,K,GAEvFA,EAAE,WAAY,cAM1B,C"}
|
|
@@ -880,9 +880,9 @@
|
|
|
880
880
|
"rendered": true,
|
|
881
881
|
"initial": false,
|
|
882
882
|
"entry": false,
|
|
883
|
-
"size":
|
|
883
|
+
"size": 15357,
|
|
884
884
|
"sizes": {
|
|
885
|
-
"javascript":
|
|
885
|
+
"javascript": 15357
|
|
886
886
|
},
|
|
887
887
|
"names": [],
|
|
888
888
|
"idHints": [],
|
|
@@ -896,7 +896,7 @@
|
|
|
896
896
|
"auxiliaryFiles": [
|
|
897
897
|
"5390.js.map"
|
|
898
898
|
],
|
|
899
|
-
"hash": "
|
|
899
|
+
"hash": "861950aa48dcf6d9",
|
|
900
900
|
"childrenByOrder": {}
|
|
901
901
|
},
|
|
902
902
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"billing":">=2.3.0-0","webservices.rest":">=2.24.0"},"pages":[{"component":"billableServicesHome","route":"billable-services"}],"extensions":[{"component":"billingDashboardLink","name":"billing-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"billing","title":"billing","slot":"billing-dashboard-slot"}},{"component":"root","name":"billing-dashboard-root","slot":"billing-dashboard-slot"},{"name":"billing-patient-summary","component":"billingPatientSummary","slot":"patient-chart-billing-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"visit-bills-panel","component":"visitBillsPanel","slot":"visit-summary-panels","meta":{"title":"Bills"}},{"name":"billing-summary-dashboard-link","component":"billingSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":11,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-billing-dashboard-slot","path":"billing-history"}},{"name":"billable-services-app-menu-item","component":"billableServicesAppMenuItem","slot":"app-menu-item-slot","meta":{"name":"Billable Services"}},{"name":"billing-checkin-form","slot":"extra-visit-attribute-slot","component":"billingCheckInForm"},{"slot":"system-admin-page-card-link-slot","component":"billableServicesCardLink","name":"billable-services-admin-card-link"},{"name":"patient-banner-billing-tags","component":"visitAttributeTags","slot":"patient-banner-tags-slot","order":2},{"name":"patient-banner-payment-status-tag","component":"patientPaymentStatusTag","slot":"patient-banner-tags-slot","order":3},{"name":"billable-services-left-panel-link","component":"billableServicesLeftPanelLink","slot":"billable-services-left-panel-slot","order":0},{"name":"billing-settings-left-panel-menu","component":"billingSettingsLeftPanelMenu","slot":"billable-services-left-panel-slot","order":1},{"name":"discount-requests-left-panel-link","component":"discountRequestsLeftPanelLink","slot":"billable-services-left-panel-slot","order":2},{"name":"refund-requests-left-panel-link","component":"refundRequestsLeftPanelLink","slot":"billable-services-left-panel-slot","order":3}],"modals":[{"name":"add-cash-point-modal","component":"addCashPointModal"},{"name":"payment-mode-form-modal","component":"paymentModeFormModal"},{"name":"delete-payment-mode-modal","component":"deletePaymentModeModal"},{"name":"edit-bill-item-modal","component":"editBillLineItemModal"},{"name":"edit-bill-line-item-modal","component":"editBillLineItemModal"},{"name":"require-billing-modal","component":"requirePaymentModal"},{"name":"delete-line-item-confirmation-modal","component":"deleteLineItemConfirmationModal"},{"name":"finalize-bill-confirmation-modal","component":"finalizeBillConfirmationModal"},{"name":"delete-bill-confirmation-modal","component":"deleteBillConfirmationModal"},{"name":"request-discount-modal","component":"requestDiscountModal"},{"name":"review-bill-discounts-modal","component":"reviewBillDiscountsModal"},{"name":"request-refund-modal","component":"requestRefundModal"},{"name":"review-bill-refunds-modal","component":"reviewBillRefundsModal"}],"workspaces2":[{"name":"billing-form-workspace","component":"billingFormWorkspace","window":"billing-form-window"},{"name":"patient-chart-billing-form-workspace","component":"billingFormWorkspace","window":"patient-chart-billing-form"},{"name":"billable-service-form","component":"billableServiceFormWorkspace","window":"billable-service-form-window"}],"workspaceWindows2":[{"name":"billing-form-window","group":"billingFormWorkspaceGroup"},{"name":"patient-chart-billing-form","group":"patient-chart"},{"name":"billable-service-form-window","group":"billingFormWorkspaceGroup","width":"wider"}],"workspaceGroups2":[{"name":"billingFormWorkspaceGroup","overlay":false}],"version":"1.3.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"billing":">=2.3.0-0","webservices.rest":">=2.24.0"},"pages":[{"component":"billableServicesHome","route":"billable-services"}],"extensions":[{"component":"billingDashboardLink","name":"billing-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"billing","title":"billing","slot":"billing-dashboard-slot"}},{"component":"root","name":"billing-dashboard-root","slot":"billing-dashboard-slot"},{"name":"billing-patient-summary","component":"billingPatientSummary","slot":"patient-chart-billing-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"visit-bills-panel","component":"visitBillsPanel","slot":"visit-summary-panels","meta":{"title":"Bills"}},{"name":"billing-summary-dashboard-link","component":"billingSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":11,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-billing-dashboard-slot","path":"billing-history"}},{"name":"billable-services-app-menu-item","component":"billableServicesAppMenuItem","slot":"app-menu-item-slot","meta":{"name":"Billable Services"}},{"name":"billing-checkin-form","slot":"extra-visit-attribute-slot","component":"billingCheckInForm"},{"slot":"system-admin-page-card-link-slot","component":"billableServicesCardLink","name":"billable-services-admin-card-link"},{"name":"patient-banner-billing-tags","component":"visitAttributeTags","slot":"patient-banner-tags-slot","order":2},{"name":"patient-banner-payment-status-tag","component":"patientPaymentStatusTag","slot":"patient-banner-tags-slot","order":3},{"name":"billable-services-left-panel-link","component":"billableServicesLeftPanelLink","slot":"billable-services-left-panel-slot","order":0},{"name":"billing-settings-left-panel-menu","component":"billingSettingsLeftPanelMenu","slot":"billable-services-left-panel-slot","order":1},{"name":"discount-requests-left-panel-link","component":"discountRequestsLeftPanelLink","slot":"billable-services-left-panel-slot","order":2},{"name":"refund-requests-left-panel-link","component":"refundRequestsLeftPanelLink","slot":"billable-services-left-panel-slot","order":3}],"modals":[{"name":"add-cash-point-modal","component":"addCashPointModal"},{"name":"payment-mode-form-modal","component":"paymentModeFormModal"},{"name":"delete-payment-mode-modal","component":"deletePaymentModeModal"},{"name":"edit-bill-item-modal","component":"editBillLineItemModal"},{"name":"edit-bill-line-item-modal","component":"editBillLineItemModal"},{"name":"require-billing-modal","component":"requirePaymentModal"},{"name":"delete-line-item-confirmation-modal","component":"deleteLineItemConfirmationModal"},{"name":"finalize-bill-confirmation-modal","component":"finalizeBillConfirmationModal"},{"name":"delete-bill-confirmation-modal","component":"deleteBillConfirmationModal"},{"name":"request-discount-modal","component":"requestDiscountModal"},{"name":"review-bill-discounts-modal","component":"reviewBillDiscountsModal"},{"name":"request-refund-modal","component":"requestRefundModal"},{"name":"review-bill-refunds-modal","component":"reviewBillRefundsModal"}],"workspaces2":[{"name":"billing-form-workspace","component":"billingFormWorkspace","window":"billing-form-window"},{"name":"patient-chart-billing-form-workspace","component":"billingFormWorkspace","window":"patient-chart-billing-form"},{"name":"billable-service-form","component":"billableServiceFormWorkspace","window":"billable-service-form-window"}],"workspaceWindows2":[{"name":"billing-form-window","group":"billingFormWorkspaceGroup"},{"name":"patient-chart-billing-form","group":"patient-chart"},{"name":"billable-service-form-window","group":"billingFormWorkspaceGroup","width":"wider"}],"workspaceGroups2":[{"name":"billingFormWorkspaceGroup","overlay":false}],"version":"1.3.2-pre.1964"}
|
package/e2e/commands/index.ts
CHANGED
|
@@ -196,7 +196,7 @@ test.describe('Billing: Patient Chart workflow', () => {
|
|
|
196
196
|
await invoicePage.waitForInvoiceToLoad();
|
|
197
197
|
|
|
198
198
|
const lineItems = await invoicePage.getLineItems();
|
|
199
|
-
expect(lineItems
|
|
199
|
+
expect(lineItems).toHaveLength(1);
|
|
200
200
|
expect(lineItems[0].quantity).toBe('2');
|
|
201
201
|
|
|
202
202
|
const totalAmount = await invoicePage.getTotalAmount();
|
|
@@ -240,7 +240,7 @@ test.describe('Billing: Patient Chart workflow', () => {
|
|
|
240
240
|
const billsResponse = await api.get(`billing/bill?patient=${patientUuid}&v=full`);
|
|
241
241
|
expect(billsResponse.ok()).toBeTruthy();
|
|
242
242
|
const billsData = await billsResponse.json();
|
|
243
|
-
expect(billsData.results
|
|
243
|
+
expect(billsData.results).toHaveLength(initialBillCount);
|
|
244
244
|
});
|
|
245
245
|
});
|
|
246
246
|
|
|
@@ -469,7 +469,7 @@ test.describe('Billing: Patient Chart workflow', () => {
|
|
|
469
469
|
billUuid = bill.uuid;
|
|
470
470
|
billsToCleanup.add(billUuid);
|
|
471
471
|
|
|
472
|
-
expect(bill.lineItems
|
|
472
|
+
expect(bill.lineItems).toHaveLength(1);
|
|
473
473
|
const lineItem = bill.lineItems[0];
|
|
474
474
|
expect(lineItem.billableService).toBeTruthy();
|
|
475
475
|
expect(lineItem.quantity).toBe(quantity);
|
|
@@ -489,7 +489,7 @@ test.describe('Billing: Patient Chart workflow', () => {
|
|
|
489
489
|
|
|
490
490
|
await test.step('Then the invoice should display the line item correctly', async () => {
|
|
491
491
|
const lineItems = await invoicePage.getLineItems();
|
|
492
|
-
expect(lineItems
|
|
492
|
+
expect(lineItems).toHaveLength(1);
|
|
493
493
|
expect(lineItems[0].quantity).toBe(quantity.toString());
|
|
494
494
|
});
|
|
495
495
|
|
|
@@ -696,7 +696,7 @@ test.describe('Billing: Patient Chart workflow', () => {
|
|
|
696
696
|
billsToCleanup.add(billUuid);
|
|
697
697
|
|
|
698
698
|
const bill = billsData.results[0];
|
|
699
|
-
expect(bill.lineItems
|
|
699
|
+
expect(bill.lineItems).toHaveLength(1);
|
|
700
700
|
expect(bill.lineItems[0].quantity).toBe(quantity);
|
|
701
701
|
});
|
|
702
702
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import openmrs from '@openmrs/eslint-config';
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
{ ignores: ['dist/**', 'coverage/**', '**/*.d.ts'] },
|
|
5
|
+
...openmrs,
|
|
6
|
+
{
|
|
7
|
+
rules: {
|
|
8
|
+
// ban-types no longer names a rule on typescript-eslint v8. The two
|
|
9
|
+
// replacements below were enforced by the old recommended preset;
|
|
10
|
+
// no-wrapper-object-types was explicitly off and stays off.
|
|
11
|
+
'@typescript-eslint/no-empty-object-type': 'error',
|
|
12
|
+
'@typescript-eslint/no-unsafe-function-type': 'error',
|
|
13
|
+
'@typescript-eslint/triple-slash-reference': 'error',
|
|
14
|
+
'no-extra-boolean-cast': 'error',
|
|
15
|
+
'no-prototype-builtins': 'error',
|
|
16
|
+
'no-unsafe-optional-chaining': 'error',
|
|
17
|
+
'no-useless-escape': 'error',
|
|
18
|
+
'prefer-const': 'error',
|
|
19
|
+
'react-hooks/exhaustive-deps': 'warn',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
files: ['**/*.{ts,tsx}'],
|
|
24
|
+
languageOptions: {
|
|
25
|
+
parserOptions: {
|
|
26
|
+
project: true,
|
|
27
|
+
tsconfigRootDir: import.meta.dirname,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
rules: {
|
|
31
|
+
'@typescript-eslint/consistent-type-exports': 'error',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
// Playwright fixtures take a callback named `use` and call it, which
|
|
36
|
+
// eslint-plugin-react-hooks reads as React's `use` hook. The previous
|
|
37
|
+
// config also turned this rule off for e2e.
|
|
38
|
+
files: ['e2e/**'],
|
|
39
|
+
rules: {
|
|
40
|
+
'react-hooks/rules-of-hooks': 'off',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
];
|
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-billing-app",
|
|
3
|
-
"version": "1.3.2-pre.
|
|
3
|
+
"version": "1.3.2-pre.1964",
|
|
4
4
|
"description": "O3 frontend module for handling billing concerns in healthcare settings",
|
|
5
5
|
"browser": "dist/openmrs-esm-billing-app.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build": "rspack --mode production",
|
|
14
14
|
"debug": "npm run serve",
|
|
15
15
|
"extract-translations": "i18next 'src/**/*.component.tsx' 'src/**/*.workspace.tsx' 'src/**/*.modal.tsx' 'src/index.ts' --config ./tools/i18next-parser.config.js",
|
|
16
|
-
"lint": "eslint src --
|
|
16
|
+
"lint": "eslint src --max-warnings=0",
|
|
17
17
|
"postinstall": "husky install",
|
|
18
18
|
"prettier": "prettier --config prettier.config.js --write \"src/**/*.{ts,tsx,css,scss}\" \"e2e/**/*.ts\"",
|
|
19
19
|
"serve": "rspack serve --mode=development",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"swr": "2.x"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
+
"@openmrs/eslint-config": "^2.0.0",
|
|
62
63
|
"@openmrs/esm-framework": "next",
|
|
63
64
|
"@playwright/test": "^1.53.2",
|
|
64
65
|
"@testing-library/dom": "^9.3.4",
|
|
@@ -69,20 +70,13 @@
|
|
|
69
70
|
"@types/react": "^18.3.21",
|
|
70
71
|
"@types/react-dom": "^18.3.0",
|
|
71
72
|
"@types/webpack-env": "^1.18.4",
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
73
|
-
"@typescript-eslint/parser": "^8.0.0",
|
|
74
73
|
"@vitest/coverage-v8": "^4.0.18",
|
|
75
74
|
"concurrently": "^8.2.2",
|
|
76
75
|
"cross-env": "^7.0.3",
|
|
77
76
|
"d3-selection": "^3.0.0",
|
|
78
77
|
"dayjs": "^1.11.10",
|
|
79
78
|
"dotenv": "^16.4.1",
|
|
80
|
-
"eslint": "^
|
|
81
|
-
"eslint-plugin-import": "^2.31.0",
|
|
82
|
-
"eslint-plugin-jest-dom": "^5.5.0",
|
|
83
|
-
"eslint-plugin-playwright": "^2.2.2",
|
|
84
|
-
"eslint-plugin-react-hooks": "^5.0.0",
|
|
85
|
-
"eslint-plugin-testing-library": "^7.13.1",
|
|
79
|
+
"eslint": "^9.39.0",
|
|
86
80
|
"husky": "^9.0.6",
|
|
87
81
|
"i18next": "^25.0.0",
|
|
88
82
|
"i18next-parser": "^9.3.0",
|
|
@@ -40,7 +40,6 @@ const FinalizeBillModal: React.FC<FinalizeBillModalParams> = ({ closeModal, bill
|
|
|
40
40
|
err?.message ||
|
|
41
41
|
t('finalizeFailedTryAgain', 'Unable to finalize bill. Please try again.');
|
|
42
42
|
|
|
43
|
-
// eslint-disable-next-line no-console
|
|
44
43
|
console.error('[FinalizeBillModal] Bill finalization failed', err);
|
|
45
44
|
|
|
46
45
|
showSnackbar({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { execSync } from 'node:child_process';
|
|
2
2
|
|
|
3
3
|
try {
|
|
4
|
-
execSync(`yarn up --fixed '@openmrs
|
|
4
|
+
execSync(`yarn up --fixed '@openmrs/esm-framework@next' 'openmrs@next'`, {
|
|
5
5
|
stdio: ['ignore', 'inherit', 'inherit'],
|
|
6
6
|
windowsHide: true,
|
|
7
7
|
});
|
package/.eslintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
**/*.d.ts
|
package/.eslintrc
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"node": true
|
|
4
|
-
},
|
|
5
|
-
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:jest-dom/recommended"],
|
|
6
|
-
"overrides": [
|
|
7
|
-
{
|
|
8
|
-
"files": ["**/*.test.tsx"],
|
|
9
|
-
"extends": ["plugin:testing-library/react"]
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"files": ["e2e/**/*.ts"],
|
|
13
|
-
"extends": ["plugin:playwright/recommended"],
|
|
14
|
-
"rules": {
|
|
15
|
-
"testing-library/prefer-screen-queries": "off",
|
|
16
|
-
"react-hooks/rules-of-hooks": "off"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"parser": "@typescript-eslint/parser",
|
|
21
|
-
"parserOptions": {
|
|
22
|
-
"project": true
|
|
23
|
-
},
|
|
24
|
-
"plugins": ["@typescript-eslint", "import", "jest-dom", "react-hooks", "testing-library"],
|
|
25
|
-
"root": true,
|
|
26
|
-
"rules": {
|
|
27
|
-
"@typescript-eslint/ban-types": "off",
|
|
28
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
29
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
30
|
-
"@typescript-eslint/no-wrapper-object-types": "off",
|
|
31
|
-
"@typescript-eslint/no-floating-promises": "off",
|
|
32
|
-
"@typescript-eslint/no-unsafe-argument": "off",
|
|
33
|
-
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
34
|
-
"@typescript-eslint/no-unsafe-call": "off",
|
|
35
|
-
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
36
|
-
"@typescript-eslint/no-unsafe-return": "off",
|
|
37
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
38
|
-
"@typescript-eslint/unbound-method": "off",
|
|
39
|
-
"@typescript-eslint/consistent-type-definitions": "off",
|
|
40
|
-
"@typescript-eslint/consistent-type-exports": "error",
|
|
41
|
-
"@typescript-eslint/consistent-type-imports": [
|
|
42
|
-
"error",
|
|
43
|
-
{
|
|
44
|
-
"fixStyle": "inline-type-imports"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"import/no-duplicates": "error",
|
|
48
|
-
"no-console": ["error", { "allow": ["warn", "error"] }],
|
|
49
|
-
"no-restricted-imports": [
|
|
50
|
-
"error",
|
|
51
|
-
{
|
|
52
|
-
"paths": [
|
|
53
|
-
{
|
|
54
|
-
"name": "lodash",
|
|
55
|
-
"message": "Import specific methods from `lodash`. e.g. `import map from 'lodash/map'`"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "lodash-es",
|
|
59
|
-
"importNames": ["default"],
|
|
60
|
-
"message": "Import specific methods from `lodash-es`. e.g. `import { map } from 'lodash-es'`"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "carbon-components-react",
|
|
64
|
-
"message": "Import from `@carbon/react` directly. e.g. `import { Toggle } from '@carbon/react'`"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "@carbon/icons-react",
|
|
68
|
-
"message": "Import from `@carbon/react/icons`. e.g. `import { ChevronUp } from '@carbon/react/icons'`"
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"react-hooks/exhaustive-deps": "warn",
|
|
74
|
-
"react-hooks/rules-of-hooks": "error"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"7bf55965dc552e68","duration":15901}
|