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-5801] Text/Language updates #2976

Merged
merged 11 commits into from
Mar 4, 2024
Merged

[MDS-5801] Text/Language updates #2976

merged 11 commits into from
Mar 4, 2024

Conversation

taraepp
Copy link
Collaborator

@taraepp taraepp commented Mar 1, 2024

Objective

  • also remove "edit report" button on MS

MDS-5801

Why are you making this change? Provide a short explanation and/or screenshots
all a bit zoomed out
MS Getting Started CRR
image
MS Getting Started PRR
image
MS Report Details Form (PRR) - top
image
MS Report Details Form (both) - bottom
image
MS Report Details Form (CRR) - top (1.10.7.2 has no More Info link)
image

Core Getting Started CRR
image
Core Getting Started PRR
image
Core Report Details (PRR) - top
image
Core Report Details (both) - bottom
image
Core Report Details (CRR) - top
image

…e 'view accepted filetypes' and contact us email
…s easier to find, made maximum charachters mandatory in RenderAutoSizeField, tweaked logic of the label for file upload, fixed a couple issues in CORE
@@ -62,8 +62,8 @@ import { WrappedFieldProps, WrappedFieldMetaProps, WrappedFieldInputProps } from
export interface BaseInputProps extends WrappedFieldProps {
meta: WrappedFieldMetaProps;
input: WrappedFieldInputProps;
label?: string;
labelSubtitle?: string;
label?: string | ReactNode;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

pretty much just updating this file to accept elements as well as strings for labels.

@@ -9,36 +9,19 @@ import { FormConsumer, IFormContext } from "./FormWrapper";

interface AutoSizeProps extends BaseInputProps {
minRows?: number;
maximumCharacters?: number;
maximumCharacters: number;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I decided that this should be mandatory. There's no instances where this version of the component (ie the one in common) is used and the value is not supplied.

@@ -56,7 +57,7 @@ export const RenderSelect: FC<SelectProps> = ({
(meta.warning && <span>{meta.warning}</span>))
}
id={id}
getValueProps={() => ({ value: input.value })}
getValueProps={() => input.value !== "" && { value: input.value }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

placeholder wasn't showing because I think redux was supplying it with "" when it was empty.

@@ -27,4 +28,55 @@

.has-error .ant-checkbox-group:not([disabled]):hover {
border-color: #ff4d4f;
}

// FORMS
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

was having a hard time deciding when to put things in antd-overrides and when to put them in Forms, so just moved over from overrides to the more specific file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In the future, might want to think about implementing some common styles, especially for basic layout type stuff.

Copy link

sonarqubecloud bot commented Mar 1, 2024

Quality Gate Failed Quality Gate failed for 'bcgov-sonarcloud_mds_minespace-web'

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

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Mar 1, 2024

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

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

See analysis details on SonarCloud

Copy link

sonarqubecloud bot commented Mar 1, 2024

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

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
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.

Woohoo!

@taraepp taraepp merged commit 8c14ea5 into develop Mar 4, 2024
14 of 16 checks passed
@taraepp taraepp deleted the mds-5801-text-language branch March 4, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants