Skip to content

refactor(client): migrate button component in donation form - #52355

Merged
moT01 merged 3 commits into
freeCodeCamp:mainfrom
huyenltnguyen:refactor/button-migration-donation
Nov 21, 2023
Merged

moT01 merged 3 commits into
freeCodeCamp:mainfrom
huyenltnguyen:refactor/button-migration-donation

Conversation

@huyenltnguyen

@huyenltnguyen huyenltnguyen commented Nov 14, 2023 •

Copy link
Copy Markdown
Member

Checklist:

This PR:

The issue thread is quite long, so TL;DR: the styling of buttons in the donation form don't match ui-components, so instead of replacing the Bootstrap Buttons with ours and risking CSS collisions, I'm temporarily swapping the buttons with the native <button> element to keep the migration moving. We will revisit the component library and clean these up once we know what to do with the one-off components in /learn.

Notes for reviewers: I tend to talk a lot on PR, and it's not fair that you have to resolve my self-review comments. So just leave your approval if the PR looks good, I can clear those comments and merge the PR myself 🙂

Testing

Screenshots

Desktop

Desktop screenshots
Button State Light Dark
Donation at rest Screenshot 2023-11-15 at 01 16 06 Screenshot 2023-11-15 at 01 05 21
Donation hovered Screenshot 2023-11-15 at 01 18 29 Screenshot 2023-11-15 at 01 05 36
Donation focused Screenshot 2023-11-15 at 01 23 11 Screenshot 2023-11-15 at 01 15 05
Edit amount at rest Screenshot 2023-11-15 at 01 31 47 Screenshot 2023-11-15 at 01 29 13
Edit amount hovered Screenshot 2023-11-15 at 01 31 54 Screenshot 2023-11-15 at 01 29 19
Edit amount focused Screenshot 2023-11-15 at 01 32 07 Screenshot 2023-11-15 at 01 29 27
Close / Ask me later at rest Screenshot 2023-11-15 at 01 16 06 Screenshot 2023-11-15 at 01 05 21
Close / Ask me later hovered Screenshot 2023-11-15 at 01 26 18 Screenshot 2023-11-15 at 01 27 34
Close / Ask me later focused Screenshot 2023-11-15 at 01 26 18 Screenshot 2023-11-15 at 01 27 26
Try again at rest Screenshot 2023-11-15 at 01 34 28 Screenshot 2023-11-15 at 01 36 27
Try again hovered Screenshot 2023-11-15 at 01 34 37 Screenshot 2023-11-15 at 01 36 33
Try again focused Screenshot 2023-11-15 at 01 34 46 Screenshot 2023-11-15 at 01 36 41

Mobile

I only checked if the buttons are still displayed properly here.

Mobile screenshots
Screen Screenshot
tier selection Screenshot 2023-11-15 at 01 40 54
payment method selection Screenshot 2023-11-15 at 01 47 21
error Screenshot 2023-11-15 at 01 39 36

@huyenltnguyen
huyenltnguyen force-pushed the refactor/button-migration-donation branch from 88d7796 to e9de7c3 Compare November 14, 2023 18:51
@github-actions github-actions Bot added the platform: learn UI side of the client application that needs familiarity with React, Gatsby etc. label Nov 14, 2023
@ghost

ghost commented Nov 14, 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

@huyenltnguyen huyenltnguyen changed the title refactor(client): migration button component in donation form refactor(client): migrate button component in donation form Nov 15, 2023
@huyenltnguyen
huyenltnguyen marked this pull request as ready for review November 15, 2023 06:54
@huyenltnguyen
huyenltnguyen requested a review from a team November 15, 2023 06:54

@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.

Thanks for leaving comments on your pull request. Feel free to leave them for next reviewer.

@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 Nov 21, 2023

@moT01 moT01 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 @huyenltnguyen 🎉

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. status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Button component in donation form

3 participants