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

change: [M3-8159] - Modify limited availability banner display logic #10536

Merged
merged 6 commits into from
Jun 5, 2024

Conversation

abailly-akamai
Copy link
Contributor

@abailly-akamai abailly-akamai commented May 31, 2024

Description 📝

This PR modifies the display logic of the limited availability banner in the Selection Plan. This is the result of product wanted to limit the display of the banner, especially as it relates to the 512Gb plan since the banner would always display for any class with a 512 plan.

The solution was to only display the banner if more than half of the plans are disabled. Since that logic already existed for the disabled tooltip, I leveraged this util to apply it to the notice.

As a result, the logic is as follow:

  • If more than half plans are disabled, show the limited availability banner and hide the limited availability tooltip
  • If less than half plans are disabled, hide the limited availability banner and show the limited availability tooltip

Additionally, it was decided to include the "learn more" link in the Class description copy and remove it from the banner so it is always available for the user now that the banner won't display often.

Changes 🔄

  • Update limited availability banner display logic
  • Remove the "Learn More" copy from the limited availability banner
  • Update the Class copy to feature the "Learn More" copy
  • Update selection plan e2e suite

Target release date 🗓️

6/10/2024

Preview 📷

Before After
Create a Linode _ Akamai Cloud Manager · 3 14pm · 05-31 Create · 3 04pm · 05-31
Create a Linode _ Akamai Cloud Manager · 3 14pm · 05-31 (1) Create

How to test 🧪

Verification steps

  • Confirm updated display and no regression of selection plans (with different regions) in
    • Linode Create flows
    • Kubernetes Create flow
    • Database create flow

As an Author I have considered 🤔

Check all that apply

  • 👀 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

@abailly-akamai abailly-akamai self-assigned this May 31, 2024
@abailly-akamai abailly-akamai marked this pull request as ready for review May 31, 2024 19:19
@abailly-akamai abailly-akamai requested review from a team as code owners May 31, 2024 19:19
@abailly-akamai abailly-akamai requested review from AzureLatte, jdamore-linode and mjac0bs and removed request for a team May 31, 2024 19:19
@abailly-akamai abailly-akamai added the DC Get Well Relating to the DC Get Well project label May 31, 2024
Copy link

github-actions bot commented May 31, 2024

Coverage Report:
Base Coverage: 82.36%
Current Coverage: 82.36%

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.

  • Confirmed the "learn more" link has moved from the notice to the class description helper text above the plans table
  • Confirmed that the notice displays if the majority of plans are disabled and tooltip does not; else, the inverse
  • Test passing 🧪

Approving, but noting one thing.

For this branch, compared to dev (which is the only place I can see Bare Metal), we're now seeing two notices and the class description copy is not visible. I don't have much familiarity with the Bare Metal plans, so not sure if this change was intended, impactful, or not.

Dev This Branch
Screenshot 2024-06-03 at 9 50 13 AM Screenshot 2024-06-03 at 9 49 40 AM

@abailly-akamai
Copy link
Contributor Author

thanks @mjac0bs - bare metal plans are kind of a special case (and you need an account flag for them to even show up). This is prolly a bit out of scope but i removed the display of the limited availability banner for them anyway since they handle their own. Good catch!

Copy link
Contributor

@AzureLatte AzureLatte 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.

@bnussman-akamai bnussman-akamai added the Approved Multiple approvals and ready to merge! label Jun 5, 2024
@abailly-akamai abailly-akamai merged commit c13f58e into linode:develop Jun 5, 2024
18 checks passed
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! DC Get Well Relating to the DC Get Well project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants