Skip to content

feat: replace form components - #51204

Merged
naomi-lgbt merged 5 commits into
freeCodeCamp:mainfrom
Sboonny:feat/replace-control-label-with-ui-control-label
Oct 16, 2023
Merged

naomi-lgbt merged 5 commits into
freeCodeCamp:mainfrom
Sboonny:feat/replace-control-label-with-ui-control-label

Conversation

@Sboonny

@Sboonny Sboonny commented Aug 9, 2023 •

Copy link
Copy Markdown
Member

Checklist:

Closes #XXXXX

@github-actions github-actions Bot added platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. labels Aug 9, 2023
@ghost

ghost commented Aug 9, 2023 •

Copy link
Copy Markdown

👀 Review this PR in a CodeSee Review Map

View the CodeSee Map of this change

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@Sboonny

Sboonny commented Aug 11, 2023

Copy link
Copy Markdown
Member Author

This can't be merged without FormGroup, because it doesn't get the validationstate from the parent.

image

@Sboonny Sboonny mentioned this pull request Aug 17, 2023
4 tasks done
@Sboonny Sboonny changed the title feat: replace control label with ui control label feat: replace forms component Aug 21, 2023
@Sboonny
Sboonny marked this pull request as ready for review September 14, 2023 15:42
@Sboonny
Sboonny requested a review from a team September 14, 2023 15:42
@moT01 moT01 added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Sep 19, 2023
@ahmaxed

ahmaxed commented Sep 20, 2023

Copy link
Copy Markdown
Member

Solid work here. This is what stood out:
1- the color of the help-block under the email field does not match the danger-color.
Screenshot 2023-09-20 at 3 15 12 PM

2- on the internet component, some validation are getting the tick some don't. Also the tick is outside of the form field.
Screenshot 2023-09-20 at 3 20 39 PM

This is unrelated to this pr, but we should display all validations in the same way across the platform. Either tick for all valid inputs or for none, the input feedback should either be in a help block or in an alert, etc.

@Sboonny
Sboonny marked this pull request as draft September 20, 2023 12:38
@Sboonny Sboonny removed the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Sep 20, 2023
@Sboonny
Sboonny marked this pull request as ready for review September 22, 2023 13:37
@Sboonny Sboonny mentioned this pull request Oct 5, 2023
4 tasks

@ahmaxed ahmaxed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGMT,
My only nitpick is that text area should get a hight of auto so it looks different from an input.
Screenshot 2023-10-11 at 2 45 43 PM
Screenshot 2023-10-11 at 2 45 51 PM

@Sboonny

Sboonny commented Oct 11, 2023 •

Copy link
Copy Markdown
Member Author

My only nitpick is that text area should get a hight of auto so it looks different from an input.

I forgot to mention it here. I am aware of the specificity issue that stop the textarea from getting h-8 className, and plan to fix it with the decoupling of the component, when I turn FormControl to Input and Textarea.

More details will be added in the rework ui component issue, after bootstrap have been removed

@ahmaxed

ahmaxed commented Oct 11, 2023 •

Copy link
Copy Markdown
Member

I think the textarea is getting the h-8, but it should not.

@Sboonny
Sboonny requested a review from huyenltnguyen October 11, 2023 15:21
@naomi-lgbt naomi-lgbt added the MERGE CONFLICT! To be applied to PR's that have a merge conflict and need updating label Oct 12, 2023
Co-authored-by: Oliver Eyton-Williams <[email protected]>
Co-authored-by: Huyen Nguyen <[email protected]>
@Sboonny Sboonny changed the title feat: replace forms component feat: replace form components Oct 13, 2023

@huyenltnguyen huyenltnguyen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just a couple more 😄

@huyenltnguyen huyenltnguyen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

I think we will need to wait for #51980 as the CI failures appear to be caused by the Node upgrade 😓

@huyenltnguyen huyenltnguyen removed the MERGE CONFLICT! To be applied to PR's that have a merge conflict and need updating label Oct 15, 2023
@naomi-lgbt
naomi-lgbt merged commit 2ccf52e into freeCodeCamp:main Oct 16, 2023
@Sboonny
Sboonny deleted the feat/replace-control-label-with-ui-control-label branch October 16, 2023 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants