-
Notifications
You must be signed in to change notification settings - Fork 367
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
feat: [M3-7351] - AGLB Configurations Add Route Drawer and other refinements #9853
Conversation
@@ -204,50 +187,6 @@ export const RoutesTable = ({ configuredRoutes }: Props) => { | |||
|
|||
return ( | |||
<> | |||
<Stack |
There was a problem hiding this comment.
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' }, |
There was a problem hiding this comment.
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
There was a problem hiding this 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:
packages/manager/.changeset/pr-9853-upcoming-features-1698705643963.md
Outdated
Show resolved
Hide resolved
...ager/src/features/LoadBalancers/LoadBalancerDetail/Configurations/ConfigurationAccordion.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/LoadBalancers/LoadBalancerDetail/LoadBalancerRoutes.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/LoadBalancers/LoadBalancerDetail/LoadBalancerServiceTargets.tsx
Show resolved
Hide resolved
...ager/src/features/LoadBalancers/LoadBalancerDetail/Configurations/ConfigurationAccordion.tsx
Show resolved
Hide resolved
Updated copy will be coming very soon! @mjac0bs I think I addressed your feedback! Let me know if I missed anything! |
packages/manager/.changeset/pr-9853-upcoming-features-1698871857708.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
There was a problem hiding this 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?:
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?
Description 📝
RouteSelect
componentPreview 📷
How to test 🧪
Prerequisites
Verification steps
Add Route
button and the corresponding drawer (We can only test so much with the MSW)As an Author I have considered 🤔