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-8938] - Update TextField to not depend on ramda #11306

Conversation

bnussman-akamai
Copy link
Member

Description 📝

  • Creates a clamp utility function in our new @linode/ui package so that it does not have to rely on ramda 🗑️
  • Relates to the migration to pnpm - See this pipeline failure 🚫

Preview 📷

Note

No UI changes

How to test 🧪

  • Test general number clamping in affected files 👀
  • Verify there are no regressions on touched files and all unit tests continue to pass ✅

As an Author, I have 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 Nov 21, 2024
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner November 21, 2024 21:24
@bnussman-akamai bnussman-akamai requested review from mjac0bs and harsh-akamai and removed request for a team November 21, 2024 21:24
Copy link

github-actions bot commented Nov 21, 2024

Coverage Report:
Base Coverage: 86.96%
Current Coverage: 86.98%

Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

Test coverage passes, NodeBalancers health check textfields and standard rescue dialog looked good. I left suggestions about improved validation messaging.

Goodbye to more Ramda. Thx, Banks!

Copy link
Contributor

Choose a reason for hiding this comment

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

Optionally, to be slightly less repetitive, this could be a single changeset ("... in createNodeBalancerConfigSchema and UpdateNodeBalancerConfigSchema") since the same changes were made in both, but two changesets works too.

packages/validation/src/nodebalancers.schema.ts Outdated Show resolved Hide resolved
packages/validation/src/nodebalancers.schema.ts Outdated Show resolved Hide resolved
packages/validation/src/nodebalancers.schema.ts Outdated Show resolved Hide resolved
packages/validation/src/nodebalancers.schema.ts Outdated Show resolved Hide resolved
packages/validation/src/nodebalancers.schema.ts Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, we actually see validation errors now. 🙌🏼

Added some suggestions below to display a more human-readable message when this validation is shown. Currently...

Header Header
Screen.Recording.2024-11-22.at.10.47.04.AM.mov
Screenshot 2024-11-22 at 10 46 02 AM Screenshot 2024-11-22 at 10 45 04 AM

packages/validation/src/nodebalancers.schema.ts Outdated Show resolved Hide resolved
@mjac0bs mjac0bs added the Add'tl Approval Needed Waiting on another approval! label Nov 22, 2024
bnussman-akamai and others added 2 commits November 22, 2024 14:38
Thanks!

Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
Copy link
Contributor

Choose a reason for hiding this comment

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

@bnussman-akamai I think this is a duplicate changeset

@jaalah-akamai jaalah-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Nov 25, 2024
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 455 passing tests on test run #8 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing455 Passing2 Skipped100m 17s

@bnussman-akamai bnussman-akamai merged commit 23fa3c7 into linode:develop Nov 25, 2024
23 checks passed
Copy link

cypress bot commented Nov 25, 2024

Cloud Manager E2E    Run #6879

Run Properties:  status check passed Passed #6879  •  git commit 23fa3c75bf: refactor: [M3-8938] - Update `TextField` to not depend on `ramda` (#11306)
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #6879
Run duration 30m 12s
Commit git commit 23fa3c75bf: refactor: [M3-8938] - Update `TextField` to not depend on `ramda` (#11306)
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 455
View all changes introduced in this branch ↗︎

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! Modularization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants