Skip to content

Commit

Permalink
Merge branch 'main' into feat/1807-backend-tests-cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
ngunner15 authored Jan 13, 2025
2 parents 9d3473a + 5c9c246 commit be67f62
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 80 deletions.
118 changes: 47 additions & 71 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"@babel/plugin-syntax-flow": "^7.22.5",
"@babel/plugin-transform-react-jsx": "^7.22.15",
"@bcgov-nr/nr-theme": "^1.4.1",
"@carbon/icons-react": "^11.9.0",
"@carbon/pictograms-react": "^11.38.0",
"@carbon/react": "^1.22.0",
"@carbon/icons-react": "^11.53.0",
"@carbon/pictograms-react": "^11.70.0",
"@carbon/react": "^1.73.0",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-query-devtools": "^4.29.1",
"@testing-library/dom": "^10.0.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.0.0",
"@tsconfig/node18": "^18.0.0",
"@types/carbon-components-react": "^7.55.2",
"@types/carbon-components-react": "^7.55.13",
"@types/luxon": "^3.4.2",
"@types/react-beforeunload": "^2.1.5",
"@types/react-dom": "^18.0.11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ const CollectionStep = ({ isReview }: CollectionStepProps) => {
helperText={isReview ? null : fieldsConfig.startDate.helperText}
invalid={state.startDate.isInvalid}
invalidText={fieldsConfig.startDate.invalidText}
aria-invalid={state.startDate.isInvalid ? 'true' : 'false'}
size="md"
autoComplete="off"
/>
Expand All @@ -218,6 +219,7 @@ const CollectionStep = ({ isReview }: CollectionStepProps) => {
helperText={isReview ? null : fieldsConfig.endDate.helperText}
invalid={state.endDate.isInvalid}
invalidText={fieldsConfig.endDate.invalidText}
aria-invalid={state.endDate.isInvalid ? 'true' : 'false'}
size="md"
autoComplete="off"
/>
Expand All @@ -235,6 +237,7 @@ const CollectionStep = ({ isReview }: CollectionStepProps) => {
readOnly={isFormSubmitted && !isReview}
invalid={state.numberOfContainers.isInvalid}
invalidText={fieldsConfig.numberOfContainers.invalidText}
aria-invalid={state.numberOfContainers.isInvalid ? 'true' : 'false'}
onWheel={(e: React.ChangeEvent<HTMLInputElement>) => e.target.blur()}
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
handleContainerNumAndVol(true, e.target.value);
Expand All @@ -251,6 +254,7 @@ const CollectionStep = ({ isReview }: CollectionStepProps) => {
readOnly={isFormSubmitted && !isReview}
invalid={state.volumePerContainers.isInvalid}
invalidText={fieldsConfig.volumePerContainers.invalidText}
aria-invalid={state.volumePerContainers.isInvalid ? 'true' : 'false'}
onWheel={(e: React.ChangeEvent<HTMLInputElement>) => e.target.blur()}
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
handleContainerNumAndVol(false, e.target.value);
Expand All @@ -272,6 +276,7 @@ const CollectionStep = ({ isReview }: CollectionStepProps) => {
warn={isCalcWrong}
readOnly={isFormSubmitted && !isReview}
warnText={fieldsConfig.volumeOfCones.warnText}
aria-invalid={state.volumeOfCones.isInvalid ? 'true' : 'false'}
onWheel={(e: React.ChangeEvent<HTMLInputElement>) => e.target.blur()}
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
handleVolOfCones(e.target.value);
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/views/Seedlot/ContextContainerClassA/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export type ClassAContextType = {
updateProgressStatus: (currentStepNum: number, prevStepNum: number) => void,
saveProgressStatus: MutationStatusType,
isFetchingData: boolean,
seedlotDataLoaded: boolean,
genWorthInfoItems: Record<keyof RowItem, InfoDisplayObj[]>,
setGenWorthInfoItems: React.Dispatch<
React.SetStateAction<Record<keyof PrimitiveRowItem | keyof StrTypeRowItem, InfoDisplayObj[]>>
Expand Down Expand Up @@ -108,6 +109,7 @@ const ClassAContext = createContext<ClassAContextType>({
updateProgressStatus: (currentStepNum: number, prevStepNum: number) => { },
saveProgressStatus: 'idle',
isFetchingData: false,
seedlotDataLoaded: false,
geoInfoVals: {} as GeoInfoValType,
genWorthVals: {} as GenWorthValType,
setGenWorthVal: () => { },
Expand Down
Loading

0 comments on commit be67f62

Please sign in to comment.