Skip to content

Commit

Permalink
Add tile with standalone link to KYC Summarization (#65)
Browse files Browse the repository at this point in the history
fixes #63

Signed-off-by: Sean Sundberg <[email protected]>
  • Loading branch information
seansund authored Sep 22, 2023
1 parent 003fd60 commit f95191c
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Notification, Search, User} from "@carbon/icons-react";

import './App.css'
import {NotFound, UIShell} from "./components";
import {CustomerRisk, Dashboard, KYC, KYCCaseDetail, KYCCaseList, RTCQC, Utilities} from "./views";
import {CustomerRisk, Dashboard, KYC, KYCCaseDetail, KYCCaseList, KycSummarize, RTCQC, Utilities} from "./views";
import {MenuLinksModel, NavigationModel} from "./models";
import {DataExtraction} from "./views/DataExtraction";

Expand All @@ -25,6 +25,7 @@ function App() {
},
{title: 'Customer Risk', href: '/customer-risk', element: <CustomerRisk />},
{title: 'RTC - QC', href: '/rtc-qc', element: <RTCQC />},
{title: 'KYC Summarization', href: '/kyc-summarization', element: <KycSummarize />},
{
title: 'Utilities',
href: '/utilities',
Expand Down
3 changes: 2 additions & 1 deletion src/config/menu-config/menu-config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export class MenuConfigService implements MenuConfigApi {
assessmentRulesStudioUrl: 'https://cpd-cp4ba.cp4ba-cra-c6c44da74def18a795b07cc32856e138-0000.us-south.containers.appdomain.cloud/',
negativeScreeningApiUrl: '',
customerRiskAssessmentApiUrl: '',
kycCaseSummaryApiUrl: ''
kycCaseSummaryApiUrl: '',
kycSummarizationUrl: 'https://ey-kyc-summary.17lppvsmkk7n.us-south.codeengine.appdomain.cloud/',
}
}
}
1 change: 1 addition & 0 deletions src/models/menu-config.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export interface MenuConfigModel {
negativeScreeningApiUrl: string
customerRiskAssessmentApiUrl: string
kycCaseSummaryApiUrl: string
kycSummarizationUrl: string
}
30 changes: 30 additions & 0 deletions src/views/KycSummarize/KycSummarize.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import React from 'react';
import {useAtomValue} from "jotai";

import {menuConfigAtomLoadable} from "../../atoms";
import {MenuConfigModel} from "../../models";
import {DemoTile, DemoTileContainer} from "../../components";

export interface KycSummarizeProps {
}

export const KycSummarize: React.FunctionComponent<KycSummarizeProps> = () => {
const loadable = useAtomValue(menuConfigAtomLoadable)

if (loadable.state === 'loading') {
return (<></>)
} else if (loadable.state === 'hasError') {
return (<></>)
}

const menuConfig: MenuConfigModel = loadable.data

return (
<DemoTileContainer>
<DemoTile title="Kyc Summarization" href={menuConfig.kycSummarizationUrl} />
</DemoTileContainer>
)
}
2 changes: 2 additions & 0 deletions src/views/KycSummarize/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

export * from './KycSummarize';
1 change: 1 addition & 0 deletions src/views/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './TaxCLM'
export * from './RTCQC'
export * from './CustomerRisk'
export * from './KYC'
export * from './KycSummarize'

0 comments on commit f95191c

Please sign in to comment.