-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: added CountryPicker to UI & ui bump * feat: added RadioGroup to ui * feat: added radio group input adapter & updated storybook * feat: ui bump * fix: build fix * feat: added support of htmlRaw descriptions in dynamic form * feat: added report-creation callback name * feat: new icons & style changes & bump * feat: added icon position to list & font changes * feat: added report templates & added storybook * feat: type export & bump * merged with master * fix: updated exports & bump * feat: added initial report rendering to backoffice * feat: added initial case actions variants * feat: refactored code * feat: refactored process tracker logic * feat: implemented process tracking logic for merchant monitoring * feat: states adjustments & css fixes * feat: added validation schemas & hoc validator & updated website analysis * feat: bump * feat: added empty state to website analysis & upd storybook * feat: added empty states handling to social media & updated storybook * feat: render of social media & website analysis report * fix: fixed import * feat: added base64 file service provider & added website monitoring callback handler * feat: common bump * feat: removed reports from pdf-toolkit & bump * draft1 * feat: replaced pdf viewer with iframe & added rendering of report out of base64 * feat: added new icons * fix: fixed pdf blocks types & useMemo rendering bug * feat: bump * fix: lock fix * feat: added date formatting & bump * fix: fixed website monitoring hook hanlding & backoffice fixes * feat: bump * fix: fixed actions variant & base pdf format * fix: reverted prisma timeouts & removed logging of base64 filenames * fix: added mime type to pdf block & fixed callback * feat: added string-ts re-export & fixed hook name * feat: code refactoring * fix: renamed PDFRevision to WebsiteMonitoring * fix: renamed files & added toast to handle unsupported actions * fix: fixed build * feat: bump --------- Co-authored-by: Alon Peretz <Alonp99@gmail.com>
- Loading branch information
1 parent
6d5e081
commit 9fe7a5c
Showing
179 changed files
with
3,891 additions
and
2,174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@ballerine/react-pdf-toolkit': patch | ||
'@ballerine/common': patch | ||
--- | ||
|
||
bump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ballerine/react-pdf-toolkit': patch | ||
--- | ||
|
||
Updated exports & bump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@ballerine/report-generation-example': minor | ||
'@ballerine/react-pdf-toolkit': minor | ||
'@ballerine/workflows-service': minor | ||
'@ballerine/headless-example': minor | ||
'@ballerine/backoffice-v2': minor | ||
'@ballerine/common': minor | ||
'@ballerine/kyb-app': minor | ||
'@ballerine/ui': minor | ||
--- | ||
|
||
Bump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ballerine/react-pdf-toolkit': patch | ||
--- | ||
|
||
Added report templates & storybook stories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@ballerine/react-pdf-toolkit': patch | ||
'@ballerine/workflows-service': patch | ||
'@ballerine/backoffice-v2': patch | ||
--- | ||
|
||
bump alpha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "11210907c", | ||
"initialVersions": { | ||
"@ballerine/backoffice-v2": "0.5.44", | ||
"@ballerine/kyb-app": "0.1.39", | ||
"@ballerine/workflows-dashboard": "0.1.11", | ||
"@ballerine/headless-example": "0.1.39", | ||
"@ballerine/report-generation-example": "0.0.1", | ||
"@ballerine/blocks": "0.1.24", | ||
"@ballerine/common": "0.7.39", | ||
"@ballerine/config": "1.0.4", | ||
"@ballerine/eslint-config": "1.0.4", | ||
"@ballerine/eslint-config-react": "1.0.5", | ||
"@ballerine/react-pdf-toolkit": "1.0.12", | ||
"@ballerine/rules-engine-lib": "0.4.24", | ||
"@ballerine/ui": "0.3.26", | ||
"@ballerine/workflow-core": "0.5.39", | ||
"@ballerine/web-ui-sdk": "1.4.36", | ||
"@ballerine/workflow-browser-sdk": "0.5.39", | ||
"@ballerine/workflow-node-sdk": "0.5.39", | ||
"@ballerine/websocket-service": "0.0.16", | ||
"@ballerine/workflows-service": "0.5.39", | ||
"@ballerine/docs-site": "0.0.1" | ||
}, | ||
"changesets": [ | ||
"early-hairs-itch", | ||
"five-wombats-thank", | ||
"heavy-apes-double", | ||
"kind-melons-hammer", | ||
"loud-hornets-switch", | ||
"rare-eels-tan", | ||
"rotten-owls-invent", | ||
"shiny-rocks-suffer", | ||
"tough-nails-teach", | ||
"wicked-ducks-act", | ||
"young-jeans-fail" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ballerine/common': patch | ||
--- | ||
|
||
Added base64 provider type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'@ballerine/report-generation-example': patch | ||
'@ballerine/react-pdf-toolkit': patch | ||
'@ballerine/workflows-service': patch | ||
'@ballerine/headless-example': patch | ||
'@ballerine/workflow-browser-sdk': patch | ||
'@ballerine/workflow-core': patch | ||
'@ballerine/workflow-node-sdk': patch | ||
'@ballerine/backoffice-v2': patch | ||
'@ballerine/blocks': patch | ||
'@ballerine/common': patch | ||
'@ballerine/web-ui-sdk': patch | ||
'@ballerine/kyb-app': patch | ||
'@ballerine/ui': patch | ||
--- | ||
|
||
bump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'@ballerine/react-pdf-toolkit': patch | ||
'@ballerine/workflows-service': patch | ||
'@ballerine/headless-example': patch | ||
'@ballerine/backoffice-v2': patch | ||
'@ballerine/common': patch | ||
'@ballerine/kyb-app': patch | ||
'@ballerine/ui': patch | ||
--- | ||
|
||
Version bump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ballerine/react-pdf-toolkit': patch | ||
--- | ||
|
||
Updated Header date formatting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ballerine/react-pdf-toolkit': patch | ||
--- | ||
|
||
bump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ballerine/react-pdf-toolkit': patch | ||
--- | ||
|
||
Cleanup & Bump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/backoffice-v2/src/common/components/atoms/Select/Select.Content.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
apps/backoffice-v2/src/common/components/molecules/ProcessTracker/constants.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
...src/common/components/molecules/ProcessTracker/hooks/useProcessTrackerLogic/interfaces.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { TWorkflowById } from '@/domains/workflows/fetchers'; | ||
import { TWorkflowDefinitionById } from '@/domains/workflow-definitions/fetchers'; | ||
import { TWorkflowById } from '@/domains/workflows/fetchers'; | ||
|
||
export interface IUseProcessTrackerLogicParams { | ||
tags: TWorkflowById['tags']; | ||
plugins: Array< | ||
| NonNullable<NonNullable<TWorkflowDefinitionById['extensions']>['apiPlugins']>[number] | ||
| NonNullable< | ||
NonNullable<TWorkflowDefinitionById['extensions']>['childWorkflowPlugins'] | ||
>[number] | ||
| NonNullable<NonNullable<TWorkflowDefinitionById['extensions']>['commonPlugins']>[number] | ||
>; | ||
context: TWorkflowById['context']; | ||
childWorkflows: TWorkflowById['childWorkflows']; | ||
workflow: TWorkflowById; | ||
processes?: string[]; | ||
} |
46 changes: 46 additions & 0 deletions
46
.../hooks/useProcessTrackerLogic/process-tracker-adapters/collection-flow.process-tracker.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { processStatusToIcon } from '@/common/components/molecules/ProcessTracker/constants'; | ||
import { | ||
IProcessTracker, | ||
ProcessTrackerItem, | ||
} from '@/common/components/molecules/ProcessTracker/hooks/useProcessTrackerLogic/process-tracker-adapters/process-tracker.abstract'; | ||
import { TWorkflowById } from '@/domains/workflows/fetchers'; | ||
import { ProcessStatus } from '@ballerine/common'; | ||
import { titleCase } from 'string-ts'; | ||
|
||
export class CollectionFlowProcessTracker implements IProcessTracker { | ||
PROCESS_NAME = 'collection-flow'; | ||
|
||
constructor(readonly workflow: TWorkflowById) {} | ||
|
||
buildItems(): ProcessTrackerItem[] { | ||
return ( | ||
this.getSteps()?.map(step => { | ||
return { | ||
text: titleCase(step), | ||
leftIcon: this.getCollectionFlowStatus(step), | ||
}; | ||
}) || [] | ||
); | ||
} | ||
|
||
getReadableName(): string { | ||
return 'Collection Flow'; | ||
} | ||
|
||
private getSteps() { | ||
return Object.keys(this.workflow?.context?.flowConfig?.stepsProgress ?? {})?.sort((a, b) => { | ||
return ( | ||
(this.workflow?.context?.flowConfig?.stepsProgress?.[a]?.number ?? 0) - | ||
(this.workflow?.context?.flowConfig?.stepsProgress?.[b]?.number ?? 0) | ||
); | ||
}); | ||
} | ||
|
||
private getCollectionFlowStatus(step: string) { | ||
if (this.workflow?.context?.flowConfig?.stepsProgress?.[step]?.isCompleted) { | ||
return processStatusToIcon[ProcessStatus.SUCCESS]; | ||
} | ||
|
||
return processStatusToIcon[ProcessStatus.IDLE]; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...s/molecules/ProcessTracker/hooks/useProcessTrackerLogic/process-tracker-adapters/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CollectionFlowProcessTracker } from '@/common/components/molecules/ProcessTracker/hooks/useProcessTrackerLogic/process-tracker-adapters/collection-flow.process-tracker'; | ||
import { MerchantMonitoringProcessTracker } from '@/common/components/molecules/ProcessTracker/hooks/useProcessTrackerLogic/process-tracker-adapters/merchant-monitoring.process-tracker'; | ||
import { ThirdPartyProcessTracker } from '@/common/components/molecules/ProcessTracker/hooks/useProcessTrackerLogic/process-tracker-adapters/third-party.proces-tracker'; | ||
import { UBOFlowsProcessTracker } from '@/common/components/molecules/ProcessTracker/hooks/useProcessTrackerLogic/process-tracker-adapters/ubo-flows.process-tracker'; | ||
|
||
export const processTrackersMap = { | ||
'collection-flow': CollectionFlowProcessTracker, | ||
ubos: UBOFlowsProcessTracker, | ||
'third-party': ThirdPartyProcessTracker, | ||
'merchant-monitoring': MerchantMonitoringProcessTracker, | ||
} as const; |
Oops, something went wrong.