Skip to content

refactor(client): replace Bootstrap button component on settings page - #52525

Merged
Sembauke merged 18 commits into
freeCodeCamp:mainfrom
huyenltnguyen:refactor/button-migration-settings-page
Jan 22, 2024
Merged

Sembauke merged 18 commits into
freeCodeCamp:mainfrom
huyenltnguyen:refactor/button-migration-settings-page

Conversation

@huyenltnguyen

@huyenltnguyen huyenltnguyen commented Dec 11, 2023 •

Copy link
Copy Markdown
Member

Checklist:

This PR

Affected areas and steps to test

Details with screenshots
Affected area Steps to test Screenshot
Inline login CTA - Sign out and go to the landing page
- Check the sign in button in the navigation
Screenshot 2023-12-13 at 09 38 11
Block login CTA - Sign out and go to the landing page
- Check the "Get started (it's free)" button
Screenshot 2023-12-13 at 09 42 14
Update button on /update-email - Go to /update-email
- Check the update button
Screenshot 2023-12-13 at 14 56 36
"Personal Information" section on Settings page - Go to /settings
- Scroll down to the "Personal Information" section - Check the save button
Screenshot 2023-12-13 at 15 31 44
"Privacy Settings" section on Settings page - Go to /settings
- Scroll down to the "Privacy Settings" section
- Check the save and the download data buttons
Screenshot 2023-12-13 at 16 53 02
"Email Settings" section on Settings page - save button - Go to /settings
- Scroll down to the "Email Settings" section
- Check the save button
Screenshot 2023-12-13 at 16 07 15
"Email settings" section on Settings page - edit button - Flip the rendering logic of the edit button (link to the code) - Go to /settings
- Scroll down to the "Email Settings" section
- Check the edit button
Screenshot 2023-12-13 at 16 10 50
"Your Internet Presence" section on Settings page - Go to /settings
- Scroll down to the "Your Internet Presence" section
- Check the save button
Screenshot 2023-12-13 at 16 27 20
"Portfolio Settings" section on Settings page - add item button - Go to /settings
- Scroll down to the "Portfolio Settings" section
- Check the add item button
Screenshot 2023-12-13 at 16 29 42
"Portfolio Settings" section on Settings page - save and remove item buttons - Go to /settings
- Scroll down to the "Portfolio Settings" section
- Click the "Add a new portfolio item" button - Check the save and remove item buttons
Screenshot 2023-12-13 at 16 39 00
"Academic Honesty Policy" section on Settings page - Go to /settings
- Scroll down to the "Academic Honesty Policy" section
- Check the accept button
Screenshot 2023-12-13 at 16 24 35
"Certification" section on Settings page - show cert - Go to /settings
- Scroll down to the "Certifications" section
- Check the "Show Certification" buttons
Screenshot 2023-12-13 at 15 54 09
"Certification" section on Settings page - claim cert - Seed the DB with isFullStackCert being false
- Go to /settings
- Scroll down to the "Legacy Full Stack Certification" section
- Check the "Claim Certification" button
Screenshot 2023-12-13 at 15 54 29
"Danger zone" section on Settings page - delete and reset buttons - Go to /settings
- Scroll all the way down to the "Danger zone" section
- Check the buttons in the section
Screenshot 2023-12-13 at 15 59 40
"Danger zone" section on Settings page - delete modal - Go to /settings
- Scroll all the way down to the "Danger zone" section
- Click "Delete my account"
- Check the buttons in the modal
Screenshot 2023-12-13 at 16 02 29
"Danger zone" section on Settings page - reset modal - Go to /settings
- Scroll all the way down to the "Danger zone" section
- Click "Reset all of my progress"
- Check the buttons in the modal
Screenshot 2023-12-13 at 16 03 43

@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 Dec 11, 2023
@ghost

ghost commented Dec 11, 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 force-pushed the refactor/button-migration-settings-page branch from b5d9c22 to 6a950ad Compare December 12, 2023 07:23
@huyenltnguyen
huyenltnguyen force-pushed the refactor/button-migration-settings-page branch from 6a950ad to 9f037c7 Compare December 12, 2023 09:20

@huyenltnguyen huyenltnguyen left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This PR is blocked by Cypress test failure, and I can't fix them for the life of me.

I'll create an issue for the Cypress removal and start cleaning up / migrating those that are blocking this PR.

@huyenltnguyen huyenltnguyen mentioned this pull request Jan 3, 2024
61 tasks done
@Sembauke

Sembauke commented Jan 5, 2024 •

Copy link
Copy Markdown
Member

Seems that aria-label would still be there after the button was enabled. This was not the case for the Button component.

Example:

image

@huyenltnguyen

Copy link
Copy Markdown
Member Author

Hooookay, the PR is ready for review now as it passed CI. Not a PR that I'm proud of though, as I couldn't fix the failed tests and had to disable them.

Disabled test Reason to disable Next step
cypress/e2e/default/learn/responsive-web-design/show-cert-from-superblock.ts We already have Playwright test cases for the show certification workflow in e2e/settings.spec.ts. The test file can be removed, but we'll need to add new Playwright test cases for the claim certification workflow (tracked by #52905).
cypress/e2e/default/learn/challenges/projects.ts Failed only for Electron but not the others. The test appear to be a false negative as it interacts with a non-existent element. We'll need to add new Playwright test cases for the project submission workflow (tracked by #52905).
cypress/e2e/default/settings/certifications.ts The tests appear to be false negative. The assertions don't match the actual UI/UX but they have been passing until now. We'll need to add new Playwright test cases for the claim certification workflow (tracked by #52905).

If we aren't comfortable with the tests being disabled, I'm happy to put this PR on ice and proceed with the test migration first (the migration will be quite involved though, and it can take a while).

@huyenltnguyen
huyenltnguyen marked this pull request as ready for review January 16, 2024 15:53
@huyenltnguyen
huyenltnguyen requested a review from a team January 16, 2024 15:53
@Sembauke

Copy link
Copy Markdown
Member

May Cypress die peacefully

@Sembauke
Sembauke merged commit b1fc2db into freeCodeCamp:main Jan 22, 2024
@Sembauke

Copy link
Copy Markdown
Member

Thank you for all your hard work Huyen!

@huyenltnguyen
huyenltnguyen deleted the refactor/button-migration-settings-page branch January 23, 2024 07:07
ShaunSHamilton added a commit to ShaunSHamilton/freeCodeCamp that referenced this pull request Jan 30, 2024
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.

3 participants