From 2f670d467a8c49157bd82b3d5900c0972bbe98bf Mon Sep 17 00:00:00 2001 From: roxy-dao Date: Wed, 6 Nov 2024 08:17:10 +1300 Subject: [PATCH 01/10] Rename translation --- client/packages/common/src/intl/locales/en/common.json | 3 ++- client/packages/common/src/intl/locales/es/common.json | 2 +- client/packages/common/src/intl/locales/fr/common.json | 2 +- client/packages/common/src/intl/locales/pt/common.json | 2 +- client/packages/common/src/intl/locales/ru/common.json | 2 +- client/packages/common/src/intl/locales/tet/common.json | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/client/packages/common/src/intl/locales/en/common.json b/client/packages/common/src/intl/locales/en/common.json index 88a74ad854..0d28f3f514 100644 --- a/client/packages/common/src/intl/locales/en/common.json +++ b/client/packages/common/src/intl/locales/en/common.json @@ -520,7 +520,6 @@ "label.age-months-count_other": "{{count}} months", "label.age-years_one": "{{count}} year", "label.age-years_other": "{{count}} years", - "label.all-requested-quantity": "Other requested", "label.allocated": "Allocated", "label.already-issued": "Issued", "label.amc": "AMC", @@ -840,7 +839,9 @@ "label.order-quantity": "Requested quantity", "label.order-type": "Order Type", "label.other-facility": "Other facility", + "label.other-requested-quantity": "Other requested", "label.our-soh": "Our SOH", + "label.our-stock": "Our Stock", "label.out-of-stock": "Out of stock", "label.outbound-shipment": "Outbound shipment", "label.outer-pack-size": "Outer pack size", diff --git a/client/packages/common/src/intl/locales/es/common.json b/client/packages/common/src/intl/locales/es/common.json index 71177c9169..5923c7be83 100644 --- a/client/packages/common/src/intl/locales/es/common.json +++ b/client/packages/common/src/intl/locales/es/common.json @@ -404,7 +404,7 @@ "label.age-months-and_other": "months {{count}}, ", "label.age-months-count_one": "{{count}} mes", "label.age-months-count_other": "{{count}} meses", - "label.all-requested-quantity": "Otro solicitado", + "label.other-requested-quantity": "Otro solicitado", "label.allocated": "Asignado", "label.already-issued": "Enviado", "label.amc": "AMC", diff --git a/client/packages/common/src/intl/locales/fr/common.json b/client/packages/common/src/intl/locales/fr/common.json index cd52d7e1b8..f28e55d4c3 100644 --- a/client/packages/common/src/intl/locales/fr/common.json +++ b/client/packages/common/src/intl/locales/fr/common.json @@ -488,7 +488,7 @@ "label.age-months-and_other": "{{count}} mois, ", "label.age-months-count_one": "{{count}} mois", "label.age-months-count_other": "{{count}} mois", - "label.all-requested-quantity": "Autres", + "label.other-requested-quantity": "Autres", "label.allocated": "Alloué(e)", "label.already-issued": "Livrés", "label.amc": "CMM", diff --git a/client/packages/common/src/intl/locales/pt/common.json b/client/packages/common/src/intl/locales/pt/common.json index 2ada76579c..b86ba1782c 100644 --- a/client/packages/common/src/intl/locales/pt/common.json +++ b/client/packages/common/src/intl/locales/pt/common.json @@ -362,7 +362,7 @@ "label.age-months-count_other": "{{count}} meses", "label.age-months-from": "Idade a partir de (meses)", "label.age-months-to": "Idade em (meses)", - "label.all-requested-quantity": "Outro requisitado", + "label.other-requested-quantity": "Outro requisitado", "label.allocated": "Alocado", "label.already-issued": "Emitido", "label.amc": "CMM", diff --git a/client/packages/common/src/intl/locales/ru/common.json b/client/packages/common/src/intl/locales/ru/common.json index 8184820545..d59c0ce08f 100644 --- a/client/packages/common/src/intl/locales/ru/common.json +++ b/client/packages/common/src/intl/locales/ru/common.json @@ -465,7 +465,7 @@ "label.age-days_other": "{{count}} дней", "label.age-months-and_one": "{{count}} месяц, ", "label.age-months-and_other": "{{count}} месяцев, ", - "label.all-requested-quantity": "Другие запрашиваемые", + "label.other-requested-quantity": "Другие запрашиваемые", "label.allocated": "Выделено", "label.already-issued": "Выдано", "label.amc": "Среднее Месячное Потребление", diff --git a/client/packages/common/src/intl/locales/tet/common.json b/client/packages/common/src/intl/locales/tet/common.json index 0183a3645c..91d68e3784 100644 --- a/client/packages/common/src/intl/locales/tet/common.json +++ b/client/packages/common/src/intl/locales/tet/common.json @@ -206,7 +206,7 @@ "label.add-charges": "Aumenta Cobrancas", "label.add-new-line": "Aumenta lina foun", "label.address": "Enderesu", - "label.all-requested-quantity": "Pedidu seluk", + "label.other-requested-quantity": "Pedidu seluk", "label.allocated": "Aloka Ona", "label.amc": "AMC", "label.amount": "Montante", From 71dab0140c62ac70054098e97bbe8f449ad91b25 Mon Sep 17 00:00:00 2001 From: roxy-dao Date: Wed, 6 Nov 2024 08:27:39 +1300 Subject: [PATCH 02/10] Bar only bar --- .../NewValueBar/NewValueBar.stories.tsx | 37 ++++++++++++++++ .../charts/NewValueBar/NewValueBar.tsx | 44 +++++++++++++++++++ .../ui/components/charts/NewValueBar/index.ts | 1 + .../common/src/ui/components/charts/index.ts | 1 + 4 files changed, 83 insertions(+) create mode 100644 client/packages/common/src/ui/components/charts/NewValueBar/NewValueBar.stories.tsx create mode 100644 client/packages/common/src/ui/components/charts/NewValueBar/NewValueBar.tsx create mode 100644 client/packages/common/src/ui/components/charts/NewValueBar/index.ts diff --git a/client/packages/common/src/ui/components/charts/NewValueBar/NewValueBar.stories.tsx b/client/packages/common/src/ui/components/charts/NewValueBar/NewValueBar.stories.tsx new file mode 100644 index 0000000000..f2de7f4489 --- /dev/null +++ b/client/packages/common/src/ui/components/charts/NewValueBar/NewValueBar.stories.tsx @@ -0,0 +1,37 @@ +import React from 'react'; +import { Box } from '@mui/material'; +import { StoryFn, Meta } from '@storybook/react'; +import { NewValueBar } from './NewValueBar'; + +const Template: StoryFn = ({ value, total, colour }) => ( + + + +); + +export const Default = Template.bind({}); +export const NoDividers = Template.bind({}); +export const BothDividers = Template.bind({}); + +Default.args = { + value: 10, + total: 20, + colour: 'gray.main', +}; + +NoDividers.args = { + value: 10, + total: 20, + colour: 'gray.main', +}; + +BothDividers.args = { + value: 10, + total: 20, + colour: 'gray.main', +}; + +export default { + title: 'Charts/ValueBar', + component: NewValueBar, +} as Meta; diff --git a/client/packages/common/src/ui/components/charts/NewValueBar/NewValueBar.tsx b/client/packages/common/src/ui/components/charts/NewValueBar/NewValueBar.tsx new file mode 100644 index 0000000000..1b8e638179 --- /dev/null +++ b/client/packages/common/src/ui/components/charts/NewValueBar/NewValueBar.tsx @@ -0,0 +1,44 @@ +import React from 'react'; +import { Box, Typography } from '@openmsupply-client/common'; +import { useFormatNumber } from '@common/intl'; + +const MIN_FLEX_BASIS_TO_SHOW_VALUE = 5; + +interface ValueBarProps { + value: number; + total: number; + colour: string; +} + +export const NewValueBar = ({ value, total, colour }: ValueBarProps) => { + const formatNumber = useFormatNumber(); + if (value === 0) return null; + + const flexBasis = Math.min(Math.round((100 * value) / total), 100); + + return ( + <> + + + + {flexBasis > MIN_FLEX_BASIS_TO_SHOW_VALUE ? ( + + {formatNumber.round(value)} + + ) : null} + + + + + ); +}; diff --git a/client/packages/common/src/ui/components/charts/NewValueBar/index.ts b/client/packages/common/src/ui/components/charts/NewValueBar/index.ts new file mode 100644 index 0000000000..9c70d3d59e --- /dev/null +++ b/client/packages/common/src/ui/components/charts/NewValueBar/index.ts @@ -0,0 +1 @@ +export * from './NewValueBar'; diff --git a/client/packages/common/src/ui/components/charts/index.ts b/client/packages/common/src/ui/components/charts/index.ts index aeccc002bf..34faf21d6f 100644 --- a/client/packages/common/src/ui/components/charts/index.ts +++ b/client/packages/common/src/ui/components/charts/index.ts @@ -39,3 +39,4 @@ export { }; export * from './ValueBar'; +export * from './NewValueBar'; From a2dd85c3f33a343038c8a9d8f4c18a806928d82c Mon Sep 17 00:00:00 2001 From: roxy-dao Date: Wed, 6 Nov 2024 08:28:57 +1300 Subject: [PATCH 03/10] Change response store stats UI --- .../ReponseStats/ResponseStoreStats.tsx | 227 ++++++++++++++---- 1 file changed, 183 insertions(+), 44 deletions(-) diff --git a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx b/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx index c62db13963..b2bbaba2fe 100644 --- a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx +++ b/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx @@ -1,8 +1,10 @@ import React from 'react'; import { useTranslation } from '@common/intl'; -import { Box, Typography, ValueBar } from '@openmsupply-client/common'; +import { Box, Typography, NewValueBar } from '@openmsupply-client/common'; +import { ItemRowFragment } from 'packages/system/src'; export interface ResponseStoreStatsProps { + item?: ItemRowFragment; stockOnHand: number; incomingStock: number; stockOnOrder: number; @@ -11,6 +13,7 @@ export interface ResponseStoreStatsProps { } export const ResponseStoreStats: React.FC = ({ + item, stockOnHand, incomingStock, stockOnOrder, @@ -34,13 +37,35 @@ export const ResponseStoreStats: React.FC = ({ : '100%'; return ( - <> + + + + + {t('label.name')}:  + + {item?.name ?? ''} + + + + + {t('label.code')}:  + + {item?.code ?? ''} + + + + {t('label.unit')}:  + + {item?.unitName ?? ''} + + + @@ -52,57 +77,171 @@ export const ResponseStoreStats: React.FC = ({ ) : ( - - - - - + <> + + + {t('label.our-stock')} + + + + + + + + + + {!!stockOnHand && ( + + + + {t('label.stock-on-hand')} + + + {stockOnHand} + + + )} + {!!incomingStock && ( + + + + {t('label.incoming-stock')} + + + {incomingStock} + + + )} + {!!stockOnOrder && ( + + + + {t('label.stock-on-order')} + + + {stockOnOrder} + + + )} + + + )} - - - + + + {t('label.requested')} + + + + + + + + + {!!requestedQuantity && ( + + + + {t('label.requested')} + + + {requestedQuantity} + + + )} + {!!otherRequestedQuantity && ( + + + + {t('label.other-requested-quantity')} + + + {otherRequestedQuantity} + + + )} + - + ); }; From 87ac18da8abbcb2f1cba04592b5721c0aded866e Mon Sep 17 00:00:00 2001 From: roxy-dao Date: Wed, 6 Nov 2024 08:30:25 +1300 Subject: [PATCH 04/10] Add our store stats as popover --- .../ResponseLineEdit/ResponseLineEdit.tsx | 74 +++++++++++++++---- 1 file changed, 61 insertions(+), 13 deletions(-) diff --git a/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx b/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx index 6c912bf0ce..4fd43448be 100644 --- a/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx +++ b/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx @@ -6,12 +6,18 @@ import { } from '@openmsupply-client/system'; import { DraftResponseLine } from './hooks'; import { + BarIcon, Box, InputWithLabelRow, NumericTextInput, + Popover, ReasonOptionNodeType, + useToggle, } from '@openmsupply-client/common'; import { Footer } from './Footer'; +import { ResponseStoreStats } from '../ReponseStats/ResponseStoreStats'; +import { useResponse } from '../../api'; + const INPUT_WIDTH = 100; const LABEL_WIDTH = '150px'; @@ -40,6 +46,10 @@ export const ResponseLineEdit = ({ isProgram, }: ResponseLineEditProps) => { const t = useTranslation(); + const { isOn: ourStats, toggle: toggleOurStats } = useToggle(); + const { data } = useResponse.line.stats(draft?.id); + const [ourStatsAnchorEl, setOurStatsAnchorEl] = + React.useState(null); const incomingStock = (draft?.incomingUnits ?? 0) + (draft?.additionInUnits ?? 0); @@ -254,20 +264,58 @@ export const ResponseLineEdit = ({ label={t('label.remaining-to-supply')} sx={{ marginBottom: 1 }} /> - update({ supplyQuantity: value })} - onBlur={save} + + update({ supplyQuantity: value })} + onBlur={save} + /> + } + labelWidth={LABEL_WIDTH} + label={t('label.supply-quantity')} + sx={{ marginBottom: 1 }} + /> + { + toggleOurStats(); + setOurStatsAnchorEl(e?.currentTarget); + }} + > + - } - labelWidth={LABEL_WIDTH} - label={t('label.supply-quantity')} - sx={{ marginBottom: 1 }} - /> - + {ourStats && ( + + + + )} + + Date: Wed, 6 Nov 2024 11:09:11 +1300 Subject: [PATCH 05/10] Hide requested if no requested --- .../ReponseStats/ResponseStoreStats.tsx | 123 +++++++++--------- 1 file changed, 64 insertions(+), 59 deletions(-) diff --git a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx b/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx index b2bbaba2fe..e0ca63780f 100644 --- a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx +++ b/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx @@ -177,70 +177,75 @@ export const ResponseStoreStats: React.FC = ({ paddingBottom: 2, }} > - - - {t('label.requested')} - - - - - - - - - {!!requestedQuantity && ( - - + {!!requestedQuantity || + (!!otherRequestedQuantity && ( + <> + {t('label.requested')} - - {requestedQuantity} - - )} - {!!otherRequestedQuantity && ( - - - - {t('label.other-requested-quantity')} - - - {otherRequestedQuantity} - + + + + + + + {!!requestedQuantity && ( + + + + {t('label.requested')} + + + {requestedQuantity} + + + )} + {!!otherRequestedQuantity && ( + + + + {t('label.other-requested-quantity')} + + + {otherRequestedQuantity} + + + )} + - )} - - + + ))} ); From 97e357fb63c778787538a0b44df53ea6193bbe13 Mon Sep 17 00:00:00 2001 From: roxy-dao Date: Wed, 6 Nov 2024 11:12:17 +1300 Subject: [PATCH 06/10] Make text width longer --- .../ReponseStats/ResponseStoreStats.tsx | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx b/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx index e0ca63780f..770387695b 100644 --- a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx +++ b/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx @@ -118,7 +118,11 @@ export const ResponseStoreStats: React.FC = ({ minHeight: 10, }} /> - + {t('label.stock-on-hand')} @@ -137,7 +141,11 @@ export const ResponseStoreStats: React.FC = ({ minHeight: 10, }} /> - + {t('label.incoming-stock')} @@ -156,7 +164,11 @@ export const ResponseStoreStats: React.FC = ({ minHeight: 10, }} /> - + {t('label.stock-on-order')} @@ -215,7 +227,11 @@ export const ResponseStoreStats: React.FC = ({ minHeight: 10, }} /> - + {t('label.requested')} @@ -234,7 +250,11 @@ export const ResponseStoreStats: React.FC = ({ minHeight: 10, }} /> - + {t('label.other-requested-quantity')} From 2b2bd8c4125f1f67207e70b22e89f43640c38be8 Mon Sep 17 00:00:00 2001 From: roxy-dao Date: Wed, 6 Nov 2024 11:13:30 +1300 Subject: [PATCH 07/10] Show item details in request store stats --- .../ReponseStats/RequestStoreStats.tsx | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/RequestStoreStats.tsx b/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/RequestStoreStats.tsx index 511f43a20e..d5701866d2 100644 --- a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/RequestStoreStats.tsx +++ b/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/RequestStoreStats.tsx @@ -7,8 +7,10 @@ import { Typography, ValueBar, } from '@openmsupply-client/common'; +import { ItemRowFragment } from 'packages/system/src'; export interface RequestStoreStatsProps { + item?: ItemRowFragment; maxMonthsOfStock: number; suggestedQuantity: number; availableStockOnHand: number; @@ -104,6 +106,7 @@ const CalculationError = ({ }; export const RequestStoreStats: React.FC = ({ + item, maxMonthsOfStock, suggestedQuantity, availableStockOnHand, @@ -123,7 +126,29 @@ export const RequestStoreStats: React.FC = ({ : 100; return ( - <> + + + + + {t('label.name')}:  + + {item?.name ?? ''} + + + + + {t('label.code')}:  + + {item?.code ?? ''} + + + + {t('label.unit')}:  + + {item?.unitName ?? ''} + + + = ({ - + ); }; From 9794b01f0b888ea7957e9af539cf1d831e17c9c3 Mon Sep 17 00:00:00 2001 From: roxy-dao Date: Wed, 6 Nov 2024 11:15:57 +1300 Subject: [PATCH 08/10] Show requesting store stats next to requested quantity --- .../ResponseLineEdit/ResponseLineEdit.tsx | 80 +++++++++++++++---- 1 file changed, 66 insertions(+), 14 deletions(-) diff --git a/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx b/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx index 9f222e7301..f13309aca1 100644 --- a/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx +++ b/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx @@ -10,6 +10,7 @@ import { Box, InputWithLabelRow, NumericTextInput, + NumUtils, Popover, ReasonOptionNodeType, useToggle, @@ -17,6 +18,7 @@ import { import { Footer } from './Footer'; import { ResponseStoreStats } from '../ReponseStats/ResponseStoreStats'; import { useResponse } from '../../api'; +import { RequestStoreStats } from '../ReponseStats/RequestStoreStats'; const INPUT_WIDTH = 100; const LABEL_WIDTH = '150px'; @@ -47,9 +49,12 @@ export const ResponseLineEdit = ({ }: ResponseLineEditProps) => { const t = useTranslation(); const { isOn: ourStats, toggle: toggleOurStats } = useToggle(); + const { isOn: theirStats, toggle: toggleTheirStats } = useToggle(); const { data } = useResponse.line.stats(draft?.id); const [ourStatsAnchorEl, setOurStatsAnchorEl] = React.useState(null); + const [theirStatsAnchorEl, setTheirStatsAnchorEl] = + React.useState(null); const incomingStock = (draft?.incomingUnits ?? 0) + (draft?.additionInUnits ?? 0); @@ -181,8 +186,9 @@ export const ResponseLineEdit = ({ Input={ update({ averageMonthlyConsumption: value })} + decimalLimit={2} onBlur={save} disabled={!!hasLinkedRequisition} /> @@ -206,19 +212,65 @@ export const ResponseLineEdit = ({ {/* Right column content */} - update({ requestedQuantity: value })} - disabled={!!hasLinkedRequisition} - /> - } - labelWidth={LABEL_WIDTH} - label={t('label.requested-quantity')} - sx={{ marginBottom: 1 }} - /> + + update({ requestedQuantity: value })} + disabled={!!hasLinkedRequisition} + /> + } + labelWidth={LABEL_WIDTH} + label={t('label.requested-quantity')} + sx={{ marginBottom: 1 }} + /> + { + toggleTheirStats(); + setTheirStatsAnchorEl(e?.currentTarget); + }} + > + {hasLinkedRequisition && ( + <> + + {theirStats && ( + + + + )} + + )} + + Date: Wed, 6 Nov 2024 11:43:29 +1300 Subject: [PATCH 09/10] Fix condition used for revealing requested --- .../ReponseStats/ResponseStoreStats.tsx | 149 +++++++++--------- 1 file changed, 74 insertions(+), 75 deletions(-) diff --git a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx b/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx index 770387695b..0aa0d7f59f 100644 --- a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx +++ b/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx @@ -189,83 +189,82 @@ export const ResponseStoreStats: React.FC = ({ paddingBottom: 2, }} > - {!!requestedQuantity || - (!!otherRequestedQuantity && ( - <> - - - {t('label.requested')} - + {(!!requestedQuantity || !!otherRequestedQuantity) && ( + <> + + + {t('label.requested')} + + + + + + - - - - - - - {!!requestedQuantity && ( - - - - {t('label.requested')} - - - {requestedQuantity} - - - )} - {!!otherRequestedQuantity && ( - - - - {t('label.other-requested-quantity')} - - - {otherRequestedQuantity} - - - )} - + + {!!requestedQuantity && ( + + + + {t('label.requested')} + + + {requestedQuantity} + + + )} + {!!otherRequestedQuantity && ( + + + + {t('label.other-requested-quantity')} + + + {otherRequestedQuantity} + + + )} - - ))} + + + )} ); From 654be3d5b16b55eec5b3d0e7e447c8392ddd5861 Mon Sep 17 00:00:00 2001 From: roxy-dao Date: Mon, 11 Nov 2024 07:49:13 +1300 Subject: [PATCH 10/10] Fix typo --- .../DetailView/ResponseLineEdit/ResponseLineEdit.tsx | 4 ++-- .../{ReponseStats => ResponseStats}/RequestStoreStats.tsx | 0 .../{ReponseStats => ResponseStats}/ResponseStoreStats.tsx | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename client/packages/requisitions/src/ResponseRequisition/DetailView/{ReponseStats => ResponseStats}/RequestStoreStats.tsx (100%) rename client/packages/requisitions/src/ResponseRequisition/DetailView/{ReponseStats => ResponseStats}/ResponseStoreStats.tsx (100%) diff --git a/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx b/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx index f13309aca1..6fb8f96261 100644 --- a/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx +++ b/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseLineEdit/ResponseLineEdit.tsx @@ -16,9 +16,9 @@ import { useToggle, } from '@openmsupply-client/common'; import { Footer } from './Footer'; -import { ResponseStoreStats } from '../ReponseStats/ResponseStoreStats'; +import { ResponseStoreStats } from '../ResponseStats/ResponseStoreStats'; import { useResponse } from '../../api'; -import { RequestStoreStats } from '../ReponseStats/RequestStoreStats'; +import { RequestStoreStats } from '../ResponseStats/RequestStoreStats'; const INPUT_WIDTH = 100; const LABEL_WIDTH = '150px'; diff --git a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/RequestStoreStats.tsx b/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseStats/RequestStoreStats.tsx similarity index 100% rename from client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/RequestStoreStats.tsx rename to client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseStats/RequestStoreStats.tsx diff --git a/client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx b/client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseStats/ResponseStoreStats.tsx similarity index 100% rename from client/packages/requisitions/src/ResponseRequisition/DetailView/ReponseStats/ResponseStoreStats.tsx rename to client/packages/requisitions/src/ResponseRequisition/DetailView/ResponseStats/ResponseStoreStats.tsx