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

London 11 | Pezhman-Azizi | Data-Groups | sprint 3 | Quote Generator #274

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Pezhman-Azizi
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

In this update, I implemented functionality for the Quote Generator to display a random quote and author on page load, with a button to generate new quotes when clicked. The styling was enhanced with a modern teal and grey color scheme, responsive layout, and interactive button effects. I also fixed compatibility issues in the tests by adding a TextEncoder polyfill, updated Jest and jsdom configurations, and ensured all tests passed successfully. The project structure was organized for better readability and maintainability.

Questions

I encountered and resolved the TextEncoder issue during the tests with the help of a polyfill. Could you confirm if my understanding is correct—that the issue arose because Node.js needed TextEncoder globally available for jsdom? I want to ensure I’ve grasped it fully.

…roduced new modern teal-grey theme for a fresh, clean look. Ready for feedback or further refinements!
…extEncoder polyfill and ensuring Jest and jsdom configurations were correctly set up. All tests are now passing successfully!
@Pezhman-Azizi Pezhman-Azizi added the Needs Review Participant to add when requesting review label Jan 4, 2025
Copy link

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Code is good. Feel free to mark this as "Completed".

  • We should respect instructions like DO NOT EDIT BELOW HERE; it is usually there for a good reason. If you are curious about why, you can ask ChatGPT Why should programmers respect "DO NOT EDIT BELOW HERE" instruction in a file?

  • I won't be able to answer your questions regarding "TextEncoder" because I didn't run jest on this app, and I do not know what issue you were referring to.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants