diff --git a/src/App.tsx b/src/App.tsx index 165d846..8f9b332 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -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"; @@ -25,6 +25,7 @@ function App() { }, {title: 'Customer Risk', href: '/customer-risk', element: }, {title: 'RTC - QC', href: '/rtc-qc', element: }, + {title: 'KYC Summarization', href: '/kyc-summarization', element: }, { title: 'Utilities', href: '/utilities', diff --git a/src/config/menu-config/menu-config.service.ts b/src/config/menu-config/menu-config.service.ts index e6e018d..afe82cf 100644 --- a/src/config/menu-config/menu-config.service.ts +++ b/src/config/menu-config/menu-config.service.ts @@ -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/', } } } diff --git a/src/models/menu-config.model.ts b/src/models/menu-config.model.ts index 48b7c11..553ba14 100644 --- a/src/models/menu-config.model.ts +++ b/src/models/menu-config.model.ts @@ -9,4 +9,5 @@ export interface MenuConfigModel { negativeScreeningApiUrl: string customerRiskAssessmentApiUrl: string kycCaseSummaryApiUrl: string + kycSummarizationUrl: string } diff --git a/src/views/KycSummarize/KycSummarize.tsx b/src/views/KycSummarize/KycSummarize.tsx new file mode 100644 index 0000000..a26960e --- /dev/null +++ b/src/views/KycSummarize/KycSummarize.tsx @@ -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 = () => { + const loadable = useAtomValue(menuConfigAtomLoadable) + + if (loadable.state === 'loading') { + return (<>) + } else if (loadable.state === 'hasError') { + return (<>) + } + + const menuConfig: MenuConfigModel = loadable.data + + return ( + + + + ) +} diff --git a/src/views/KycSummarize/index.ts b/src/views/KycSummarize/index.ts new file mode 100644 index 0000000..9dd1362 --- /dev/null +++ b/src/views/KycSummarize/index.ts @@ -0,0 +1,2 @@ + +export * from './KycSummarize'; diff --git a/src/views/index.ts b/src/views/index.ts index 416b4b0..bc466f2 100644 --- a/src/views/index.ts +++ b/src/views/index.ts @@ -4,3 +4,4 @@ export * from './TaxCLM' export * from './RTCQC' export * from './CustomerRisk' export * from './KYC' +export * from './KycSummarize'