From 3874d32a974c46fe8e30b24479cc8cf74b3aa7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bonnet?= Date: Mon, 21 Oct 2024 15:06:47 +0200 Subject: [PATCH] feat(environment-logs): add new version (#1726) --- .../cluster-action-toolbar.spec.tsx.snap | 26 +-- .../domains/environment-logs/feature/.babelrc | 12 ++ .../environment-logs/feature/.eslintrc.json | 18 ++ .../environment-logs/feature/README.md | 7 + .../environment-logs/feature/jest.config.ts | 11 + .../environment-logs/feature/project.json | 9 + .../environment-logs/feature/src/index.ts | 2 + .../environment-stages.spec.tsx | 60 ++++++ .../environment-stages/environment-stages.tsx | 102 +++++++++ .../header-environment-stages.spec.tsx | 54 +++++ .../header-environment-stages.tsx | 78 +++++++ .../header-pre-check-logs.spec.tsx | 40 ++++ .../header-pre-check-logs.tsx | 72 +++++++ .../use-pre-check-logs/use-pre-check-logs.ts | 69 +++++++ .../list-pre-check-logs.spec.tsx | 60 ++++++ .../list-pre-check-logs.tsx | 84 ++++++++ .../row-pre-check-logs.spec.tsx | 32 +++ .../row-pre-check-logs/row-pre-check-logs.tsx | 48 +++++ .../environment-logs/feature/tsconfig.json | 20 ++ .../feature/tsconfig.lib.json | 19 ++ .../feature/tsconfig.spec.json | 20 ++ .../lib/domains-environments-data-access.ts | 9 + .../domains/environments/feature/src/index.ts | 1 + .../create-clone-environment-modal.tsx | 1 + .../environment-action-toolbar.spec.tsx.snap | 20 +- .../environment-avatar/environment-avatar.tsx | 6 +- .../environment-state-chip.tsx | 36 +++- .../use-deployment-history.ts | 2 +- .../use-deployment-stages.ts | 20 ++ libs/domains/projects/feature/project.json | 2 +- .../domains/service-logs/feature/src/index.ts | 2 + .../breadcrumb-deployment-history.spec.tsx | 44 ++++ .../breadcrumb-deployment-history.tsx | 103 +++++++++ .../breadcrumb-deployment-logs.spec.tsx | 70 +++++++ .../breadcrumb-deployment-logs.tsx | 166 +++++++++++++++ .../stage-item/stage-item.tsx | 110 ++++++++++ .../src/lib/header-logs/header-logs.spec.tsx | 80 +++++++ .../src/lib/header-logs/header-logs.tsx | 123 +++++++++++ .../use-deployment-history.ts | 15 ++ .../use-deployment-logs.ts | 3 +- .../use-deployment-status.ts | 21 ++ .../list-deployment-logs.spec.tsx | 14 +- .../list-deployment-logs.tsx | 87 ++++++-- .../row-deployment-logs.spec.tsx} | 8 +- .../row-deployment-logs.tsx} | 12 +- .../list-service-logs.spec.tsx | 19 +- .../list-service-logs/list-service-logs.tsx | 64 ++++-- .../row-service-logs/style.scss | 2 +- .../service-logs-placeholder.tsx | 16 +- .../use-deployment-history.ts | 2 +- .../service-action-toolbar.spec.tsx.snap | 18 +- .../service-links-popover.spec.tsx.snap | 2 +- .../dropdown-variable.spec.tsx.snap | 4 +- .../field-variable-suggestion.spec.tsx.snap | 4 +- .../src/lib/ui/page-general/page-general.tsx | 2 +- .../button-popover-subnets.spec.tsx.snap | 4 +- .../ui/breadcrumb-item/breadcrumb-item.tsx | 2 +- .../src/lib/ui/breadcrumb/breadcrumb.tsx | 160 +++++++++++--- .../src/lib/ui/navigation/navigation.tsx | 2 +- .../layout/src/lib/ui/top-bar/top-bar.tsx | 2 +- .../deployment-logs-feature.tsx | 72 ++++--- .../environment-stages-feature.spec.tsx | 121 +++++++++++ .../environment-stages-feature.tsx | 195 ++++++++++++++++++ .../pod-logs-feature/pod-logs-feature.tsx | 73 +++---- .../pre-check-logs-feature.spec.tsx | 22 ++ .../pre-check-logs-feature.tsx | 20 ++ .../sidebar-history-feature.spec.tsx | 14 -- .../sidebar-history-feature.tsx | 38 ---- .../src/lib/page-environment-logs.tsx | 152 +++++++++----- .../sidebar-history/sidebar-history.spec.tsx | 107 ---------- .../ui/sidebar-history/sidebar-history.tsx | 136 ------------ .../sidebar-pipeline-item.spec.tsx | 59 ------ .../sidebar-pipeline-item.tsx | 118 ----------- .../sidebar-pipeline.spec.tsx | 20 -- .../ui/sidebar-pipeline/sidebar-pipeline.tsx | 38 ---- .../ui/sidebar-status/sidebar-status.spec.tsx | 14 -- .../lib/ui/sidebar-status/sidebar-status.tsx | 54 ----- .../src/lib/ui/sidebar/sidebar.spec.tsx | 27 --- .../src/lib/ui/sidebar/sidebar.tsx | 51 ----- .../src/lib/ui/container/container.tsx | 4 +- .../page-settings-deployment-pipeline.tsx | 26 +-- .../routes/src/lib/sub-router/logs.router.ts | 5 + libs/shared/ui/src/index.ts | 1 + .../badge-deployment-order.spec.tsx | 1 - .../badge-deployment-order.tsx | 21 +- .../ui/src/lib/components/board/board.tsx | 2 +- .../dropdown-menu/dropdown-menu.tsx | 4 +- .../lib/components/icon/icons/services.tsx | 6 +- .../components/menu/menu-group/menu-group.tsx | 5 +- .../components/menu/menu-item/menu-item.tsx | 2 +- .../ui/src/lib/components/popover/popover.tsx | 2 +- .../stage-status-chip.spec.tsx | 32 +++ .../stage-status-chip.stories.tsx | 32 +++ .../stage-status-chip/stage-status-chip.tsx | 127 ++++++++++++ .../components/status-chip/status-chip.tsx | 15 +- .../use-status-web-sockets.ts | 1 + package.json | 2 +- tsconfig.base.json | 1 + yarn.lock | 4 +- 99 files changed, 2741 insertions(+), 984 deletions(-) create mode 100644 libs/domains/environment-logs/feature/.babelrc create mode 100644 libs/domains/environment-logs/feature/.eslintrc.json create mode 100644 libs/domains/environment-logs/feature/README.md create mode 100644 libs/domains/environment-logs/feature/jest.config.ts create mode 100644 libs/domains/environment-logs/feature/project.json create mode 100644 libs/domains/environment-logs/feature/src/index.ts create mode 100644 libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.spec.tsx create mode 100644 libs/domains/environment-logs/feature/src/lib/environment-stages/environment-stages.tsx create mode 100644 libs/domains/environment-logs/feature/src/lib/header-environment-stages/header-environment-stages.spec.tsx create mode 100644 libs/domains/environment-logs/feature/src/lib/header-environment-stages/header-environment-stages.tsx create mode 100644 libs/domains/environment-logs/feature/src/lib/header-pre-check-logs/header-pre-check-logs.spec.tsx create mode 100644 libs/domains/environment-logs/feature/src/lib/header-pre-check-logs/header-pre-check-logs.tsx create mode 100644 libs/domains/environment-logs/feature/src/lib/hooks/use-pre-check-logs/use-pre-check-logs.ts create mode 100644 libs/domains/environment-logs/feature/src/lib/list-pre-check-logs/list-pre-check-logs.spec.tsx create mode 100644 libs/domains/environment-logs/feature/src/lib/list-pre-check-logs/list-pre-check-logs.tsx create mode 100644 libs/domains/environment-logs/feature/src/lib/list-pre-check-logs/row-pre-check-logs/row-pre-check-logs.spec.tsx create mode 100644 libs/domains/environment-logs/feature/src/lib/list-pre-check-logs/row-pre-check-logs/row-pre-check-logs.tsx create mode 100644 libs/domains/environment-logs/feature/tsconfig.json create mode 100644 libs/domains/environment-logs/feature/tsconfig.lib.json create mode 100644 libs/domains/environment-logs/feature/tsconfig.spec.json create mode 100644 libs/domains/environments/feature/src/lib/hooks/use-deployment-stages/use-deployment-stages.ts create mode 100644 libs/domains/service-logs/feature/src/lib/breadcrumb-deployment-history/breadcrumb-deployment-history.spec.tsx create mode 100644 libs/domains/service-logs/feature/src/lib/breadcrumb-deployment-history/breadcrumb-deployment-history.tsx create mode 100644 libs/domains/service-logs/feature/src/lib/breadcrumb-deployment-logs/breadcrumb-deployment-logs.spec.tsx create mode 100644 libs/domains/service-logs/feature/src/lib/breadcrumb-deployment-logs/breadcrumb-deployment-logs.tsx create mode 100644 libs/domains/service-logs/feature/src/lib/breadcrumb-deployment-logs/stage-item/stage-item.tsx create mode 100644 libs/domains/service-logs/feature/src/lib/header-logs/header-logs.spec.tsx create mode 100644 libs/domains/service-logs/feature/src/lib/header-logs/header-logs.tsx create mode 100644 libs/domains/service-logs/feature/src/lib/hooks/use-deployment-history/use-deployment-history.ts create mode 100644 libs/domains/service-logs/feature/src/lib/hooks/use-deployment-status/use-deployment-status.ts rename libs/domains/service-logs/feature/src/lib/list-deployment-logs/{row-deployment/row-deployment.spec.tsx => row-deployment-logs/row-deployment-logs.spec.tsx} (71%) rename libs/domains/service-logs/feature/src/lib/list-deployment-logs/{row-deployment/row-deployment.tsx => row-deployment-logs/row-deployment-logs.tsx} (88%) create mode 100644 libs/pages/logs/environment/src/lib/feature/environment-stages-feature/environment-stages-feature.spec.tsx create mode 100644 libs/pages/logs/environment/src/lib/feature/environment-stages-feature/environment-stages-feature.tsx create mode 100644 libs/pages/logs/environment/src/lib/feature/pre-check-logs-feature/pre-check-logs-feature.spec.tsx create mode 100644 libs/pages/logs/environment/src/lib/feature/pre-check-logs-feature/pre-check-logs-feature.tsx delete mode 100644 libs/pages/logs/environment/src/lib/feature/sidebar-history-feature/sidebar-history-feature.spec.tsx delete mode 100644 libs/pages/logs/environment/src/lib/feature/sidebar-history-feature/sidebar-history-feature.tsx delete mode 100644 libs/pages/logs/environment/src/lib/ui/sidebar-history/sidebar-history.spec.tsx delete mode 100644 libs/pages/logs/environment/src/lib/ui/sidebar-history/sidebar-history.tsx delete mode 100644 libs/pages/logs/environment/src/lib/ui/sidebar-pipeline-item/sidebar-pipeline-item.spec.tsx delete mode 100644 libs/pages/logs/environment/src/lib/ui/sidebar-pipeline-item/sidebar-pipeline-item.tsx delete mode 100644 libs/pages/logs/environment/src/lib/ui/sidebar-pipeline/sidebar-pipeline.spec.tsx delete mode 100644 libs/pages/logs/environment/src/lib/ui/sidebar-pipeline/sidebar-pipeline.tsx delete mode 100644 libs/pages/logs/environment/src/lib/ui/sidebar-status/sidebar-status.spec.tsx delete mode 100644 libs/pages/logs/environment/src/lib/ui/sidebar-status/sidebar-status.tsx delete mode 100644 libs/pages/logs/environment/src/lib/ui/sidebar/sidebar.spec.tsx delete mode 100644 libs/pages/logs/environment/src/lib/ui/sidebar/sidebar.tsx create mode 100644 libs/shared/ui/src/lib/components/stage-status-chip/stage-status-chip.spec.tsx create mode 100644 libs/shared/ui/src/lib/components/stage-status-chip/stage-status-chip.stories.tsx create mode 100644 libs/shared/ui/src/lib/components/stage-status-chip/stage-status-chip.tsx diff --git a/libs/domains/clusters/feature/src/lib/cluster-action-toolbar/__snapshots__/cluster-action-toolbar.spec.tsx.snap b/libs/domains/clusters/feature/src/lib/cluster-action-toolbar/__snapshots__/cluster-action-toolbar.spec.tsx.snap index 32ef77332fc..cdb499b9730 100644 --- a/libs/domains/clusters/feature/src/lib/cluster-action-toolbar/__snapshots__/cluster-action-toolbar.spec.tsx.snap +++ b/libs/domains/clusters/feature/src/lib/cluster-action-toolbar/__snapshots__/cluster-action-toolbar.spec.tsx.snap @@ -107,7 +107,7 @@ exports[`ClusterActionToolbar should match manage deployment snapshot 1`] = `