Skip to content
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

Merged
merged 15 commits into from
Nov 12, 2024

Conversation

taraepp
Copy link
Collaborator

@taraepp taraepp commented Nov 7, 2024

Objective

  • fixing issues
  • adding automatic tests, because manual tests are too time-consuming

MDS-6129

Why are you making this change? Provide a short explanation and/or screenshots

…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
@taraepp taraepp force-pushed the mds-6129-project-summary-status branch from 033344e to a112388 Compare November 7, 2024 22:52
@@ -28,9 +28,9 @@ describe("ProjectDates", () => {
<FormWrapper
name={FORM.ADD_EDIT_PROJECT_SUMMARY}
initialValues={MOCK.PERMITS}
Copy link
Collaborator Author

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.

@taraepp taraepp marked this pull request as ready for review November 8, 2024 19:22
@taraepp taraepp added 👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback. 💊 Fix Fixes something that isn't working :) labels Nov 8, 2024
message: `Failed to upload ${file && file.name ? file.name : ""}: ${
errorMessage ? errorMessage : err
}`,
message: `Failed to upload ${file?.name ?? ""}: ${errorMessage ?? err
Copy link
Collaborator

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) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice solution!

matbusby-fw
matbusby-fw previously approved these changes Nov 8, 2024
Copy link
Collaborator

@matbusby-fw matbusby-fw left a 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. :(
@taraepp taraepp requested a review from matbusby-fw November 8, 2024 21:46
Copy link

sonarqubecloud bot commented Nov 8, 2024

Quality Gate Passed Quality Gate passed for 'bcgov-sonarcloud_mds_minespace-web'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Nov 8, 2024

Quality Gate Failed Quality Gate failed for 'bcgov-sonarcloud_mds_common'

Failed conditions
79.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Nov 8, 2024

Quality Gate Passed Quality Gate passed for 'bcgov-sonarcloud_mds_core-web'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Collaborator

@matbusby-fw matbusby-fw left a 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!

@taraepp taraepp merged commit 2bf03e1 into develop Nov 12, 2024
14 of 15 checks passed
@taraepp taraepp deleted the mds-6129-project-summary-status branch November 12, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💊 Fix Fixes something that isn't working :) 👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants