-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: 1361 add cancel button at seedlot review page #1452
feat: 1361 add cancel button at seedlot review page #1452
Conversation
fixing Cypress test atm |
…1-add-cancel-button-at-seedlot-review-page # Conflicts: # frontend/src/components/LotApplicantAndInfoForm/constants.ts # frontend/src/components/LotApplicantAndInfoForm/index.tsx # frontend/src/components/SeedlotRegistrationSteps/CollectionStep/index.tsx # frontend/src/components/SeedlotRegistrationSteps/ExtractionAndStorageStep/index.tsx # frontend/src/components/SeedlotRegistrationSteps/InterimStep/index.tsx # frontend/src/components/SeedlotReviewSteps/ApplicantAndSeedlot/Read/index.tsx # frontend/src/components/SeedlotReviewSteps/Collection/Read/index.tsx # frontend/src/components/SeedlotReviewSteps/ExtractionStorage/Read/index.tsx # frontend/src/components/SeedlotReviewSteps/Interim/Read/index.tsx # frontend/src/components/SeedlotReviewSteps/Ownership/Read/index.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Added only one small mark-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Some typos, nothing more.
🥇 🚀
import { ComboBoxPropsType } from './definitions'; | ||
|
||
export const agencyFieldsText = (isReview: boolean | undefined): AgencyTextPropsType => ({ | ||
export const clientAndCodeInputText = (isReview: boolean | undefined): ClientAndCodeInputTextType => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lint issue:
~/Projects/nr-spar/frontend/src/components/LotApplicantAndInfoForm/constants.ts
5:1 error This line has a length of 103. Maximum allowed is 100 max-len
/** | ||
* Format the displayed location code | ||
*/ | ||
const formatDisplayedLocCode = (formatedCode: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: formated instead of formatted
/** | ||
* Format the displayed acronym | ||
*/ | ||
const formatDisplayedAcronym = (formatedAcronym: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: formated instead of formatted
}; | ||
|
||
const handleLocationCodeBlur = (value: string) => { | ||
const formatedCode = value ? formatLocationCode(value) : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: formated instead of formatted
@@ -54,7 +54,7 @@ const AuditInfo = () => { | |||
id="last-updated-at" | |||
label="Last uptated at:" | |||
value={ | |||
seedlotData | |||
seedlotData?.auditInformation.updateTimestamp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: uptated instead of updated (twice, lines 47 and 55. Not changed by you, tho)
max-width: none; | ||
width: -webkit-fill-available; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question (non-blocking): I'm getting a warning at line 46, asking to define: Also define the standard property 'appearance' for compatibilityscss(vendorPrefix)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, what's the suggested fix? does it have one?
@@ -86,14 +87,23 @@ describe('A Class Seedlot Registration form, Orchard', () => { | |||
.contains('219 - VERNON - S - PRD') | |||
.click(); | |||
|
|||
// Intercept the call before step 5 monuts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: mounts
@@ -225,14 +235,22 @@ describe('A Class Seedlot Registration form, Orchard', () => { | |||
.contains('219 - VERNON - S - PRD') | |||
.click(); | |||
|
|||
// Intercept the call before step 5 monuts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: mounts
@@ -281,14 +299,22 @@ describe('A Class Seedlot Registration form, Orchard', () => { | |||
.contains('222 - VERNON - S - PRD') | |||
.click(); | |||
|
|||
// Intercept the call before step 5 monuts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: mounts
@@ -354,14 +380,22 @@ describe('A Class Seedlot Registration form, Orchard', () => { | |||
// Save changes | |||
cy.saveSeedlotRegFormProgress(); | |||
|
|||
// Intercept the call before step 5 monuts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: mounts
Alright guys, it looks like I can't spell for 💩 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Description
Closes #1361
!mportant:
Need to nuke the a-class-seedlot-save table, or these changes will cause trouble with existing drafts
Not described in the issue:
Refactored the behaviour of A-Class seedlot Context and ApplicantAgencyFields, the idea is let one component to handle the data fetching, the component displays the client acronym but stores client number. Renamed things from agency to client so it's consistent with forest client api.
Changelog
New
Changed
Removed
How was this tested?
What gif/image best describes this PR or how it makes you feel?
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: