diff --git a/package.json b/package.json index c61b490fc5..f3ba7a4f00 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "husky": { "hooks": { - "pre-commit": "lint-staged && lerna run test:update-badges --since HEAD^ && git add .", + "pre-commit": "lint-staged && lerna run test:update-badges --since HEAD && git add .", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, diff --git a/packages/marketplace/src/components/ui/__tests__/__snapshots__/admin-approval-modal.tsx.snap b/packages/marketplace/src/components/ui/__tests__/__snapshots__/admin-approval-modal.tsx.snap index 1c8c21f22e..17c876d38d 100644 --- a/packages/marketplace/src/components/ui/__tests__/__snapshots__/admin-approval-modal.tsx.snap +++ b/packages/marketplace/src/components/ui/__tests__/__snapshots__/admin-approval-modal.tsx.snap @@ -151,6 +151,34 @@ Get type="words" /> +
+

+ Redirect URIs +

+ +
+
+

+ Signout URIs +

+ +
diff --git a/packages/marketplace/src/components/ui/admin-approval-modal.tsx b/packages/marketplace/src/components/ui/admin-approval-modal.tsx index 293fa82f02..060c0c53a4 100644 --- a/packages/marketplace/src/components/ui/admin-approval-modal.tsx +++ b/packages/marketplace/src/components/ui/admin-approval-modal.tsx @@ -21,6 +21,8 @@ const diffStringList: { [k in keyof AppRevisionModel]: string } = { telephone: 'Telephone', summary: 'Summary', description: 'Description', + redirectUris: 'Redirect URIs', + signoutUris: 'Signout URIs', } type DiffMediaModel = { @@ -126,6 +128,16 @@ export const AdminApprovalModalInner: React.FunctionComponent
) + } + if (['redirectUris', 'signoutUris'].includes(key)) { + const currentString = Array.isArray(app[key]) ? app[key].join(' ') : '' + const changedString = Array.isArray(revision[key]) ? revision[key].join(' ') : '' + return ( +
+

{diffStringList[key]}

+ +
+ ) } else { return (
diff --git a/packages/marketplace/src/tests/badges/badge-branches.svg b/packages/marketplace/src/tests/badges/badge-branches.svg index 4b904f4cde..c2b9077404 100644 --- a/packages/marketplace/src/tests/badges/badge-branches.svg +++ b/packages/marketplace/src/tests/badges/badge-branches.svg @@ -1 +1 @@ - Coverage:branchesCoverage:branches70.33%70.33% \ No newline at end of file + Coverage:branchesCoverage:branches70.51%70.51% diff --git a/packages/marketplace/src/tests/badges/badge-lines.svg b/packages/marketplace/src/tests/badges/badge-lines.svg index ca5fc4af90..589b5e41b2 100644 --- a/packages/marketplace/src/tests/badges/badge-lines.svg +++ b/packages/marketplace/src/tests/badges/badge-lines.svg @@ -1 +1 @@ - Coverage:linesCoverage:lines90.39%90.39% \ No newline at end of file + Coverage:linesCoverage:lines90.38%90.38% diff --git a/packages/marketplace/src/tests/badges/badge-statements.svg b/packages/marketplace/src/tests/badges/badge-statements.svg index 80713dab5d..a15da43851 100644 --- a/packages/marketplace/src/tests/badges/badge-statements.svg +++ b/packages/marketplace/src/tests/badges/badge-statements.svg @@ -1 +1 @@ - Coverage:statementsCoverage:statements89.56%89.56% \ No newline at end of file + Coverage:statementsCoverage:statements89.54%89.54%