generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/Parent tree step foundation (#182)
* fix: add prevent duplicate logic to orcahrd step * fix: remove prevent duplicate orchard id logic * fix: modularize things * fix: add root to dockerfile dev * feat: add DescriptionBox component * feat: adjust description box styling * fix: update carbon version * fix: test link in notification box * fix: remove !import for grid and refactor related code * feat: add padding to page bottom * fix: change where padding bottom is added * feat: add btn text and icon customization feat to submit modal * fix: update snapshot * fix: add end of file lines * fix: fix collection start date col size * feat: add proper style to tab list * feat: complete notification box * feat: add placeholder component for other 2 tabs * feat: dynamically switching description & notification * feat: add merge orchards logic * feat: add error notification table * feat: fetch data for parent tree genetic quality * feat: adding constants * feat: add dynamic table header * feat: implement table row rendering * fix: update data storing logic * feat: link state to parent component * fix: update css * feat: clean table when orchard changes * feat: add tooltip and input to tables * feat: add table col toggling * fix: lint update * fix: update node package * Revert "fix: update node package" This reverts commit 0191a61. * fix: change h1 to h2 for description box * fix: upgrade webpack and ts-checked-plugin * fix: specify text type for description-box * fix: fix typo renderTableCell * fix: get rid of silly text --------- Co-authored-by: Derek Roberts <derek.roberts@gmail.com> Co-authored-by: Ricardo Campos <ricardo.campos@encora.com>
- Loading branch information
1 parent
705a848
commit 90b6019
Showing
21 changed files
with
1,010 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
import ApiConfig from './ApiConfig'; | ||
import api from './api'; | ||
|
||
const getOrchardByID = (orchardID: string) => { | ||
export const getOrchardByID = (orchardID: string) => { | ||
const url = `${ApiConfig.orchard}/${orchardID}`; | ||
return api.get(url).then((res) => res.data); | ||
}; | ||
|
||
export default getOrchardByID; | ||
export const getSeedPlanUnits = (orchardID: string) => { | ||
const url = `${ApiConfig.orchardSeedPlan}/${orchardID}/seed-plan-units?active=true`; | ||
return api.get(url).then((res) => res.data); | ||
}; | ||
|
||
export const getParentTreeGeneQuali = (orchardID: string, spu: string) => { | ||
const url = `${ApiConfig.parentTreeGeneticQuality}/${orchardID}/${spu}`; | ||
return api.get(url).then((res) => res.data); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
...d/src/components/SeedlotRegistrationSteps/ParentTreeStep/Tabs/ConeAndPollen/constants.tsx
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
frontend/src/components/SeedlotRegistrationSteps/ParentTreeStep/Tabs/ConeAndPollen/index.tsx
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
frontend/src/components/SeedlotRegistrationSteps/ParentTreeStep/Tabs/styles.scss
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
frontend/src/components/SeedlotRegistrationSteps/ParentTreeStep/UploadFileModal/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const textConfig = { | ||
title: 'Upload from file', | ||
label: 'Seedlot registration', | ||
description: 'Select the spreadsheet file for the cone and pollen count table with the data you want to import. The supported file format is .csv.', | ||
uploadFile: 'Click to upload or drag and drop the file here', | ||
uploadedFileErrorSize: 'File size exceeds limit', | ||
uploadedFileErrorType: 'Incorrect file format', | ||
uploadedFileErrorMessageSize: '500kb max file size. Select a new file and try again.', | ||
uploadedFileErrorMessageType: 'Only CSV files are supported. Select a new file and try again.', | ||
uploadedFileIconDesc: 'Delete file', | ||
notification: { | ||
title: 'Note:', | ||
description: 'When uploading a file all previously filled data within the table will be replaced' | ||
}, | ||
buttons: { | ||
cancel: 'Cancel', | ||
confirm: 'Import file and continue' | ||
} | ||
}; | ||
|
||
export default textConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.