From 7830c4a6b64c7a9ee49152a5d52cfdea501d4917 Mon Sep 17 00:00:00 2001 From: james-tran-3005 Date: Tue, 19 Nov 2024 10:05:35 +0700 Subject: [PATCH] rc_v1 fix default seller api description --- .../__test__/pages/Deployment/DeploymentHistory.test.tsx | 5 +---- .../src/components/APIViewerContent/index.tsx | 9 +++++---- .../src/components/SpecDrawer/TableAPIList.tsx | 2 ++ .../src/pages/APIServerList/components/APIServerCard.tsx | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/kraken-app/kraken-app-portal/src/__test__/pages/Deployment/DeploymentHistory.test.tsx b/kraken-app/kraken-app-portal/src/__test__/pages/Deployment/DeploymentHistory.test.tsx index f68cf27f..7eb51a74 100644 --- a/kraken-app/kraken-app-portal/src/__test__/pages/Deployment/DeploymentHistory.test.tsx +++ b/kraken-app/kraken-app-portal/src/__test__/pages/Deployment/DeploymentHistory.test.tsx @@ -53,14 +53,11 @@ describe("Deployment > Deployment history tests", () => { }, "componentName": "Product Ordering Management", "componentKey": "mef.sonata.api.order", - "envId": "7da9098b-107f-402c-9d6d-20b1be96b99a", "envName": "production", "createAt": "2024-11-18T10:06:14.412978Z", "createBy": "24044233-3683-425e-9cbe-62e643f081d8", - "userName": "Michael Qian", + "userName": "user", "releaseKey": "mef.sonata.product-release.1731924374407", - "releaseId": "e22cc3e6-ea2c-4aa2-899b-f04870f310d3", - "tagId": "92c48cf5-0fbe-4418-9c45-737f4dc782d6", "version": "1.4", "status": "SUCCESS", "verifiedBy": "24044233-3683-425e-9cbe-62e643f081d8", diff --git a/kraken-app/kraken-app-portal/src/components/APIViewerContent/index.tsx b/kraken-app/kraken-app-portal/src/components/APIViewerContent/index.tsx index 228f219a..0f8baa1d 100644 --- a/kraken-app/kraken-app-portal/src/components/APIViewerContent/index.tsx +++ b/kraken-app/kraken-app-portal/src/components/APIViewerContent/index.tsx @@ -10,6 +10,7 @@ import styles from "./index.module.scss"; import { Col, Row, Table, notification } from "antd"; import Flex from "../Flex"; import RequestMethod from "../Method"; +import TrimmedPath from "../TrimmedPath"; type Props = { selectedAPI?: string; @@ -83,19 +84,19 @@ const APIViewerContent = ({ selectedAPI, content }: Props) => {
- + Method - + Path - {basicData?.name} + - + Description {basicData?.description} diff --git a/kraken-app/kraken-app-portal/src/components/SpecDrawer/TableAPIList.tsx b/kraken-app/kraken-app-portal/src/components/SpecDrawer/TableAPIList.tsx index c9b6266f..af379cf4 100644 --- a/kraken-app/kraken-app-portal/src/components/SpecDrawer/TableAPIList.tsx +++ b/kraken-app/kraken-app-portal/src/components/SpecDrawer/TableAPIList.tsx @@ -5,6 +5,7 @@ import RequestMethod from "../Method"; import styles from "./index.module.scss"; import { Text } from "../Text"; import { LeftOutlined, RightOutlined } from "@ant-design/icons"; +import TrimmedPath from "../TrimmedPath"; type Props = { data: IItem[]; @@ -24,6 +25,7 @@ const TableAPIList = ({ data, onSelect, selected }: Props) => { { title: "Path", dataIndex: "path", + render: (path) => }, ], [] diff --git a/kraken-app/kraken-app-portal/src/pages/APIServerList/components/APIServerCard.tsx b/kraken-app/kraken-app-portal/src/pages/APIServerList/components/APIServerCard.tsx index 007d28dc..5e1b84f0 100644 --- a/kraken-app/kraken-app-portal/src/pages/APIServerList/components/APIServerCard.tsx +++ b/kraken-app/kraken-app-portal/src/pages/APIServerList/components/APIServerCard.tsx @@ -156,11 +156,11 @@ const APIServerCard = ({ item, refetchList }: Props) => { - {get(item, "metadata.description", "description")} + {get(item, "metadata.description", "-")}