From b68c21538c790409204de16c17f725940bd86313 Mon Sep 17 00:00:00 2001 From: Pham Hai Duong Date: Thu, 13 Feb 2020 22:08:32 +0700 Subject: [PATCH] fix: #161 fix wrong id surfaced for developers when edit app (#266) --- .../ui/__tests__/__snapshots__/app-detail.tsx.snap | 2 +- packages/marketplace/src/components/ui/app-detail.tsx | 6 +++--- packages/marketplace/src/tests/badges/badge-branches.svg | 2 +- packages/marketplace/src/tests/badges/badge-lines.svg | 2 +- packages/marketplace/src/tests/badges/badge-statements.svg | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/marketplace/src/components/ui/__tests__/__snapshots__/app-detail.tsx.snap b/packages/marketplace/src/components/ui/__tests__/__snapshots__/app-detail.tsx.snap index 2cfb833ac7..48e1474b6b 100644 --- a/packages/marketplace/src/components/ui/__tests__/__snapshots__/app-detail.tsx.snap +++ b/packages/marketplace/src/components/ui/__tests__/__snapshots__/app-detail.tsx.snap @@ -33,7 +33,7 @@ exports[`AppDetailModalInner should match a snapshot 1`] = `

- App ID: + Client ID:

diff --git a/packages/marketplace/src/components/ui/app-detail.tsx b/packages/marketplace/src/components/ui/app-detail.tsx index bdc97e9d62..5a68ae99ca 100644 --- a/packages/marketplace/src/components/ui/app-detail.tsx +++ b/packages/marketplace/src/components/ui/app-detail.tsx @@ -46,7 +46,6 @@ export const AppDetail: React.FunctionComponent = ({ if (!data) { return null } - const { id, media = [], @@ -59,6 +58,7 @@ export const AppDetail: React.FunctionComponent = ({ isListed, isDirectApi, authFlow, + externalId, } = data const icon = media.filter(({ type }) => type === 'icon')[0] const carouselImages = media.filter(({ type }) => type === 'image') @@ -111,8 +111,8 @@ export const AppDetail: React.FunctionComponent = ({ <>

App Information

-

App ID:

-

{id}

+

Client ID:

+

{externalId}

Status:

diff --git a/packages/marketplace/src/tests/badges/badge-branches.svg b/packages/marketplace/src/tests/badges/badge-branches.svg index c2b9077404..be2d3dd077 100644 --- a/packages/marketplace/src/tests/badges/badge-branches.svg +++ b/packages/marketplace/src/tests/badges/badge-branches.svg @@ -1 +1 @@ - Coverage:branchesCoverage:branches70.51%70.51% + Coverage:branchesCoverage:branches70.33%70.33% diff --git a/packages/marketplace/src/tests/badges/badge-lines.svg b/packages/marketplace/src/tests/badges/badge-lines.svg index 589b5e41b2..25014ed3cc 100644 --- a/packages/marketplace/src/tests/badges/badge-lines.svg +++ b/packages/marketplace/src/tests/badges/badge-lines.svg @@ -1 +1 @@ - Coverage:linesCoverage:lines90.38%90.38% + Coverage:linesCoverage:lines90.42%90.42% diff --git a/packages/marketplace/src/tests/badges/badge-statements.svg b/packages/marketplace/src/tests/badges/badge-statements.svg index a15da43851..a306a63a89 100644 --- a/packages/marketplace/src/tests/badges/badge-statements.svg +++ b/packages/marketplace/src/tests/badges/badge-statements.svg @@ -1 +1 @@ - Coverage:statementsCoverage:statements89.54%89.54% + Coverage:statementsCoverage:statements89.59%89.59%