Skip to content

Commit

Permalink
Merge branch 'dev' into illiar/feat/collection-flow-customization
Browse files Browse the repository at this point in the history
  • Loading branch information
chesterkmr committed Oct 1, 2024
2 parents 28d3b25 + 6e4780a commit 312de13
Show file tree
Hide file tree
Showing 76 changed files with 702 additions and 227 deletions.
28 changes: 28 additions & 0 deletions apps/backoffice-v2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @ballerine/backoffice-v2

## 0.7.49

### Patch Changes

- Bump
- Updated dependencies
- @ballerine/blocks@0.2.20
- @ballerine/common@0.9.34
- @ballerine/react-pdf-toolkit@1.2.34
- @ballerine/ui@0.5.34
- @ballerine/workflow-browser-sdk@0.6.46
- @ballerine/workflow-node-sdk@0.6.46

## 0.7.48

### Patch Changes

- @ballerine/workflow-browser-sdk@0.6.45
- @ballerine/workflow-node-sdk@0.6.45

## 0.7.47

### Patch Changes
Expand All @@ -12,6 +32,14 @@
- @ballerine/blocks@0.2.19
- @ballerine/common@0.9.33
- @ballerine/ui@0.5.32
- Bump
- Updated dependencies
- @ballerine/common@0.9.33
- @ballerine/blocks@0.2.19
- @ballerine/react-pdf-toolkit@1.2.33
- @ballerine/ui@0.5.33
- @ballerine/workflow-browser-sdk@0.6.44
- @ballerine/workflow-node-sdk@0.6.44

## 0.7.46

