From 7096832961e9f31cf75f235bdc2cdb6baa8ff4b7 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 18 Sep 2024 13:16:46 +0100 Subject: [PATCH] feature(policies): add more information to the policy detail page (#2935) Adds further info to the policy detail page. Please note this purposefully doesn't add the producer/consumer/system type yet. I'll be adding that along with the same in the listing page. Closes https://github.com/kumahq/kuma-gui/issues/2929 Also defaults any empty top-level targetRef to `Mesh` Closes https://github.com/kumahq/kuma-gui/issues/2934 --- Signed-off-by: John Cowen --- src/app/policies/components/PolicySummary.vue | 26 +++++---- src/app/policies/views/PolicyDetailView.vue | 54 +++++++++++++++++-- src/app/policies/views/PolicyListView.vue | 21 ++++---- src/test-support/mocks/fs.ts | 2 + src/test-support/mocks/src/mesh-insights/_.ts | 22 ++++++-- .../mocks/src/meshes/_/meshfaultinjections.ts | 4 -- .../src/meshes/_/meshfaultinjections/_.ts | 4 -- .../_/_resources/dataplanes.ts | 28 ++++++++++ 8 files changed, 127 insertions(+), 34 deletions(-) create mode 100644 src/test-support/mocks/src/meshes/_/meshfaultinjections/_/_resources/dataplanes.ts diff --git a/src/app/policies/components/PolicySummary.vue b/src/app/policies/components/PolicySummary.vue index d378b58b5..2afdac808 100644 --- a/src/app/policies/components/PolicySummary.vue +++ b/src/app/policies/components/PolicySummary.vue @@ -16,15 +16,18 @@