-
Notifications
You must be signed in to change notification settings - Fork 39
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
[MDS-6129] project summary status: frontend #3299
Conversation
…all them at top level and pass down as props. TODO: the auth/env ones aren't being called yet. Add disabling to fields that were missed, and correct instances of isDisabled where disabled was intended. TODO: declaration page, auth documents (clarify)
…iately. Fix bug with confirmation checkbox. Fix invalid status code in data mocks and add the enum to the interface. Add error handling in geomark
033344e
to
a112388
Compare
@@ -28,9 +28,9 @@ describe("ProjectDates", () => { | |||
<FormWrapper | |||
name={FORM.ADD_EDIT_PROJECT_SUMMARY} | |||
initialValues={MOCK.PERMITS} |
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.
Some of these, the form initialValues are very wacky.
message: `Failed to upload ${file && file.name ? file.name : ""}: ${ | ||
errorMessage ? errorMessage : err | ||
}`, | ||
message: `Failed to upload ${file?.name ?? ""}: ${errorMessage ?? err |
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.
Super minor, but if the file.name is null would this not render as "Failed to upload : {errorMessage}". Noting the presence and placement of the colon.
) => { | ||
// Return false if status = "" => "Not Started" | ||
if (!projectSummaryStatusCode) return false; | ||
export const areFieldsDisabled = memoize((systemFlag: SystemFlagEnum, projectSummaryStatusCode: 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.
Nice solution!
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.
Nice! This looks like it should make things MUCH more consistent.
…ack to null, even though antd is unhappy about it. :(
Quality Gate passed for 'bcgov-sonarcloud_mds_minespace-web'Issues Measures |
Quality Gate failed for 'bcgov-sonarcloud_mds_common'Failed conditions |
Quality Gate passed for 'bcgov-sonarcloud_mds_core-web'Issues Measures |
services/common/src/components/projectSummary/ProjectSummaryFormComponents.spec.tsx
Show resolved
Hide resolved
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.
Nice enhancement of the tests!
Objective
MDS-6129
Why are you making this change? Provide a short explanation and/or screenshots