Skip to content

Conversation

@abailly-akamai
Copy link
Contributor

@abailly-akamai abailly-akamai commented Mar 18, 2025

Description 📝

Small PR to add a Beta Chip to the /account "Quota" tab.

  1. We still had a <BetaChip /> in manager/src/components/ after migrating it to @linode/ui
  2. The chip color prop was also broken (default/primary were doing the same thing) so I added a secondary prop instead and if no color is passed it'll default to primary. No change for existing instances since they were all already inheriting the primary styles.

Changes 🔄

  • Delete old instance of <BetaChip /> in manager/src/components/
  • Fix <BetaChip > color prop
    • keep primary as default (existing instances)
    • add secondary style from UX guidance
  • Add new chip to the /account "Quota" tab
  • Update tests

Preview 📷

Light Mode Dark Mode
Account Quotas localhost 3000 Account Quotas (1)

How to test 🧪

Verification steps

  • Navigate to /account and confirm new chip
  • Confirm no regression with existing instances of beta chip (Primary Nav, Database Create)
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

@abailly-akamai abailly-akamai marked this pull request as ready for review March 18, 2025 17:27
@abailly-akamai abailly-akamai requested review from a team as code owners March 18, 2025 17:27
@abailly-akamai abailly-akamai requested review from harsh-akamai, jdamore-linode and mjac0bs and removed request for a team March 18, 2025 17:27
@github-actions
Copy link

Coverage Report:
Base Coverage: 79.96%
Current Coverage: 79.93%

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.

Navigate to /account and confirm new chip

👋🏼 new chip

Screenshot 2025-03-19 at 12 27 08 PM

Confirm no regression with existing instances of beta chip (Primary Nav, Database Create)

These look good. What was UX's guidance for when to use the secondary color vs. primary?

(Asking because I'm wondering whether ApplicationPlatform for LKE should use the secondary color at some point. Currently, it doesn't even use a BetaChip; it uses a Chip for which the label is "BETA". That works for now while APL is disabled for LKE-E, but making a ticket [M3-9608] to switch this over to a BetaChip in the future while I'm here...)

@mjac0bs mjac0bs added the Add'tl Approval Needed Waiting on another approval! label Mar 19, 2025
@abailly-akamai
Copy link
Contributor Author

What was UX's guidance for when to use the secondary color vs. primary?

@mjac0bs I think it really just has to do wether the chip applies on a dark VS light background. (in that regard primary VS secondary could be arguably reversed but wanted to keep thing simple and scoped for this PR).

The primary beta chip was first only in the PrimaryNav but has now exapanded to the rest of the App but the primary styles contrast poorly on the white bg

Copy link
Contributor

@coliu-akamai coliu-akamai left a comment

Choose a reason for hiding this comment

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

looks good, thank you!

@github-project-automation github-project-automation bot moved this from Review to Approved in Cloud Manager Mar 24, 2025
@coliu-akamai coliu-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Mar 24, 2025
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 533 passing tests on test run #8 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing533 Passing4 Skipped115m 33s

@abailly-akamai abailly-akamai merged commit c0bfd30 into linode:develop Mar 24, 2025
25 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Cloud Manager Mar 24, 2025
bill-akamai pushed a commit to bill-akamai/manager that referenced this pull request Mar 25, 2025
* save progress

* Add proper colors for secondary styles

* fix test

* Delete old instance of BetaChip

* Changesets
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! Limits

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants