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

feat: [M3-7351] - AGLB Configurations Add Route Drawer and other refinements #9853

Conversation

bnussman-akamai
Copy link
Member

@bnussman-akamai bnussman-akamai commented Oct 30, 2023

Description 📝

  • Updates AGLB Configurations to match UX mockups
  • Adds Add Route drawer where you can
    • Add an existing route
    • Create a new route
  • Adds RouteSelect component
  • Fixes some position/styling
  • Componentizes the Beta Regions

Preview 📷

Before After
Screenshot 2023-10-30 at 6 14 21 PM Screenshot 2023-10-30 at 6 13 50 PM
Screenshot 2023-10-31 at 9 58 41 AM Screenshot 2023-10-31 at 9 58 26 AM

How to test 🧪

Prerequisites

  • Turn on the MSW

Verification steps

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

@bnussman-akamai bnussman-akamai added Work in Progress ACLB Relating to the Akamai Cloud Load Balancer labels Oct 30, 2023
@bnussman-akamai bnussman-akamai self-assigned this Oct 30, 2023
@bnussman-akamai bnussman-akamai marked this pull request as ready for review October 30, 2023 22:40
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner October 30, 2023 22:40
@bnussman-akamai bnussman-akamai requested review from jdamore-linode and cliu-akamai and removed request for a team October 30, 2023 22:40
@@ -204,50 +187,6 @@ export const RoutesTable = ({ configuredRoutes }: Props) => {

return (
<>
<Stack
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved this logic outside of this component so we can re-use it between the Routes tab and the configurations tab

<ActionMenu
actionsList={[
{ onClick: () => onEditRoute(route), title: 'Edit' },
{ onClick: () => null, title: 'Clone Route' },
Copy link
Member Author

Choose a reason for hiding this comment

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

We're not going to do cloning for beta

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 tested Add Route drawer functionality and confirmed that adding a new route sends a POST request and form validation works for both adding a new route and adding an existing route.

I haven't seen any major styling issues, but a have commented a couple suggestions related to service target table and the config tab. I'll take another glance through the UI to finish confirming styling after this initial feedback.

I also don't know the best spot for this feedback and know copy is being finalized anyway, but I don't want to accidentally miss these if this copy doesn't change much - Configure tab > Apply Certificate drawer:
Screenshot 2023-11-01 at 12 48 49 PM

@bnussman-akamai
Copy link
Member Author

Updated copy will be coming very soon! @mjac0bs

I think I addressed your feedback! Let me know if I missed anything!

Copy link
Contributor

@cpathipa cpathipa left a comment

Choose a reason for hiding this comment

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

Overall functionality LGTM! left couple of non blocking comments.

{ country: 'jp', id: 'jp-osa', label: 'Osaka, JP' },
{ country: 'au', id: 'ap-southeast', label: 'Sydney, AU' },
];
import { LoadBalancerRegions as Regions } from '../LoadBalancerDetail/LoadBalancerRegions';
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we keep LoadBalancerRegions as is and rename component name to LoadBalancerRegionsPanel

@@ -29,11 +29,30 @@ interface Props {
loadbalancerId: number;
}

function getConfigurationPayloadFromConfiguration(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we name it buildConfigurationPayload / generateConfigPayload ? getConfigurationPayloadFromConfiguration is a bit confusing.

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.

Add Routes drawer still looks good, error state for Configurations tab looks good, and thanks for adding the ID column to Service Targets (and ID elsewhere, it looks like).

Non-blocking: one more spot in the mocks where we have an ID -- the certificate ID and created timestamp -- can we add that here now?:
image

Worth asking because there are are little changes in this PR -- are there any additional unit or e2e updates we want to make to check for the IDs displaying in the UI, etc?

@mjac0bs mjac0bs added the Approved Multiple approvals and ready to merge! label Nov 2, 2023
@bnussman-akamai bnussman-akamai merged commit d47fdc5 into linode:develop Nov 2, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ACLB Relating to the Akamai Cloud Load Balancer Approved Multiple approvals and ready to merge!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants