Skip to content

Commit

Permalink
rc_v1 fix default seller api description
Browse files Browse the repository at this point in the history
  • Loading branch information
james-tran-3005 committed Nov 20, 2024
1 parent 6ca0d08 commit 7830c4a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -83,19 +84,19 @@ const APIViewerContent = ({ selectedAPI, content }: Props) => {
<div className={styles.root}>
<div className={styles.basicInfo}>
<Row gutter={[12, 20]}>
<Col span={2}>
<Col span={4}>
<Flex flexDirection="column" alignItems="flex-start" gap={8}>
<Text.LightMedium color="#00000073">Method</Text.LightMedium>
<RequestMethod method={basicData?.method} />
</Flex>
</Col>
<Col span={11}>
<Col span={10}>
<Flex flexDirection="column" alignItems="flex-start" gap={8}>
<Text.LightMedium color="#00000073">Path</Text.LightMedium>
<Text.LightMedium>{basicData?.name}</Text.LightMedium>
<TrimmedPath path={basicData?.name ?? ''} />
</Flex>
</Col>
<Col span={11}>
<Col span={10}>
<Flex flexDirection="column" alignItems="flex-start" gap={8}>
<Text.LightMedium color="#00000073">Description</Text.LightMedium>
<Text.LightMedium>{basicData?.description}</Text.LightMedium>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand All @@ -24,6 +25,7 @@ const TableAPIList = ({ data, onSelect, selected }: Props) => {
{
title: "Path",
dataIndex: "path",
render: (path) => <TrimmedPath path={path} />
},
],
[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ const APIServerCard = ({ item, refetchList }: Props) => {
<Typography.Text
ellipsis={{
tooltip: {
title: get(item, "metadata.description", "description"),
title: get(item, "metadata.description", "-"),
},
}}
>
{get(item, "metadata.description", "description")}
{get(item, "metadata.description", "-")}
</Typography.Text>
</Flex>
</Group>
Expand Down

0 comments on commit 7830c4a

Please sign in to comment.