Skip to content

Commit fd3268c

Browse files
tomer-shvadronBlokhalonp99chesterkmrpratapalakshmi
authoredSep 7, 2023
feat: displaying user or vendor data in block level (#1059)
* generated customer and project resources * added user on project * added associations of users and projects * updated naming + logic of implementation of requests * added projectIds to serialize user * generated customer resource * added auth json index inside json * added indexes and authentication over session * added nestjs requirements * finished session logic * updated naming of middleware * updated logic to use project IDs decorator * fixed splitting filtering - by proejct * add customer logo formatting form customer * updated middleware extraction logic * pnpm lock update * fix: updated workflow creation payload & fixed backoffice open corporates (#806) * feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects * fix kyc * fix kyc * pnpm lock update * fix: fixed routing & added loading indication to submit & backoffice fix * fix: updated mappings of document field names to document types * feat: added attributes to company documents & updates schemas & version bump * fix: headquarters state is now required only when country has states * fix: updated currency sign placeholders & updated country placeholders * added admin key authentication via api * added admin to use for user creation * fix: added missing titles to schemas & fixed typo & bump * finalized user creation process * add get customer by token * updated auth key extraction infromation * ran format * merged multitenant and flow * added demo release (#832) * fixed failing tests * removed for test changes requeirments * add demo to github publish action * updated customer me (#838) * chore: merge with kyb branch (#839) * feat: added customer env & added customer fetch & updated views to handle customer (#840) * Illia rudniev/feat/kyb flow mt (#846) * feat: updated KYB flow endpoints to handle MT * fix: fixed scope service & updated endpoints to work with MT & updated shareholders schema * fixed image creation * updated branch logic * fixed unqiueness scoped by project (#848) * fix prisma schema * Update publish-workflows-service.yml (#852) * Illia rudniev/chore/demo dev merge (#866) * fix(examples): update ballerine UI in kyb example * fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833) * fixed backoffice api client and fetcher (#834) * fix(backoffice-v2): fixed wrong options passed to api client and fetcher * fix(*): pnpm-lock * new kyc collection flow work (#805) * pnpm lock update * fix: updated workflow creation payload & fixed backoffice open corporates (#806) * feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects * fix kyc * fix kyc * pnpm lock update * fix: fixed routing & added loading indication to submit & backoffice fix * fix: updated mappings of document field names to document types * feat: added attributes to company documents & updates schemas & version bump * fix: headquarters state is now required only when country has states * fix: updated currency sign placeholders & updated country placeholders * fix: added missing titles to schemas & fixed typo & bump * feat: added new components to UI lib & refactored services & minor KYB changes * chore: removed unused code * fix: fixed tests & lock fix --------- Co-authored-by: Illia Rudniev <[email protected]> * add: helm charts for other ballerine services/apps (#734) * add: Docker for kyb-app (#783) * add: Docker for kyb-app * add: Docker for kyb-app * Update docker-compose.yml * fixing seed issue --------- Co-authored-by: Alon Peretz <[email protected]> * fix: workflow-dispatch image push (#849) * fix: workflow-dispatch image push * Update publish-websocket.yml * Update publish-backoffice.yml * Update publish-websocket.yml * Update publish-backoffice.yml * fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851) * fix: fixed incorrect paths to assets in components (#861) --------- Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Omri Levy <[email protected]> Co-authored-by: pratapalakshmi <[email protected]> * removed authorization token from backoffice requests * added s3 sources to be scoped (#870) * Illia rudniev/fix/kyb demo UI fixes (#877) * fix: css fixes & date picker crash bug & schema changes & bump * feat: instead of 404 user now getting redirect to home page * fix: fixed date picker error css & removed text capitalize from errors & ui bump * fix: updated personal information schema & ui lib fixes & ui bump * fix: updated schemaes * fix: lock fix * Update publish-workflows-service.yml (#881) * added demo to release (#883) * fixed build * chore: release package(s) (#884) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Blokh/feat/demo mock data (#885) * updated logic of workflow * added mock data for workflows * added mock data for workflows * added changes required for business workflow mock creation + enduser * generated mock data including aml schema * added images to default mock data * ran format * added createDemoMockData to creation process * moved create demo mock data to scripts * moved create demo mock data to scripts * Illia rudniev/feat/kyb form customization (#886) * fix(examples): update ballerine UI in kyb example * fix(workflows-service): fixed the updateDocumentDecisionById endpoint passing wrong param to guard (#833) * fixed backoffice api client and fetcher (#834) * fix(backoffice-v2): fixed wrong options passed to api client and fetcher * fix(*): pnpm-lock * new kyc collection flow work (#805) * pnpm lock update * fix: updated workflow creation payload & fixed backoffice open corporates (#806) * feat: added rejected page &fixed company name mapping & added approved/rejected routes & redirects * fix kyc * fix kyc * pnpm lock update * fix: fixed routing & added loading indication to submit & backoffice fix * fix: updated mappings of document field names to document types * feat: added attributes to company documents & updates schemas & version bump * fix: headquarters state is now required only when country has states * fix: updated currency sign placeholders & updated country placeholders * fix: added missing titles to schemas & fixed typo & bump * feat: added new components to UI lib & refactored services & minor KYB changes * chore: removed unused code * fix: fixed tests & lock fix --------- Co-authored-by: Illia Rudniev <[email protected]> * add: helm charts for other ballerine services/apps (#734) * add: Docker for kyb-app (#783) * add: Docker for kyb-app * add: Docker for kyb-app * Update docker-compose.yml * fixing seed issue --------- Co-authored-by: Alon Peretz <[email protected]> * fix: workflow-dispatch image push (#849) * fix: workflow-dispatch image push * Update publish-websocket.yml * Update publish-backoffice.yml * Update publish-websocket.yml * Update publish-backoffice.yml * fix: now on shareholders check personal information is sent as ubo & fixed bounce animation (#851) * feat: updated kyb-kyc definition schema & added fetching of schema in kyb app * feat: collection flow now using schemas from wf definition & removed unused code * feat: added collection flow module & added default values to definition schema * feat: implemented collection-flow controller * feat: kyb now using collection flow & common version bump & mapping fixes in wf service * fix: fixed active view state persistance * feat: updated schemas & fixed workflow update * feat: added schema configurations merging & cleaned code * feat: updated mappings & removed guards from collection flow * fix: fixed tests & removed merge markers * chore: lint fix --------- Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Omri Levy <[email protected]> Co-authored-by: pratapalakshmi <[email protected]> Co-authored-by: Daniel Blokh <[email protected]> * fix: unit test fix (#891) * fix: unit test fix * fix: lint fix * added user scoping (#871) * added user scoping * added scoping customers * chore: extracted static assets from countries/states libs & updated cspell ignore (#895) Co-authored-by: Daniel Blokh <[email protected]> * fix: country mapping fix (#896) * fix: fixed auth tests (#904) * chore: merged dev branch in to demo (#905) Co-authored-by: Alon Peretz <[email protected]> * fix: fixed update of workflow on step navigation & types fix (#903) Co-authored-by: Alon Peretz <[email protected]> * fix: fixed bug where storage controller returned same file id for all requests (#902) * fix: fixed bug where storage controller returned same file id for all requests * fix: cleared code --------- Co-authored-by: Alon Peretz <[email protected]> * feat: final screen is now changeable in kyb (#907) Co-authored-by: Alon Peretz <[email protected]> * feat: document fields not can be used independantly & removed schemas (#908) Co-authored-by: Alon Peretz <[email protected]> * `updateDocumentDecisionById` leftovers (#845) * feat(workflows-service): now completing a case when all documents are resolved * feat(workflows-service): now sending the workflow completed webhook in updateDocumentDecisionById * revert(seed.ts): reverted seed.ts * revert(seed.ts): reverted seed.ts * feat(workflows-service): added validation step to updateDocumentDecisionById * fix(workflows-service): now validating document type only if decision is approved * feat: implemented logout on back button & fixed text on layouts (#911) * Blokh/feat/single aws bucket (#914) * reverted multitenant bucket * updated format * added todo * fix: iif isFinal is missing then last screen counts as final (#912) * fix: iif isFinal is missing then last screen counts as final * fix: fixed backoffice auth issue * fixed images in seed * fix bad merge of github-actions (#915) * added file by scope * Omri levy/feat/revision emails (#910) * refactor(*): updated ubos definition and assigned guard * feat(backoffice-v2): added a counter for how many documents are going to be revised * feat: added UI/Badge * feat: continued to work on badge * feat: finished * feat: pR comment fix * fix: missing comma fix --------- Co-authored-by: Omri Levy <[email protected]> * updated kyb logic * added naming to mails * ran format * Illia rudniev/feat/demo fixes (#925) * feat: added parse and send of business data & updated types * feat: uploaded documents are now stored as fileIds instead of base64 * fix: added missing documents configs to seed & fixed config service (#926) * updated workflow * added log (#929) * feat: updated ui file input adapter & version bump & schema updates (#927) * ran install with new ui package. ran format * Blocks api updates (#923) * refactor(backoffice-v2): moved blocks into variables and wrapped blocks in cells prop * fix: fixed registryInfoBlock structure --------- Co-authored-by: Tomer Shvadron <[email protected]> * fix: added parsing of ocr date format to iso (#937) * Blokh/feat/resubmit veriff enduser (#943) * added signed url * added unique verify url * updated true to be lowercased + foramt * revert arm64 images building in docker (#942) * fix(backoffice-imgs): make signed url work with env vars (#951) * Illia rudniev/fix/kyb demo issues (#949) * feat: updated schemas & updated ui datepicker * fix: fixed logo sizes on signin & app shell * feat: reworked ocr fetching logic * chore: removed temp files * Fix base 64 images (#952) * fix(backoffice-v2): now checking if an image url is a url and not base64, and updated seed * refactor(backoffice-v2): removed untintentional code * revert(backoffice-v2): returned documents data to be inline * fix payload name generation * fix(workflows-service): fixed 401 and 403 responses from decisions on a kyc block (#954) * WIP - Revision dialog changes (#924) * feat(backoffice-v2): the global revision dialog now follows the latest figma design * refactor(backoffice-v2): kyc block revision dialog changes * refactor(backoffice-v2): updated reason label with margin * style: small visual paragraph styling fix * style: same as last commit * fix: small ui bugs * fix: small fix --------- Co-authored-by: Tomer Shvadron <[email protected]> * Fixed invalid text on revision dialog (#956) * fix(backoffice-v2): fixed wrong text showing depending on workflow config * fix(backoffice-v2): removed default true from Case.Actions * fix: fixed hq schema & added resubmit endpoint & mapping changes (#955) * fix: fixed hq schema & added resubmit endpoint & mapping changes * fix: updated support email on rejected page * added get full country name by code --------- Co-authored-by: blokh <[email protected]> * updated mail logic for company revision * fixed state code fetching logic * Create mock data for new tenants (#950) * fix: use mock data * fix: add data * fix: improve data * fix: add more cases * fix: remain one mock case * added extraction from ubo for resubmission mail * refactor(fetchers.ts): now using env.ts for VITE_FETCH_SIGNED_URL (#960) * fixed registry info block * Blokh/feat/decistion persistence (#961) * fixed flow handling for decistion * added === instead of == * updated over existing document * fix: fixed rendering of approved/rejected pages (#962) * fix: fixed rendering of approved/rejected pages * fix: fixed missing customer after merge * fix: fixed document decision persistance of documents (#963) * fix(env/schemas.ts): fixed parsing boolean env when they are undefined (#964) * Fix handling of PDF images (#959) * fix(backoffice-v2): added checks for url pdf extension * refactor(backoffice-v2): fixed wrong formatting * feat(*): checkpoint * fix(backoffice-v2): no longer failing isBase64 validation * illia-rudniev/fix/backoffice-common-fix (#968) * fix: fixed common package version & removed placeholders from buttons in kyb * fix: lock fix * illia-rudniev/fix/common-package-fix (#969) * fix: removed verifySignature from common and added to wf service & version bump * fix: lock fix * Backoffice EditableDetails date fields (#967) * feat(backoffice-v2): editable details now support dates even if format is not date * feat(editabledetails): added a default case for inputType * chore(backoffice-v2): pr comments changes * fix(backoffice-v2): fixed uses and jsdoc of isValidDate * feat: kYC block status (#972) * Hide registry data when OpenCorporates failed (#970) * fix: add `UNIFIED_API_URL` env var * fix: add `VITE_API_KEY` to the kyb-app .env.example * fix: hide registry info blocks on error * fix: fixed validation issues on schemas & label click fix & ui bump (#971) * fix: fixed validation issues on schemas & label click fix & ui bump * fix: lock fix * updated demo data to be a method * updated demo creation schema * fix: added human readable message for invalid email input (#973) * Tomer shvadron/fix/bade max height (#974) * fix: added max height on Badge * fix: fixed format error caused by evil people that use --no-verify * updated creating mock data logic * reverted pdf changes * reverted isBase64 logic * Tomer shvadron/feat/case status (#984) * feat: added Case status * style: format * Hide the map block when the address wasn't found by Nominatim (#985) * fix: workflow's state can be nullable * feat: hide map when address is not found * Blokh/feat/scope metrics by proejct (#992) * added scoping of metrics for api flow * updated env logic * fix: queries * fix: queries * added demo to workflow publish --------- Co-authored-by: Illia Rudniev <[email protected]> Co-authored-by: Matan Yadaev <[email protected]> * feat: added project ids scoping to workflow list (#993) * feat: added state tags and used them in case status (#1000) * tomer shvadron/feat/block status with tags (#1011) * feat: block status with tags * Revert "feat: block status with tags" This reverts commit e5725e7c49f7025e52fa5912d2454f2be8514f80. * Revert "Revert "feat: block status with tags"" This reverts commit 26bfd6ad8797afc1fe70f37ede76f15cf9a56bf9. * fix(bumped @ballerine/common): bumped @ballerine/common (#1013) * chore: release package(s) (#1014) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat: pending ID verification badge (#1012) * feat: pending ID verification badge * chore: updated @ballrine/common version * fix: fixed an error when a case does not have any tags (#1016) * feat: added a case status badge for when the collection workflow is in progress (#1018) * feat/wf-service-proj-scope (#1019) * feat: implemented eslint plugin to validate repos & updated code to use projids * added find_first_or_throw logic * added by id unscoped to user * fixed session logic of project scoped * fix: fixed unscoped methods & plugin rename * updated authentication of user * generated demo-dev merge branch * feat: added current-project decorator & updated repositories (#1023) * feat: added current-project decorator & updated repositories * fix: fixed project type * fix: added current-project-id to services * fix: fixed variable names & partially fixes tests * Blokh/feat/workflow definition mt (#1022) * feat: added feinition for specific customer * feat: added workflow defintiion clone * fixed build * updated isTemplate to isPublic * removed unnecessary selects * fix: fix internal controller test * ran format * Blokh/feat/workflow definition mt (#1030) * feat: added feinition for specific customer * feat: added workflow defintiion clone * fixed build * updated isTemplate to isPublic * removed unnecessary selects * fix: fix internal controller test * ran format * updated prisma migrations * workflowDefinitionRepository.create * Blokh/feat/customer folder name (#1027) * feat: added folder name for each customer * feat: updated format of generating destination_flder * removed unused remote file path args * fixed workflow internal test * fixed modules circular dependcy * fixed customer service requirement fix * fix: fixed tests --------- Co-authored-by: blokh <[email protected]> Co-authored-by: Daniel Blokh <[email protected]> * updated findById for definition * updated args for all find first or throw * updated args for all find first or throw * feat(ran install): ran install * updated fied finqunique * fix: publish common package (#1039) * fixed run workflow * updated create logic for connection * removed ISDEMO from project * updated customer name logic * updated definition logic to become public (#1044) * Demo dev merge (#1029) * refactor(@ballerine/common): updated document schemas (#917) * chore: release package(s) (#918) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Revert "refactor(@ballerine/common): updated document schemas (#917)" (#921) This reverts commit 9d0c7f92dc7440f640215b1eaa15889e52c4fa2b. * refactor(@ballerine/common): updated document schemas (#920) * refactor(@ballerine/common): updated document schemas * chore(*): updated lockfile * Version Packages (#922) * chore: release package(s) * chore(*): update lockfile --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Omri Levy <[email protected]> * Updated document schemas (#932) * refactor(packages/common): replaced common with common from the staging branch * feat(@ballerine/common): updated document schemas * refactor(gh.ts): updated mtn * Version release with fixed lockfile (#934) * refactor(packages/common): replaced common with common from the staging branch * feat(@ballerine/common): updated document schemas * refactor(gh.ts): updated mtn * chore(*): fixed lockfile * Version Packages (#935) * chore: release package(s) * chore(*): update lockfile * chore: release package(s) --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Omri Levy <[email protected]> * revert(packages/common): reverted common to its previous state * update: image registry values in helm chart (#981) * docs(docs): updated web-ui-sdk docs (#1015) * added publish * added all relevant branches for deployments * feat: added base64 private decoding * ran format * added cloudfront log * update postgres image in helm charts (#1026) * generated demo-dev merge branch * Staging to sb (#1031) * feat: new doc schemas * fix: format * feat: improve wf cd (#1032) * fix: uganda phone number (#1035) * Salesforce authentication (#1025) * feat: schema changes * feat: new env variables * feat: auth with salesforce * fix: default env * fix: improve error messages * ran format * ran format * fixed definition workflow query * fixed scoped for project * feat(fixed assign and update): fixed assign and update workflow runtime * feat: package publishes * minor refactoring * fix: bump common * Handling file types via mime types (fixes PDF issues) (#1024) * feat(storage): add presigned url to storage/s3 endpoint * feat(*): added an endpoint to update a document's decision (#796) * feat(*): added an endpoint to update a document's decision * refactor(workflows-service): minimized changes made to decision object on document * Omri levy/fix/pdf infinite loop (#987) * fix(backoffice-v2): wip fixing sign out re-renders * Omri levy/fix/stale case data (#768) * chore: add eslint unused import plugin to projects seperately (#425) * feat(generated assignee-asigned-guard): assign endpoint (#451) * feat(generated assignee-asigned-guard): generated assignee-asigned-guard for document desition updat generated assignee-asigned-guard for document desition updating * feat: added AssigneeAsignedGuard and assign endpoint * removed unnecessary changes * fixed comments and reverted unnecessary changes * updated wassigneed guard name * updated class validator on assgin workflow and query * reverted package json * feat(merged with dev): merged with dev --------- Co-authored-by: blokh <[email protected]> * Blokh/feat/backoffice image (#505) * feat(added env of image url): added env of image url which is fetched by env var * feat: minor refactoring * fixed minor bugs * fixed minor bugs * added logo url * fix image logo by updating name to VITE_IMAGE_LOGO_URL * refactor(db-schema): remove enduser unneccesary fields (#508) * refactor(db-schema): remove enduser unneccesary fields * feat(entities): add entities fields * fixes types * fixes types * fixes types * fixed document props update * backoffice: fixed addtional info on entity * add ajv keywords * update pnpm lock file * Create SECURITY.md (#513) * fix pdf view in backoffice * fix(backoffice-v2): fixed height for image viewer - addresses how pdfs are displayed * Blokh/feat/default case filter assignee (#480) * feat(user controller internal): generate endpoint for create user * updated the user creation + return values from the DB to be more secured * updated select placement * removed unnecessary return types * feat: merged with dev * format * generated pre-search-filter logic * feat: generate logic for onLoad to set default filters * navigateDefaultFilterParams refactoring * Update apps/backoffice-v2/src/routes/Entities/pre-search-filters.ts --------- Co-authored-by: blokh <[email protected]> Co-authored-by: Alon Peretz <[email protected]> * update doc type (#515) * began udaating view interface logic * added moving to commons the schema of workflows + policies * feat(updated common version): updated commmon version * feat: updated common * common release * common release * common release * feat(update doc type): finished updating doc type finished updating doc type - missing id * feat(docs): add id * fixed picking category and type * merged with update by id document * updated editable on submit * fixes * feat: updated assign document id if doesn't have any * feat: merged with dev * removed unnecessary git ignore * removed unnecessary ts ignore * fix(dd): d * fix(d): d d * pnpm lock file --------- Co-authored-by: blokh <[email protected]> * updated common reference * update common versions * fix: upgrade @astrojs/mdx from 0.18.4 to 0.19.2 (#518) Snyk has created this PR to upgrade @astrojs/mdx from 0.18.4 to 0.19.2. See this package in npm: https://www.npmjs.com/package/@astrojs/mdx See this project in Snyk: https://app.snyk.io/org/alonp99/project/2e88abf8-2761-42b7-a9df-9579a86ace21?utm_source=github&utm_medium=referral&page=upgrade-pr Co-authored-by: snyk-bot <[email protected]> * fix: upgrade @ballerine/common from 0.4.3 to 0.4.4 (#519) Snyk has created this PR to upgrade @ballerine/common from 0.4.3 to 0.4.4. See this package in npm: https://www.npmjs.com/package/@ballerine/common See this project in Snyk: https://app.snyk.io/org/alonp99/project/4c2207cc-2b3d-4867-87d2-790f5c70fd2b?utm_source=github&utm_medium=referral&page=upgrade-pr Co-authored-by: snyk-bot <[email protected]> * update pnpm lock file * backoffice signin logo regression fix * added test env ci * Cases pagination, sorting, filtering, and search (#516) * Apply filters on workflows instead of entity (#496) * feat(backoffice-v2): added react-router-dom * feat(backoffice-v2): added a react router provider * feat(backoffice-v2): re-added redirect to en locale * feat(backoffice-v2): re-added root error component * feat(backoffice-v2): the root route now uses the Root component * feat(backoffice-v2): added the locale route * feat(backoffice-v2): added the case management route * feat(backoffice-v2): added the sign in route * feat(backoffice-v2): added entities route and replaced imports of tanstack router * feat(backoffice-v2): added the entity by id route and refactored its loader * feat(backoffice-v2): wip work on search query params * refactor(backoffice-v2): removed tanstack router * feat(backoffice-v2): handling null values in search params and default filters * fix(backoffice-v2): it is now possible to remove filters with a catch clause * refactor(backoffice-v2): moved loaders to separate files * fix(backoffice-v2): fixed sign out redirect * refactor(backoffice-v2): moved locale component to the locale directory * fix(backoffice-v2): no longer encoding the url * fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected * feat: implement backend * fix(backoffice-v2): fixes default search query params returning when unchecking filters solved by adding a placeholder for null and empty arrays for qs * fix(backoffice-v2): reduced padding on case list item - solves axis x overflow * refactor(backoffice-v2): refactored routes to pages * docs(backoffice-v2): added comments to the stringify/parse search params functions * feat: refactor completed * fix: pr fixes * fix: pr fixes * fix: tests * fix: pr comments --------- Co-authored-by: Omri Levy <[email protected]> * fix(useEntity): make actions disabled when there is a decision status * feat: split workflows endpoint into two * feat: support sorting * fix: pr review * Cases pagination (#509) * fix(useEntity): make actions disabled when there is a decision status * feat: split workflows endpoint into two * feat: support sorting * fix: pr review * feat: pagination * fix: remove filterName * feat: client pagination * feat: backend pagination * feat: search * fix: code review * fix: document id as uuid * fixed test * fix(workflows-service): added optional chaining to properties which previously resolved to null * fix: pagination * add entity to filters * fix --------- Co-authored-by: Omri Levy <[email protected]> Co-authored-by: Alon Peretz <[email protected]> * feat: create workflows websocket service (#499) * feat(workflows-websocket-service): create workflows websocket service create a new service for supporting websockets in workflows service and reduce the usage of polling in backoffice ui BREAKING CHANGE: Create a brand new service feat #328 --------- Co-authored-by: teselil <[email protected]> * feat(vite.config.ts): added sourcemaps * update common * Blokh/fix/refactor update category (#517) * added watch for form * feat: finalized update form of category type * removed log * feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown added usewatchdropdown logic for category to type logic * updated compose to edit naming * feat(merged with dev): merged with dev merged with dev + fixed conflicts + updated code after format changes * updated use initial category set * added types to uniqueArrayByKey * fixed entries to document * minor refactoring * updated common version * added find value * Blokh/feat/test infra (#500) * feat(database-infra): generated infra for test creations ( test & nest ) generate database infra for test creations, generated test for end-user in order to test the test-infra * feat: generated global setup and teardown * updated DATABASE_SCHEMA_NAME using zod * fixed comments * removed unnecessary actions and docker compose * updated lock * feat: running foramt * updated DB_CONTAINER type * feat(added testglobal): added TestGlobal * updated pnpm lock * feat: added TESTCONTAINERS_RYUK_DISABLED true * ran commitlint * removed unnecessary wawait * removed test using windows * updated test runnign strategy * removed windows test as it does not support db request * feat(added support for unit test ing test and e2e test): added support for unit test added support for unit test, integration test and e2e test * added different ci for ubuntu and windows * updated commons * removed unit test from browser sdk * removed unit test from workflow * fixed package json * removed unit test from node-sdk * added crossenv * merged with dev * fixed enduser test * reverted removal of unittest * ran format * updated nx json * added unit test for workflow core * fixed nx json * fixed duplicated tests configuration on nx * reverted remoival of lint * merged with dev * feat: added handling of prisma validation errors to workflow controller (#511) * feat: added handling of prisma validation errors to workflow /run controller * feat: moved prisma validation filter to global level * feat: implemented prisma validation errors parser & added parse output to filter * feat: added handling of unknown arguments exceptions from prisma * feat: added ansi codes removal from exception * use clean ansi fn --------- Co-authored-by: Alon Peretz <[email protected]> * add kyb w/ external request (#541) * feat(examples-kyb): kyb example w/ external request * feat(examples-kyb): kyb example w/ external request * fix(backoffice-v2): fixed document type resetting to "undefined" * fix(*): no longer using hardcoded propertiesSchema * update common lib * feat(workflow-def): enable mulitple active workflows * update pnpm lock * updated cookie secure to false for testing * added secure proxy to cookie logic * added trust proxy key to app * added trust proxy key to app * added trust proxy key to app * reverted unnecessary changes * reverted unnecessary changes * added secureProxy * removed secured of cookie * updated removed http only * added secured false * remove cookie domaun * WIP - Headless example fix (#510) * feat(headless-example): checkpoint * feat(*): checkpoint * fix(workflows-service): fixed wrong destination on diskStorage * fix(workflows-service): fixed de-sync between external uploadFile and internal affected the fileNameOnDisk property * fix(*): fixed headless-example file upload flow * fix(headless-example): updated the name of the mock certificate of incorporation pdf file * feat(headless-example): now using the workflow document decisions for rejected/approved/revisions * refactor(headless-example): updated the condition for displaying re-submission ui * refactor(headless-example): replaced header auth with api key auth for the headless example * Apply filters on workflows instead of entity (#496) * feat(backoffice-v2): added react-router-dom * feat(backoffice-v2): added a react router provider * feat(backoffice-v2): re-added redirect to en locale * feat(backoffice-v2): re-added root error component * feat(backoffice-v2): the root route now uses the Root component * feat(backoffice-v2): added the locale route * feat(backoffice-v2): added the case management route * feat(backoffice-v2): added the sign in route * feat(backoffice-v2): added entities route and replaced imports of tanstack router * feat(backoffice-v2): added the entity by id route and refactored its loader * feat(backoffice-v2): wip work on search query params * refactor(backoffice-v2): removed tanstack router * feat(backoffice-v2): handling null values in search params and default filters * fix(backoffice-v2): it is now possible to remove filters with a catch clause * refactor(backoffice-v2): moved loaders to separate files * fix(backoffice-v2): fixed sign out redirect * refactor(backoffice-v2): moved locale component to the locale directory * fix(backoffice-v2): no longer encoding the url * fix(backoffice-v2): filters no longer revert to defaults when all filters are unselected * feat: implement backend * fix(backoffice-v2): fixes default search query params returning when unchecking filters solved by adding a placeholder for null and empty arrays for qs * fix(backoffice-v2): reduced padding on case list item - solves axis x overflow * refactor(backoffice-v2): refactored routes to pages * docs(backoffice-v2): added comments to the stringify/parse search params functions * feat: refactor completed * fix: pr fixes * fix: pr fixes * fix: tests * fix: pr comments --------- Co-authored-by: Omri Levy <[email protected]> * fix(useEntity): make actions disabled when there is a decision status * feat: split workflows endpoint into two * refactor(headless-example): improved flow behavior and added clear user button * feat: support sorting * fix: pr review * Cases pagination (#509) * fix(useEntity): make actions disabled when there is a decision status * feat: split workflows endpoint into two * feat: support sorting * fix: pr review * feat: pagination * fix: remove filterName * feat: client pagination * feat: backend pagination * feat: search * fix: code review * added watch for form * feat: finalized update form of category type * removed log * added test env ci * feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown added usewatchdropdown logic for category to type logic * added test env ci * updated compose to edit naming * fix: document id as uuid * fixed test * fix(workflows-service): added optional chaining to properties which previously resolved to null * feat(merged with dev): merged with dev merged with dev + fixed conflicts + updated code after format changes * fix(*): can now see the re-submit ui and re-upload documents * updated use initial category set * added types to uniqueArrayByKey * fixed entries to document * minor refactoring * updated common version * fix(backoffice-v2): no longer rendering an empty block if there's no entity data * fix(*): now displaying the entity data when uploading docs from the headless example * feat(backoffice-v2): fixed the size of the navbar checkboxes * feat(*): checkpoint * fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns * fix(backoffice-v2): fixed document category initilizing with undefined * revert(backoffice-v2): reverted the changes to useInitialSetCategory * fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller shadcn select form controller placement * fix(backoffice-v2): fixed useWatchDropdownOptions no longer overrides document type to "undefined" * fix(seed.ts): updated seed.ts so information shows and is editable for the example * fix(*): fixed useUpdateWorkflowByIdMutation previously used the wrong query keys and updated data wrong * fix(*): no longer returning an empty function to appease eslint * fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here * refactor(workflows-service): moved assignIdToDocuments into the repository level for create moved to updateWorkflowRuntimeData for update * fix(setformdata): removed redundant useState * Fix E2E flow for headless example (affects backoffice, workflows service, and headless example) (#548) * feat(headless-example): checkpoint * feat(*): checkpoint * fix(workflows-service): fixed wrong destination on diskStorage * fix(workflows-service): fixed de-sync between external uploadFile and internal affected the fileNameOnDisk property * fix(*): fixed headless-example file upload flow * fix(headless-example): updated the name of the mock certificate of incorporation pdf file * feat(headless-example): now using the workflow document decisions for rejected/approved/revisions * refactor(headless-example): updated the condition for displaying re-submission ui * refactor(headless-example): replaced header auth with api key auth for the headless example * refactor(headless-example): improved flow behavior and added clear user button * feat(vite.config.ts): added sourcemaps * update common * fix(*): can now see the re-submit ui and re-upload documents * Blokh/fix/refactor update category (#517) * added watch for form * feat: finalized update form of category type * removed log * feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown added usewatchdropdown logic for category to type logic * updated compose to edit naming * feat(merged with dev): merged with dev merged with dev + fixed conflicts + updated code after format changes * updated use initial category set * added types to uniqueArrayByKey * fixed entries to document * minor refactoring * updated common version * added find value * Blokh/feat/test infra (#500) * feat(database-infra): generated infra for test creations ( test & nest ) generate database infra for test creations, generated test for end-user in order to test the test-infra * feat: generated global setup and teardown * updated DATABASE_SCHEMA_NAME using zod * fixed comments * removed unnecessary actions and docker compose * updated lock * feat: running foramt * updated DB_CONTAINER type * feat(added testglobal): added TestGlobal * updated pnpm lock * feat: added TESTCONTAINERS_RYUK_DISABLED true * ran commitlint * removed unnecessary wawait * removed test using windows * updated test runnign strategy * removed windows test as it does not support db request * feat(added support for unit test ing test and e2e test): added support for unit test added support for unit test, integration test and e2e test * added different ci for ubuntu and windows * updated commons * removed unit test from browser sdk * removed unit test from workflow * fixed package json * removed unit test from node-sdk * added crossenv * merged with dev * fixed enduser test * reverted removal of unittest * ran format * updated nx json * added unit test for workflow core * fixed nx json * fixed duplicated tests configuration on nx * reverted remoival of lint * merged with dev * feat: added handling of prisma validation errors to workflow controller (#511) * feat: added handling of prisma validation errors to workflow /run controller * feat: moved prisma validation filter to global level * feat: implemented prisma validation errors parser & added parse output to filter * feat: added handling of unknown arguments exceptions from prisma * feat: added ansi codes removal from exception * use clean ansi fn --------- Co-authored-by: Alon Peretz <[email protected]> * fix(backoffice-v2): no longer rendering an empty block if there's no entity data * fix(*): now displaying the entity data when uploading docs from the headless example * feat(backoffice-v2): fixed the size of the navbar checkboxes * feat(*): checkpoint * add kyb w/ external request (#541) * feat(examples-kyb): kyb example w/ external request * feat(examples-kyb): kyb example w/ external request * fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns * fix(backoffice-v2): fixed document category initilizing with undefined * revert(backoffice-v2): reverted the changes to useInitialSetCategory * fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller shadcn select form controller placement * fix(backoffice-v2): fixed useWatchDropdownOptions no longer overrides document type to "undefined" * fix(backoffice-v2): fixed document type resetting to "undefined" * fix(*): no longer using hardcoded propertiesSchema * update common lib * feat(workflow-def): enable mulitple active workflows * update pnpm lock * fix(seed.ts): updated seed.ts so information shows and is editable for the example * updated cookie secure to false for testing * added secure proxy to cookie logic * added trust proxy key to app * added trust proxy key to app * added trust proxy key to app * reverted unnecessary changes * reverted unnecessary changes * added secureProxy * removed secured of cookie * updated removed http only * added secured false * remove cookie domaun * fix(*): fixed useUpdateWorkflowByIdMutation previously used the wrong query keys and updated data wrong * fix(*): no longer returning an empty function to appease eslint * fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here * refactor(workflows-service): moved assignIdToDocuments into the repository level for create moved to updateWorkflowRuntimeData for update * fix(setformdata): removed redundant useState --------- Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Daniel Blokh <[email protected]> Co-authored-by: Ilya Rudnev <[email protected]> Co-authored-by: blokh <[email protected]> * refactor(backoffice-v2): made the parentMachine object have a default of an empty object creating workflows from the api will no longer fail if no parentMachine was specified * revert(backoffice-v2): reverted mistakenly workflow by id schema was removed * Fix workflow by id zod schema on test (#550) * feat(headless-example): checkpoint * feat(*): checkpoint * fix(workflows-service): fixed wrong destination on diskStorage * fix(workflows-service): fixed de-sync between external uploadFile and internal affected the fileNameOnDisk property * fix(*): fixed headless-example file upload flow * fix(headless-example): updated the name of the mock certificate of incorporation pdf file * feat(headless-example): now using the workflow document decisions for rejected/approved/revisions * refactor(headless-example): updated the condition for displaying re-submission ui * refactor(headless-example): replaced header auth with api key auth for the headless example * refactor(headless-example): improved flow behavior and added clear user button * feat(vite.config.ts): added sourcemaps * update common * fix(*): can now see the re-submit ui and re-upload documents * Blokh/fix/refactor update category (#517) * added watch for form * feat: finalized update form of category type * removed log * feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown added usewatchdropdown logic for category to type logic * updated compose to edit naming * feat(merged with dev): merged with dev merged with dev + fixed conflicts + updated code after format changes * updated use initial category set * added types to uniqueArrayByKey * fixed entries to document * minor refactoring * updated common version * added find value * Blokh/feat/test infra (#500) * feat(database-infra): generated infra for test creations ( test & nest ) generate database infra for test creations, generated test for end-user in order to test the test-infra * feat: generated global setup and teardown * updated DATABASE_SCHEMA_NAME using zod * fixed comments * removed unnecessary actions and docker compose * updated lock * feat: running foramt * updated DB_CONTAINER type * feat(added testglobal): added TestGlobal * updated pnpm lock * feat: added TESTCONTAINERS_RYUK_DISABLED true * ran commitlint * removed unnecessary wawait * removed test using windows * updated test runnign strategy * removed windows test as it does not support db request * feat(added support for unit test ing test and e2e test): added support for unit test added support for unit test, integration test and e2e test * added different ci for ubuntu and windows * updated commons * removed unit test from browser sdk * removed unit test from workflow * fixed package json * removed unit test from node-sdk * added crossenv * merged with dev * fixed enduser test * reverted removal of unittest * ran format * updated nx json * added unit test for workflow core * fixed nx json * fixed duplicated tests configuration on nx * reverted remoival of lint * merged with dev * feat: added handling of prisma validation errors to workflow controller (#511) * feat: added handling of prisma validation errors to workflow /run controller * feat: moved prisma validation filter to global level * feat: implemented prisma validation errors parser & added parse output to filter * feat: added handling of unknown arguments exceptions from prisma * feat: added ansi codes removal from exception * use clean ansi fn --------- Co-authored-by: Alon Peretz <[email protected]> * fix(backoffice-v2): no longer rendering an empty block if there's no entity data * fix(*): now displaying the entity data when uploading docs from the headless example * feat(backoffice-v2): fixed the size of the navbar checkboxes * feat(*): checkpoint * add kyb w/ external request (#541) * feat(examples-kyb): kyb example w/ external request * feat(examples-kyb): kyb example w/ external request * fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns * fix(backoffice-v2): fixed document category initilizing with undefined * revert(backoffice-v2): reverted the changes to useInitialSetCategory * fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller shadcn select form controller placement * fix(backoffice-v2): fixed useWatchDropdownOptions no longer overrides document type to "undefined" * fix(backoffice-v2): fixed document type resetting to "undefined" * fix(*): no longer using hardcoded propertiesSchema * update common lib * feat(workflow-def): enable mulitple active workflows * update pnpm lock * fix(seed.ts): updated seed.ts so information shows and is editable for the example * updated cookie secure to false for testing * added secure proxy to cookie logic * added trust proxy key to app * added trust proxy key to app * added trust proxy key to app * reverted unnecessary changes * reverted unnecessary changes * added secureProxy * removed secured of cookie * updated removed http only * added secured false * remove cookie domaun * fix(*): fixed useUpdateWorkflowByIdMutation previously used the wrong query keys and updated data wrong * fix(*): no longer returning an empty function to appease eslint * fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here * refactor(workflows-service): moved assignIdToDocuments into the repository level for create moved to updateWorkflowRuntimeData for update * fix(setformdata): removed redundant useState * refactor(backoffice-v2): made the parentMachine object have a default of an empty object creating workflows from the api will no longer fail if no parentMachine was specified * revert(backoffice-v2): reverted mistakenly workflow by id schema was removed --------- Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Daniel Blokh <[email protected]> Co-authored-by: Ilya Rudnev <[email protected]> Co-authored-by: blokh <[email protected]> * refactor(backoffice-v2): replaced default with optional for parentMachine validation * Omri levy/fix/fix headless example (#551) * feat(headless-example): checkpoint * feat(*): checkpoint * fix(workflows-service): fixed wrong destination on diskStorage * fix(workflows-service): fixed de-sync between external uploadFile and internal affected the fileNameOnDisk property * fix(*): fixed headless-example file upload flow * fix(headless-example): updated the name of the mock certificate of incorporation pdf file * feat(headless-example): now using the workflow document decisions for rejected/approved/revisions * refactor(headless-example): updated the condition for displaying re-submission ui * refactor(headless-example): replaced header auth with api key auth for the headless example * refactor(headless-example): improved flow behavior and added clear user button * feat(vite.config.ts): added sourcemaps * update common * fix(*): can now see the re-submit ui and re-upload documents * Blokh/fix/refactor update category (#517) * added watch for form * feat: finalized update form of category type * removed log * feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown added usewatchdropdown logic for category to type logic * updated compose to edit naming * feat(merged with dev): merged with dev merged with dev + fixed conflicts + updated code after format changes * updated use initial category set * added types to uniqueArrayByKey * fixed entries to document * minor refactoring * updated common version * added find value * Blokh/feat/test infra (#500) * feat(database-infra): generated infra for test creations ( test & nest ) generate database infra for test creations, generated test for end-user in order to test the test-infra * feat: generated global setup and teardown * updated DATABASE_SCHEMA_NAME using zod * fixed comments * removed unnecessary actions and docker compose * updated lock * feat: running foramt * updated DB_CONTAINER type * feat(added testglobal): added TestGlobal * updated pnpm lock * feat: added TESTCONTAINERS_RYUK_DISABLED true * ran commitlint * removed unnecessary wawait * removed test using windows * updated test runnign strategy * removed windows test as it does not support db request * feat(added support for unit test ing test and e2e test): added support for unit test added support for unit test, integration test and e2e test * added different ci for ubuntu and windows * updated commons * removed unit test from browser sdk * removed unit test from workflow * fixed package json * removed unit test from node-sdk * added crossenv * merged with dev * fixed enduser test * reverted removal of unittest * ran format * updated nx json * added unit test for workflow core * fixed nx json * fixed duplicated tests configuration on nx * reverted remoival of lint * merged with dev * feat: added handling of prisma validation errors to workflow controller (#511) * feat: added handling of prisma validation errors to workflow /run controller * feat: moved prisma validation filter to global level * feat: implemented prisma validation errors parser & added parse output to filter * feat: added handling of unknown arguments exceptions from prisma * feat: added ansi codes removal from exception * use clean ansi fn --------- Co-authored-by: Alon Peretz <[email protected]> * fix(backoffice-v2): no longer rendering an empty block if there's no entity data * fix(*): now displaying the entity data when uploading docs from the headless example * feat(backoffice-v2): fixed the size of the navbar checkboxes * feat(*): checkpoint * add kyb w/ external request (#541) * feat(examples-kyb): kyb example w/ external request * feat(examples-kyb): kyb example w/ external request * fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns * fix(backoffice-v2): fixed document category initilizing with undefined * revert(backoffice-v2): reverted the changes to useInitialSetCategory * fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller shadcn select form controller placement * fix(backoffice-v2): fixed useWatchDropdownOptions no longer overrides document type to "undefined" * fix(backoffice-v2): fixed document type resetting to "undefined" * fix(*): no longer using hardcoded propertiesSchema * update common lib * feat(workflow-def): enable mulitple active workflows * update pnpm lock * fix(seed.ts): updated seed.ts so information shows and is editable for the example * updated cookie secure to false for testing * added secure proxy to cookie logic * added trust proxy key to app * added trust proxy key to app * added trust proxy key to app * reverted unnecessary changes * reverted unnecessary changes * added secureProxy * removed secured of cookie * updated removed http only * added secured false * remove cookie domaun * fix(*): fixed useUpdateWorkflowByIdMutation previously used the wrong query keys and updated data wrong * fix(*): no longer returning an empty function to appease eslint * fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here * refactor(workflows-service): moved assignIdToDocuments into the repository level for create moved to updateWorkflowRuntimeData for update * fix(setformdata): removed redundant useState * refactor(backoffice-v2): made the parentMachine object have a default of an empty object creating workflows from the api will no longer fail if no parentMachine was specified * revert(backoffice-v2): reverted mistakenly workflow by id schema was removed * refactor(backoffice-v2): replaced default with optional for parentMachine validation --------- Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Daniel Blokh <[email protected]> Co-authored-by: Ilya Rudnev <[email protected]> Co-authored-by: blokh <[email protected]> * feat(workflows-service): added parentMachine id to an instance of update by id --------- Co-authored-by: Matan Yadaev <[email protected]> Co-authored-by: blokh <[email protected]> Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Daniel Blokh <[email protected]> Co-authored-by: Ilya Rudnev <[email protected]> * fix(swagger): dont open swagger in dev/prod (#533) * add timestamps to workflow webhooks (#561) * feat(wrofkflow webhooks): add timestamps to wrokflow webhooks * feat(wh): add timestamps to workflows webhooks \ * fixed tests * fixed tests * fix(docs): update astro (#565) * fix(docs): update astro * fixed tests * refactor(*): GET /workflows per entity instead of query params (#558) * refactor(*): gET /workflows now uses query instead of param for entity id and type * refactor(workflows-service): now using an endpoint per entity instead of using query params * refactor(workflows-service): refactored new endpoints to be DRY * fix(workflows-service): added missing nestjs module dependencies * refactor(workflows-service): removed redundant usage of the @UserData decorator * fix(tests): fixed broken tests * fix(ci): trying to fix tests * fix(workflows-service): added missing prisma service dependency * fix(tests): refactored the endpoint the internal unit test uses --------- Co-authored-by: Alon Peretz <[email protected]> * fix(webhooks): fix resolved ata (#574) * fix(webhooks): fix resolved ata * fixed test * fixed test * refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578) * feat(backoffice-v2): added rotate button to selected image (#576) * feat(backoffice-v2): added a content block to display plugin output (#581) * Updated pluginOutput to pluginsOutput (#582) * feat(backoffice-v2): added a content block to display plugin output * refactor(useentity): replaced instances of pluginOutput with pluginsOutput * Backoffice - Zoom document images (#575) * feat(backoffice-v2): added the ability to zoom, pan, pinch on the selected image * feat(backoffice-v2): now disabling ocr when doc is rotated or transformed * Backoffice - feedback updates (#583) * refactor(backoffice-v2): renamed reject dialog fields * refactor(backoffice-v2): now tasks with a decision are no longer editable * Backoffice - Entity address + map block (#584) * feat(backoffice-v2): added a map cell * feat(map): divided the map block to columns with the address visible * feat(backoffice-v2): now travesing the plugins output for an address for the map component * refactor(backoffice-v2): added jsdocs to getAddressDeep and renamed remaining components instance * Docs site sturcutre changes (#580) * strucute changes * strucute changes * strucute changes * strucute changes * strucute changes * merged with dev * merged with dev * merged with dev * merged with dev * merged with dev * merged with dev * merged with dev * Update simple-kyb-guide.mdx (#586) * Tech/feat/dynamic workflows (#538) * opening branch * Blokh/feat/trans valid interface (#539) * feat(added transformation interface): add transformation and validation interfaces add transformation and validation interfaces for pre-transition and post transition actions * feat(added validator): added validator functionality add validator functionality * feat(fixed minor issues): fixed issues with schema validator fixed issue with schema validator * remove install * updated added types to common and refactored interfaces to abstract classes * fixed common - error with message * feat(ran format): ran format ran format * feat(updated base workers): updated base workfers for transform and validator * feat: support api plugins (#543) * add kyb w/ external request (#541) * feat(examples-kyb): kyb example w/ external request * feat(examples-kyb): kyb example w/ external request * feat: support api plugins * merged with trans and validator * refactor: pr fix * style: cleanup --------- Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: blokh <[email protected]> * workflow core rules cap (#542) * workflow rules draft 1 * event works * feat(wf-rules): basic rules functionality * Blokh/feat/api plugin trans validator (#549) * feat: support api plugins * merged with trans and validator * refactor: pr fix * generate api plugin entity * feat(generate api plugin): generate api plugin * removed unused packages * removed unused packages * feat(merged with dynamic workflow): merged with dynamic workflow --------- Co-authored-by: yairp <[email protected]> * fixed tests * fixed tests * feat(added tests functionality): finalized dynamic api plugin (#557) * feat(added tests functionality): added multiple tests functionality added multiple tests, handled error, tested payload * wrapped describe * feat(finished test logic + code): finished test logic + code finished test logic + code * merged with feature branch * updated pluginsOutput as all extentions output * removed duplicated imports * fixed import * fixed iapiconfig mport * updated test issues * fixed lint issues * Blokh/feat/e 2 e test (#577) * fix(swagger): dont open swagger in dev/prod (#533) * add timestamps to workflow webhooks (#561) * feat(wrofkflow webhooks): add timestamps to wrokflow webhooks * feat(wh): add timestamps to workflows webhooks \ * fixed tests * fixed tests * generate webhook plugin * generate branch for api * fix(docs): update astro (#565) * fix(docs): update astro * fixed tests * merged with pull * finished with webhook plugin * fixed test * refactor(*): GET /workflows per entity instead of query params (#558) * refactor(*): gET /workflows now uses query instead of param for entity id and type * refactor(workflows-service): now using an endpoint per entity instead of using query params * refactor(workflows-service): refactored new endpoints to be DRY * fix(workflows-service): added missing nestjs module dependencies * refactor(workflows-service): removed redundant usage of the @UserData decorator * fix(tests): fixed broken tests * fix(ci): trying to fix tests * fix(workflows-service): added missing prisma service dependency * fix(tests): refactored the endpoint the internal unit test uses --------- Co-authored-by: Alon Peretz <[email protected]> * updated webhook url + logic in e2e * finalize e2e runner test full flow * generated e2e seed workflow * feat(updated seed for e2e test): updated seed for e2e test * fix(webhooks): fix resolved ata (#574) * fix(webhooks): fix resolved ata * fixed test * fixed test * added send-event endpoint * generation of extentions by workflow definition * added return on workflow node-sdk dependency * refactor(backoffice-v2): merged re-submit and reject into a single dialog (#578) * feat(backoffice-v2): added rotate button to selected image (#576) * finalize testing full flow * feat(backoffice-v2): added a content block to display plugin output (#581) --------- Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Omri Levy <[email protected]> --------- Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Omri Levy <[email protected]> * feat(merged with dev): merged with dev * generated fetchObjectPlaceholderValue in api plugin * fixed lint * fixed some tests * ran foramt * removed weird test bug * removed test * merged with dev * added plugin logo * updated test schema * merged with dev * merged with dev * merged with dev * merged with dev * merged with dev * merged with dev --------- Co-authored-by: Yair Perman <[email protected]> Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Omri Levy <[email protected]> * update docs * update docs * adding helm, dev * update docs * update docs * workflows dashboard (#567) * feat: implemented workflows-runtime controller * feat: added workflows-dashboard & implemented workflows table & filters & pagination …
1 parent 51ff7ae commit fd3268c

File tree

7 files changed

+42
-7
lines changed

7 files changed

+42
-7
lines changed
 

‎apps/backoffice-v2/src/pages/Entity/Entity.page.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ export const Entity = () => {
3131
return (
3232
<Card
3333
key={index}
34-
className={`me-4 ${task.className} shadow-[0_4px_4px_0_rgba(174,174,174,0.0625)]`}
34+
className={ctw(
35+
'me-4 shadow-[0_4px_4px_0_rgba(174,174,174,0.0625)]',
36+
task.className,
37+
)}
3538
>
3639
<CardContent
3740
className={ctw('grid gap-2', {

‎apps/backoffice-v2/src/pages/Entity/components/Details/interfaces.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export interface IDetailsProps {
44
value: {
55
id: string;
66
title: string;
7+
subtitle: string;
78
data: Array<{
89
title: string;
910
isEditable: boolean;

‎apps/backoffice-v2/src/pages/Entity/components/Heading/Heading.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ctw } from '../../../../common/utils/ctw/ctw';
44

55
export const Heading: FunctionComponent<IHeadingProps> = ({ id, value }) => (
66
<h2
7-
className={ctw(`ml-1 mt-6 p-2 text-2xl font-bold`, {
7+
className={ctw(`ml-1 mt-6 px-2 text-2xl font-bold`, {
88
'text-2xl': id === 'nested-details-heading',
99
'col-span-full': id === 'header',
1010
})}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React, { FunctionComponent } from 'react';
2+
3+
import { ISubheadingProps } from './interfaces';
4+
import { ctw } from '../../../../common/utils/ctw/ctw';
5+
6+
export const Subheading: FunctionComponent<ISubheadingProps> = ({ value }) => (
7+
<span className={ctw(`ml-[5px] px-2 text-sm font-bold`)}>{value}</span>
8+
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export interface ISubheadingProps {
2+
value: string;
3+
}

‎apps/backoffice-v2/src/pages/Entity/hooks/useEntity/cells.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Heading } from '../../components/Heading/Heading';
2+
import { Subheading } from '../../components/Subheading/Subheading';
23
import { Alert } from '../../components/Alert/Alert';
34
import { Container } from '../../components/Container/Container';
45
import { CallToAction } from '../../components/CallToAction/CallToAction';
@@ -12,6 +13,7 @@ import { BadgeCell } from '../../components/BadgeCell/BadgeCell';
1213

1314
export const cells = {
1415
heading: Heading,
16+
subheading: Subheading,
1517
alert: Alert,
1618
badge: BadgeCell,
1719
container: Container,

‎apps/backoffice-v2/src/pages/Entity/hooks/useTasks/useTasks.tsx

+23-5
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,18 @@ export const useTasks = ({
7777
?.map((key, index, collection) => ({
7878
cells: [
7979
{
80-
id: 'nested-details-heading',
81-
type: 'heading',
82-
value: 'Registry information',
80+
type: 'container',
81+
value: [
82+
{
83+
id: 'nested-details-heading',
84+
type: 'heading',
85+
value: 'Registry Information',
86+
},
87+
{
88+
type: 'subheading',
89+
value: 'Registry-provided data',
90+
},
91+
],
8392
},
8493
{
8594
type: 'details',
@@ -308,8 +317,17 @@ export const useTasks = ({
308317
: {
309318
cells: [
310319
{
311-
type: 'heading',
312-
value: `${toStartCase(entity?.type)} Information`,
320+
type: 'container',
321+
value: [
322+
{
323+
type: 'heading',
324+
value: `${toStartCase(entity?.type)} Information`,
325+
},
326+
{
327+
type: 'subheading',
328+
value: 'User-provided data',
329+
},
330+
],
313331
},
314332
{
315333
id: 'entity-details',

0 commit comments

Comments
 (0)