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-6471] - Add resource links to NodeBalancers empty state landing page. #10345

Merged
merged 8 commits into from
Apr 8, 2024

Conversation

cpathipa
Copy link
Contributor

@cpathipa cpathipa commented Apr 2, 2024

Description πŸ“

Add's resource links to NodeBalancers empty state landing page.

Target release date πŸ—“οΈ

Please specify a release date to guarantee timely review of this PR. If exact date is not known, please approximate and update it as needed.

Preview πŸ“·

Before After
image image

How to test πŸ§ͺ

Verification steps

(How to verify changes)

Test coverage:

yarn cy:run -s "cypress/e2e/core/nodebalancers/nodebalancers-empty-landing-page.spec.ts"

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

@cpathipa cpathipa requested a review from a team as a code owner April 2, 2024 20:34
@cpathipa cpathipa requested review from jdamore-linode and jaalah-akamai and removed request for a team April 2, 2024 20:34
@cpathipa cpathipa marked this pull request as draft April 2, 2024 20:34
@cpathipa cpathipa changed the title Add resource links to NodeBalancers empty state landing page change : [M3-6471] - Add resource links to NodeBalancers empty state landing page. Apr 2, 2024
@cpathipa cpathipa marked this pull request as ready for review April 2, 2024 20:41
@cpathipa cpathipa self-assigned this Apr 2, 2024
Copy link

github-actions bot commented Apr 2, 2024

Coverage Report: βœ…
Base Coverage: 81.7%
Current Coverage: 81.71%

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.

I'm glad this is getting an update!

Could we get Cypress test coverage for this change? NodeBalancer is really lacking in test coverage, and it would be great if we had something like a nodebalancers-empty-landing-page.spec.ts for this. (Like we have for domains, images, etc.)

  • Confirmed that all links work and open the correct page.
  • Confirmed there are no typos.
  • Confirmed that Adobe Analytics events are firing on link click.
  • Confirmed that empty state page looks good at all screen sizes. (Minus one minor thing noted as an edge case.)

Minor edge case: between widths of 350 and 368 (inclusive), the arrow wraps on the next line, if there's a quick styling fix for this.

Screen.Recording.2024-04-03.at.12.42.06.PM.mov

@cpathipa cpathipa requested a review from a team as a code owner April 5, 2024 13:35
@cpathipa cpathipa requested review from cliu-akamai and removed request for a team April 5, 2024 13:35
@cpathipa cpathipa requested a review from mjac0bs April 5, 2024 13:41
@cpathipa
Copy link
Contributor Author

cpathipa commented Apr 5, 2024

@mjac0bs Added cypress test coverage and fixed the text wrap issue for small screens. 7e6a1ba

Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

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

Confirmed display of resources. βœ…

Approving pending cross browser fix

@@ -11,6 +11,7 @@ interface ResourcesMoreLinkProps extends LinkProps {

const StyledMoreLink = styled(Link)<ResourcesMoreLinkProps>(({ ...props }) => ({
alignItems: props.external ? 'baseline' : 'center',
textWrap: 'balance',
Copy link
Contributor

Choose a reason for hiding this comment

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

The intent here is good to get the caret not to wrap by itself, unfortunately textWrap: 'balance' isn't very well supported and will (for instance) simply not work on safari.

one way to address it is to the same thing that was done for external links icons (negative margin + transform)
https://github.com/linode/manager/blob/develop/packages/manager/src/components/Link.styles.ts#L23-L26

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @abailly-akamai addressed in 68b9883

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.

Thanks for adding the test! Looks good pending Alban's styling recommendation is addressed.

Locally passing test run:
Screenshot 2024-04-08 at 7 39 33β€―AM

@cpathipa cpathipa merged commit 5a3c265 into linode:develop Apr 8, 2024
17 of 18 checks passed
@cpathipa cpathipa deleted the M3-6471 branch April 8, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants