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

refactor: [M3-8981] - Use new preferences selector pattern in more places #11459

Conversation

bnussman-akamai
Copy link
Member

@bnussman-akamai bnussman-akamai commented Dec 23, 2024

Description 📝

Preview 📷

Before After
Screen.Recording.2024-12-24.at.4.36.46.PM.mov
Screen.Recording.2024-12-24.at.4.35.49.PM.mov
All components re-render when a single preference changes With some refactoring and using the new selector pattern, we can localize re-renders 🎉

How to test 🧪

  • Verify there are no regressions relating to the touched components
  • Use a tool like https://github.com/aidenybai/react-scan to verify re-renders don't cause as many things to re-render when preferences are changed
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@bnussman-akamai bnussman-akamai self-assigned this Dec 23, 2024
@bnussman-akamai bnussman-akamai marked this pull request as ready for review December 24, 2024 21:35
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner December 24, 2024 21:35
@bnussman-akamai bnussman-akamai requested review from cpathipa and harsh-akamai and removed request for a team December 24, 2024 21:35
Copy link

github-actions bot commented Dec 24, 2024

Coverage Report:
Base Coverage: 86.94%
Current Coverage: 86.94%

@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 469 passing tests on test run #4 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing469 Passing2 Skipped85m 43s

Copy link
Contributor

@jaalah-akamai jaalah-akamai left a comment

Choose a reason for hiding this comment

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

Very nice 🔥

@jaalah-akamai jaalah-akamai added the Approved Multiple approvals and ready to merge! label Dec 27, 2024
@bnussman-akamai bnussman-akamai merged commit 1fd49e8 into linode:develop Jan 2, 2025
21 of 23 checks passed
Copy link

cypress bot commented Jan 2, 2025

Cloud Manager E2E    Run #7026

Run Properties:  status check passed Passed #7026  •  git commit 1fd49e8908: refactor: [M3-8981] - Use new preferences selector pattern in more places (#1145...
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #7026
Run duration 29m 51s
Commit git commit 1fd49e8908: refactor: [M3-8981] - Use new preferences selector pattern in more places (#1145...
Committer Banks Nussman
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 469
View all changes introduced in this branch ↗︎

dmcintyr-akamai pushed a commit to dmcintyr-akamai/manager that referenced this pull request Jan 9, 2025
…aces (linode#11459)

* use selector pattern in most places

* update mocked unit test

* clean up profile settings

* add unit testing

* remove react scan before merging

---------

Co-authored-by: Banks Nussman <banks@nussman.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants