-
Notifications
You must be signed in to change notification settings - Fork 98
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(pci.private-network): Listing page - Listing page revamp #14210
base: feat/private-network-refactor1
Are you sure you want to change the base?
feat(pci.private-network): Listing page - Listing page revamp #14210
Conversation
ref: -1826 Signed-off-by: tsiorifamonjena <[email protected]>
ref: -1826 Signed-off-by: tsiorifamonjena <[email protected]>
ref: -1826 Signed-off-by: tsiorifamonjena <[email protected]>
ref: -1826 Signed-off-by: tsiorifamonjena <[email protected]>
ref: -1826 Signed-off-by: tsiorifamonjena <[email protected]>
ref: -1826 Signed-off-by: tsiorifamonjena <[email protected]>
{dhcpEnabled | ||
? renderChip( | ||
t('pci_projects_project_network_private_dhcp_active'), | ||
ODS_THEME_COLOR_INTENT.success, | ||
) | ||
: renderChip( | ||
t('pci_projects_project_network_private_dhcp_disabled'), | ||
ODS_THEME_COLOR_INTENT.warning, | ||
)} |
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.
Why create the rendChip and not use react component ?
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.
Not outdated, still an issue
packages/manager/apps/pci-private-network/src/data/hooks/networks/useNetworks.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-network/src/data/hooks/networks/useNetworks.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-network/src/pages/delete/DeleteNetwork.page.tsx
Outdated
Show resolved
Hide resolved
ref: -1826 Signed-off-by: tsiorifamonjena <[email protected]>
ref: -1826 Signed-off-by: tsiorifamonjena <[email protected]>
const color = { | ||
[ResourceStatus.ACTIVE]: ODS_THEME_COLOR_INTENT.success, | ||
[ResourceStatus.DISABLED]: ODS_THEME_COLOR_INTENT.warning, | ||
}; |
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.
This could be outside of component
packages/manager/apps/pci-private-network/src/data/hooks/networks/useNetworks.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-network/src/data/hooks/networks/useNetworks.ts
Outdated
Show resolved
Hide resolved
|
||
return ( | ||
<OsdsTabPanel | ||
active={activeTab === PrivateNetworkTabName.LOCAL_ZONE_TAB_NAME} |
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.
This doesn't seem to be used ? If the component is displayed then we are on the tab
packages/manager/apps/pci-private-network/src/data/hooks/networks/useNetworks.ts
Outdated
Show resolved
Hide resolved
name={PrivateNetworkTabName.LOCAL_ZONE_TAB_NAME} | ||
> | ||
<Notifications /> | ||
{isPending ? ( |
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.
Maybe we should reconsider this since there is a lot of requests running in parallel we could display data network by network and display a spinner above.
This could allow to have one region down while we can still access the page
path: ROUTE_PATHS.delete, | ||
path: '', | ||
...lazyRouteConfig(() => | ||
import('@/pages/delete/DeleteNetwork.page'), | ||
import('@/pages/listing/region/PrivateNetworkRegion.page'), | ||
), | ||
handle: { | ||
tracking: 'delete', | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
path: ROUTE_PATHS.localZone, | ||
handle: { | ||
tracking: 'localZone', | ||
}, | ||
...lazyRouteConfig(() => import('@/pages/list/List.page')), | ||
children: [ | ||
{ | ||
path: ROUTE_PATHS.delete, | ||
path: ROUTE_PATHS.localZone, | ||
...lazyRouteConfig(() => | ||
import('@/pages/delete/DeleteNetwork.page'), | ||
import('@/pages/listing/localZone/PrivateNetworkLZ.page'), | ||
), |
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.
Routing seems weird, I think we should use query params instead but I don't understand how LZ is different from classic regions
ref: -1826 Signed-off-by: tsiorifamonjena <[email protected]>
ref: -1826 Signed-off-by: tsiorifamonjena <[email protected]>
8b09ba6
to
c865939
Compare
Quality Gate passedIssues Measures |
ref: TAPC-1826
feat/private-network-refactor1
Description
Related