From bc617bd3fa6add04c086a0dae3eed3b4ec447e99 Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Wed, 7 Aug 2024 16:41:37 +0800 Subject: [PATCH] navigates to use case overview page Signed-off-by: Hailong Cui click on workspace name navigates to use case overview page Signed-off-by: Hailong Cui Changeset file for PR #7748 created/updated support customized width Signed-off-by: Hailong Cui style adjustment Signed-off-by: Hailong Cui update test snapshot Signed-off-by: Hailong Cui --- changelogs/fragments/7748.yml | 2 + .../workspace_list_card.test.tsx.snap | 87 +++++---- .../service_card/workspace_list_card.test.tsx | 52 +++++- .../service_card/workspace_list_card.tsx | 168 ++++++++++++------ .../public/components/utils/workspace.ts | 24 ++- .../workspace_detail_panel.tsx | 7 +- src/plugins/workspace/public/plugin.ts | 1 + 7 files changed, 240 insertions(+), 101 deletions(-) create mode 100644 changelogs/fragments/7748.yml diff --git a/changelogs/fragments/7748.yml b/changelogs/fragments/7748.yml new file mode 100644 index 000000000000..a62a59be3178 --- /dev/null +++ b/changelogs/fragments/7748.yml @@ -0,0 +1,2 @@ +feat: +- [Workspace]Fix click on workspace name not navigates to use case overview page ([#7748](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7748)) \ No newline at end of file diff --git a/src/plugins/workspace/public/components/service_card/__snapshots__/workspace_list_card.test.tsx.snap b/src/plugins/workspace/public/components/service_card/__snapshots__/workspace_list_card.test.tsx.snap index 0607b29799a9..36a442328839 100644 --- a/src/plugins/workspace/public/components/service_card/__snapshots__/workspace_list_card.test.tsx.snap +++ b/src/plugins/workspace/public/components/service_card/__snapshots__/workspace_list_card.test.tsx.snap @@ -16,37 +16,48 @@ exports[`workspace list card render normally should show workspace list card cor class="euiFlexGroup euiFlexGroup--gutterExtraSmall euiFlexGroup--alignItemsCenter euiFlexGroup--directionRow euiFlexGroup--responsive" >
-

- Workspaces -

-
-
- - +

+ Workspaces +

+
+
+ + + +
+
- +