Expand Down
19 changes: 10 additions & 9 deletions apps/backoffice-v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ballerine/backoffice-v2",
"version": "0.7.47",
"version": "0.7.49",
"description": "Ballerine - Backoffice",
"homepage": "https://github.com/ballerine-io/ballerine",
"repository": {
Expand Down Expand Up @@ -50,12 +50,12 @@
"preview": "vite preview"
},
"dependencies": {
"@ballerine/blocks": "0.2.19",
"@ballerine/common": "0.9.33",
"@ballerine/react-pdf-toolkit": "^1.2.32",
"@ballerine/ui": "^0.5.32",
"@ballerine/workflow-browser-sdk": "0.6.44",
"@ballerine/workflow-node-sdk": "0.6.44",
"@ballerine/blocks": "0.2.20",
"@ballerine/common": "0.9.34",
"@ballerine/react-pdf-toolkit": "^1.2.34",
"@ballerine/ui": "^0.5.34",
"@ballerine/workflow-browser-sdk": "0.6.46",
"@ballerine/workflow-node-sdk": "0.6.46",
"@botpress/webchat": "^2.1.10",
"@botpress/webchat-generator": "^0.2.9",
"@fontsource/inter": "^4.5.15",
Expand All @@ -80,6 +80,7 @@
"@radix-ui/react-tooltip": "^1.0.7",
"@react-pdf/renderer": "^3.1.14",
"@rjsf/utils": "^5.9.0",
"@saola.ai/browser": "^1.1.7",
"@sentry/react": "^7.77.0",
"@tanstack/react-query": "^4.19.1",
"@tanstack/react-table": "^8.9.2",
Expand Down Expand Up @@ -125,8 +126,8 @@
"zod": "^3.22.3"
},
"devDependencies": {
"@ballerine/config": "^1.1.17",
"@ballerine/eslint-config-react": "^2.0.17",
"@ballerine/config": "^1.1.18",
"@ballerine/eslint-config-react": "^2.0.18",
"@cspell/cspell-types": "^6.31.1",
"@faker-js/faker": "^7.6.0",
"@playwright/test": "^1.32.1",
Expand Down
1 change: 1 addition & 0 deletions apps/backoffice-v2/src/common/env/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ export const EnvSchema = z.object({

return new RegExp(value);
}, z.custom<RegExp>(value => value instanceof RegExp).optional()),
VITE_SAOLA_API_KEY: z.string().optional(),
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { env } from '@/common/env/env';
import { init as initSaola } from '@saola.ai/browser';

export const initializeSessionRecording = () => {
// @TODO: Uncomment when Saola tests are production ready
// if (window.location.host.includes('127.0.0.1') || window.location.host.includes('localhost')) {
// return;
// }

const saolaApiKey = env.VITE_SAOLA_API_KEY;

if (saolaApiKey) {
initSaola(saolaApiKey);
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const CaseCallToActionLegacy: FunctionComponent<ICaseCallToActionLegacyPr
<DialogFooter>
<DialogClose asChild>
<Button
className={ctw(`gap-x-2`, {
className={ctw(`gap-x-2 !bg-foreground`, {
loading: isLoadingRevisionCase,
})}
disabled={isLoadingRevisionCase}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ export const useKycBlock = ({
}}
disabled={isDisabled}
size={'wide'}
variant={'success'}
className={ctw({
'!bg-success': !isDisabled,
})}
>
Approve
</MotionButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,11 @@ export const useDocumentBlocks = ({
},
),
},
props: {
config: {
sort: { predefinedOrder: ['category', 'type'] },
},
},
workflowId: workflow?.id,
documents: workflow?.context?.documents,
})
Expand Down
3 changes: 3 additions & 0 deletions apps/backoffice-v2/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ import './index.css';
import dayjs from 'dayjs';
import advancedFormat from 'dayjs/plugin/advancedFormat';
import { initializeMonitoring } from '@/initialize-monitoring/initialize-monitoring';
import { initializeSessionRecording } from '@/initialize-session-recording/initialize-session-recording';

initializeMonitoring();

initializeSessionRecording();

dayjs.extend(advancedFormat);

registerFont(Font);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const SubmitSection = ({ uiSchema }: SubmitButtonProps) => {
<Label htmlFor="add_more_switch">Add more</Label>
</div>
{!norender && (
<Button type="submit" disabled={disabled}>
<Button className={'!bg-foreground'} type="submit" disabled={disabled}>
Add Case
</Button>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export const CaseOverview = ({ processes }: { processes: string[] }) => {
[search],
);
const riskIndicators = Object.entries(
workflow?.context?.pluginsOutput?.risk_evaluation?.riskIndicatorsByDomain ?? {},
workflow?.context?.pluginsOutput?.riskEvaluation?.riskIndicatorsByDomain ??
workflow?.context?.pluginsOutput?.risk_evaluation?.riskIndicatorsByDomain ??
{},
)?.map(([domain, riskIndicators]) => {
const tab = camelCase(domain);
const isValidCaseTab = CaseTabs.includes(tab);
Expand Down Expand Up @@ -55,7 +57,10 @@ export const CaseOverview = ({ processes }: { processes: string[] }) => {
<div className="grid grid-cols-2 gap-4 xl:grid-cols-3 2xl:grid-cols-4">
{workflow?.workflowDefinition?.config?.isCaseRiskOverviewEnabled && (
<OverallRiskLevel
riskScore={workflow?.context?.pluginsOutput?.risk_evaluation?.riskScore}
riskScore={
workflow?.context?.pluginsOutput?.riskEvaluation?.riskScore ??
workflow?.context?.pluginsOutput?.risk_evaluation?.riskScore
}
riskLevels={{}}
/>
)}
Expand Down
13 changes: 1 addition & 12 deletions apps/backoffice-v2/src/pages/Root/Root.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { ServerDownLayout } from './ServerDown.layout';
import { useCustomerQuery } from '@/domains/customer/hook/queries/useCustomerQuery/useCustomerQuery';
import { FullScreenLoader } from '@/common/components/molecules/FullScreenLoader/FullScreenLoader';
import Chatbot from '@/domains/chat/chatbot-opengpt';
import { ctw } from '@/common/utils/ctw/ctw';
import { RenderChildrenInIFrame } from '@/common/components/organisms/RenderChildrenInIFrame/RenderChildrenInIFrame';

const ReactQueryDevtools = lazy(() =>
process.env.NODE_ENV !== 'production'
Expand All @@ -31,16 +29,7 @@ const ChatbotLayout: FunctionComponent = () => {
return null;
}

return (
<RenderChildrenInIFrame
className={ctw('fixed bottom-right-0', {
'h-[700px] w-[400px]': isWebchatOpen,
'd-[80px]': !isWebchatOpen,
})}
>
<Chatbot isWebchatOpen={isWebchatOpen} toggleIsWebchatOpen={toggleIsWebchatOpen} />
</RenderChildrenInIFrame>
);
return <Chatbot isWebchatOpen={isWebchatOpen} toggleIsWebchatOpen={toggleIsWebchatOpen} />;
};

export const Root: FunctionComponent = () => {
Expand Down
29 changes: 29 additions & 0 deletions apps/kyb-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# kyb-app

## 0.3.59

### Patch Changes

- Bump
- Updated dependencies
- @ballerine/blocks@0.2.20
- @ballerine/common@0.9.34
- @ballerine/ui@0.5.34
- @ballerine/workflow-browser-sdk@0.6.46

## 0.3.58

### Patch Changes

- @ballerine/workflow-browser-sdk@0.6.45

## 0.3.57

### Patch Changes

- Bump
- Updated dependencies
- @ballerine/common@0.9.33
- @ballerine/blocks@0.2.19
- @ballerine/ui@0.5.33
- @ballerine/workflow-browser-sdk@0.6.44

## 0.3.56

### Patch Changes
Expand All @@ -9,6 +37,7 @@
- @ballerine/workflow-browser-sdk@0.6.44
- @ballerine/blocks@0.2.19
- @ballerine/common@0.9.33
- Updated dependencies
- @ballerine/ui@0.5.32

## 0.3.55
Expand Down
15 changes: 8 additions & 7 deletions apps/kyb-app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ballerine/kyb-app",
"private": true,
"version": "0.3.56",
"version": "0.3.59",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -14,15 +14,16 @@
"test:dev": "vitest"
},
"dependencies": {
"@ballerine/blocks": "0.2.19",
"@ballerine/common": "^0.9.33",
"@ballerine/ui": "0.5.32",
"@ballerine/workflow-browser-sdk": "0.6.44",
"@ballerine/blocks": "0.2.20",
"@ballerine/common": "^0.9.34",
"@ballerine/ui": "0.5.34",
"@ballerine/workflow-browser-sdk": "0.6.46",
"@lukemorales/query-key-factory": "^1.0.3",
"@radix-ui/react-icons": "^1.3.0",
"@rjsf/core": "^5.9.0",
"@rjsf/utils": "^5.9.0",
"@rjsf/validator-ajv8": "^5.9.0",
"@saola.ai/browser": "^1.1.7",
"@sentry/react": "^7.77.0",
"@tanstack/react-query": "^4.29.25",
"@xstate/react": "^3.2.2",
Expand Down Expand Up @@ -61,8 +62,8 @@
"zod": "^3.21.4"
},
"devDependencies": {
"@ballerine/config": "^1.1.17",
"@ballerine/eslint-config-react": "^2.0.17",
"@ballerine/config": "^1.1.18",
"@ballerine/eslint-config-react": "^2.0.18",
"@jest/globals": "^29.7.0",
"@sentry/vite-plugin": "^2.9.0",
"@testing-library/jest-dom": "^6.1.4",
Expand Down
1 change: 1 addition & 0 deletions apps/kyb-app/src/env/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ export const EnvSchema = z.object({

return new RegExp(value);
}, z.custom<RegExp>(value => value instanceof RegExp).optional()),
VITE_SAOLA_API_KEY: z.string().optional(),
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { env } from '@/env/env';
import { init as initSaola } from '@saola.ai/browser';

export const initializeSessionRecording = () => {
// @TODO: Uncomment when Saola tests are production ready
// if (window.location.host.includes('127.0.0.1') || window.location.host.includes('localhost')) {
// return;
// }

const saolaApiKey = env.VITE_SAOLA_API_KEY;

if (saolaApiKey) {
initSaola(saolaApiKey);
}
};
3 changes: 3 additions & 0 deletions apps/kyb-app/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ import { Head } from './Head';
import './i18next';
import './index.css';
import { initializeMonitoring } from '@/initialize-monitoring/initialize-monitoring';
import { initializeSessionRecording } from '@/initialize-session-recording/initialize-session-recording';

initializeMonitoring();

initializeSessionRecording();

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<HelmetProvider>
Expand Down
13 changes: 13 additions & 0 deletions apps/workflows-dashboard/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @ballerine/workflows-dashboard

## 0.2.18

### Patch Changes

- Bump
- Updated dependencies
- @ballerine/common@0.9.34
- @ballerine/ui@0.5.34

## 0.2.17

### Patch Changes
Expand All @@ -8,6 +17,10 @@
- Updated dependencies
- @ballerine/common@0.9.33
- @ballerine/ui@0.5.32
- Bump
- Updated dependencies
- @ballerine/common@0.9.33
- @ballerine/ui@0.5.33

## 0.2.16

Expand Down
10 changes: 5 additions & 5 deletions apps/workflows-dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ballerine/workflows-dashboard",
"private": false,
"version": "0.2.17",
"version": "0.2.18",
"type": "module",
"scripts": {
"spellcheck": "cspell \"*\"",
Expand All @@ -14,8 +14,8 @@
"test": "NODE_ENV=test jest"
},
"dependencies": {
"@ballerine/common": "^0.9.33",
"@ballerine/ui": "^0.5.32",
"@ballerine/common": "^0.9.34",
"@ballerine/ui": "^0.5.34",
"@lukemorales/query-key-factory": "^1.0.3",
"@radix-ui/react-avatar": "^1.0.3",
"@radix-ui/react-dialog": "1.0.4",
Expand Down Expand Up @@ -62,8 +62,8 @@
"zod": "^3.22.3"
},
"devDependencies": {
"@ballerine/config": "^1.1.17",
"@ballerine/eslint-config-react": "^2.0.17",
"@ballerine/config": "^1.1.18",
"@ballerine/eslint-config-react": "^2.0.18",
"@cspell/cspell-types": "^6.31.1",
"@types/axios": "^0.14.0",
"@types/classnames": "^2.3.1",
Expand Down
Loading

0 comments on commit 312de13

Please sign in to comment.