diff --git a/apps/console-v5/src/routes/_authenticated/organization/$organizationId/project/$projectId/environment/$environmentId/overview.tsx b/apps/console-v5/src/routes/_authenticated/organization/$organizationId/project/$projectId/environment/$environmentId/overview.tsx index 8d50264e0ea..69ff2e2f061 100644 --- a/apps/console-v5/src/routes/_authenticated/organization/$organizationId/project/$projectId/environment/$environmentId/overview.tsx +++ b/apps/console-v5/src/routes/_authenticated/organization/$organizationId/project/$projectId/environment/$environmentId/overview.tsx @@ -3,7 +3,9 @@ import { Suspense } from 'react' import { EnvironmentMode, useEnvironment } from '@qovery/domains/environments/feature' import { ServiceList } from '@qovery/domains/services/feature' import { SERVICES_NEW_URL, SERVICES_URL } from '@qovery/shared/routes' -import { Heading, Icon, Link, LoaderSpinner, Section } from '@qovery/shared/ui' +import { Heading, Icon, Link, Section, Skeleton, TablePrimitives } from '@qovery/shared/ui' + +const { Table } = TablePrimitives export const Route = createFileRoute( '/_authenticated/organization/$organizationId/project/$projectId/environment/$environmentId/overview' @@ -66,15 +68,70 @@ function EnvironmentOverview() { ) } -function RouteComponent() { +function ServiceListSkeleton() { + const columnSizes = ['40%', '15%', '15%', '20%', '10%'] + return ( - - +
+
+
+
+
+ + +
+
+
- } - > +
+
+
+ + +
+ + + + {[...Array(5)].map((_, index) => ( + + + + ))} + + + + {[...Array(3)].map((_, index) => ( + + {[...Array(5)].map((_, index) => ( + + {index === 0 ? ( +
+ + +
+ ) : ( + + )} +
+ ))} +
+ ))} +
+
+
+
+
+
+ ) +} + +function RouteComponent() { + return ( + }> ) diff --git a/apps/console-v5/src/routes/_authenticated/organization/route.tsx b/apps/console-v5/src/routes/_authenticated/organization/route.tsx index f95b1606ae4..d1bd7e65b6f 100644 --- a/apps/console-v5/src/routes/_authenticated/organization/route.tsx +++ b/apps/console-v5/src/routes/_authenticated/organization/route.tsx @@ -1,7 +1,7 @@ import { type IconName } from '@fortawesome/fontawesome-common-types' import { Outlet, createFileRoute, useLocation, useMatches, useParams } from '@tanstack/react-router' import { Suspense } from 'react' -import { Icon, LoaderSpinner, Navbar } from '@qovery/shared/ui' +import { ErrorBoundary, Icon, LoaderSpinner, Navbar } from '@qovery/shared/ui' import { queries } from '@qovery/state/util-queries' import Header from '../../../app/components/header/header' import { type FileRouteTypes } from '../../../routeTree.gen' @@ -341,21 +341,23 @@ function OrganizationRoute() {
{/* TODO: Conflicts with body main:not(.h-screen, .layout-onboarding) */}
- }> - <> -
- -
- - {navigationContext && } - -
- -
- -
- - + + }> + <> +
+ +
+ + {navigationContext && } + +
+ +
+ +
+ + +
) diff --git a/libs/domains/environments/feature/src/lib/environment-list/__snapshots__/environment-list.spec.tsx.snap b/libs/domains/environments/feature/src/lib/environment-list/__snapshots__/environment-list.spec.tsx.snap index c46b4042b72..feac9733ffd 100644 --- a/libs/domains/environments/feature/src/lib/environment-list/__snapshots__/environment-list.spec.tsx.snap +++ b/libs/domains/environments/feature/src/lib/environment-list/__snapshots__/environment-list.spec.tsx.snap @@ -11,7 +11,7 @@ exports[`EnvironmentList should match snapshot 1`] = `