Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace SecretService and ConfigService with @t3-oss/env-core #293

Merged
merged 7 commits into from
May 17, 2023

Conversation

Omri-Levy
Copy link
Contributor

Description

Now env variables are validated via zod.

Related issues

  • Provide a link to each related issue.

Breaking changes

  • Describe the breaking changes that this pull request introduces.

How these changes were tested

  • Describe the tests that you ran to verify your changes, including devices, operating systems, browsers and versions.

Examples and references

  • Links, screenshots, and other resources related to this change.

Checklist

  • I have read the contribution guidelines of this project
  • I have read the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings and errors
  • New and existing tests pass locally with my changes

@changeset-bot
Copy link

changeset-bot bot commented May 12, 2023

⚠️ No Changeset found

Latest commit: 4cc5f6d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

/*
* clientPrefix is required.
*/
clientPrefix: 'PUBLIC_',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What clientPrefix means in that context?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's for frameworks like NextJS where only env variables prefixed with PUBLIC_ are available client-side.

Copy link
Collaborator

@alonp99 alonp99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! See SALT validation comment

@Omri-Levy Omri-Levy merged commit 51b0c12 into dev May 17, 2023
@Omri-Levy Omri-Levy deleted the omri-levy/feat/zod-env branch May 17, 2023 08:26
alonp99 added a commit that referenced this pull request Jun 19, 2023
* Backoffice case filter (#202)

* chore(version control): init commit for wip pr

* refactor(*): now dynamically rendering the case-management routes

added an api config for companies and now fetching the route data dynamically

* refactor(usekind): added strict false to useKind

* feat(filter id): added filter id to search query so it can be sent to the server on fetch

* fix(workflows-service): added eslint ignore to ts ignore due to helmet module is not resolved

* Change individual view to render tasks as blocks (#213)

* feat(useindividual): created an API which allows configuring content blocks

allows re-ordering of blocks, block cells, and omitting cells

* feat(subject.actions): added a wip execute tasks button

* refactor(subject.actions / header): moved actions avatar to header and replaced the settings button

* refactor(*): the backoffice now looks closer to the figma document

* refactor(*): the backoffice now resembles figma more closely

* feat(backoffice-v2): added re-assign button

* style(prettier): applied format changes

* Workflows service + backoffice authentication (#222)

* Backoffice case filter (#202)

* chore(version control): init commit for wip pr

* refactor(*): now dynamically rendering the case-management routes

added an api config for companies and now fetching the route data dynamically

* refactor(usekind): added strict false to useKind

* feat(filter id): added filter id to search query so it can be sent to the server on fetch

* fix(workflows-service): added eslint ignore to ts ignore due to helmet module is not resolved

* Change individual view to render tasks as blocks (#213)

* feat(useindividual): created an API which allows configuring content blocks

allows re-ordering of blocks, block cells, and omitting cells

* feat(subject.actions): added a wip execute tasks button

* refactor(subject.actions / header): moved actions avatar to header and replaced the settings button

* refactor(*): the backoffice now looks closer to the figma document

* refactor(*): the backoffice now resembles figma more closely

* feat(backoffice-v2): added re-assign button

* style(prettier): applied format changes

* chore(pnpm): updated lock file

* chore(version control): init commit for wip pr

* refactor(backoffice-v2): removed google sign in, sign in auto complete, and password validation

* refactor(*): connected the backoffice get session endpoint to the workflows service

* feat(wf-model): add buisness model

* feat: business module

* update pnpm lock

* update pnpm lock

* feat(*): added session-based authentication

* refactor(*): replaced instances of username with email, made auth work with email

also displaying the operator's email in the backoffice UI

* refactor(auth): replaced cookie-session with express-session

* refactor(express-session): now using rolling true for extending the session

* feat(backoffice-v2): improved session expired behavior and added invalid credentials message

* refactor(workflows-service): requested pr changes - session domain and session secret

* refactor(backoffice-v2): removed apiClient comment per requested in pr review, can now disable poll

passing false to env VITE_POLLING_INTERVAL disables polling, now done via the env schema

* fix(workflows-service): fixed user.controller.test.ts not throwing error on not found

* fix(version control): removed .idea from remote

* revert(@zerodevx/svelte-toast): reverted version upgraded by synk bot from 0.9.3 back to 0.8.2

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat(common): policies schema

* feat(wf-service): webhooks initial (#264)

* WIP - KYB example workflow (#254)

* chore(version control): init commit for wip pr

* feat(*): added a workflow definition for kyb, and updated intent logic

intent logic at the backend and headless example now use intentName from request

* feat(*): can now upload and display a pdf in the example and backoffice

* feat(*): checkpoint

* feat(*): checkpoint

* Alonp/feat/kyb example workflow (#263)

* feat(wf-servuce): business seed

* fix(headless example): adding busniess to the headless example, checking and fixing the api

* feat(kyb): business flow works up to manaual review

* merge withn main

* feat(backoffice-v2): now disabling the approve button once the task has been approved

* fix(backoffice-v2): fixed missing details data, was a bad env schema for booleans

* Alonp/feat/kyb example workflow (#265)

* feat(wf-servuce): business seed

* fix(headless example): adding busniess to the headless example, checking and fixing the api

* feat(kyb): business flow works up to manaual review

* merge withn main

* feat: buseniess list

---------

Co-authored-by: Alon Peretz <[email protected]>

* update db schema

* refactor(headless-example): now rendering start x flow button text based on example type (kyc/kyb)

also added downloadable mock for certificate of incorporation

* update db schema

* feat(useindividual): added reject functionality for a task

* build dev image

* feat(backoffice-v2): added unversioned changes

* build dev image

* build dev image

* build dev image

* build dev image

* build dev image

* refactor(backoffice-v2): disabled buttons that have no functionality

* build dev image

* build dev image

* feat(prisma.schema): added indexes for filtering and ordering ( scoping )

* fix(kyc-example): app sends always fetch business even if running kyc (#272)

* Add`resolvedAt` to `WorkflowRuntimeData` model (#290)

* feat: add resolvedAt column

* feat: fill resolveAt when workflow is in final state

* style: fix classes order

* fix(workflow.service.ts): not mutate `data` argument

* Create enum `WorkflowRuntimeDataStatus` (#291)

* feat: change workflow status to enum

* feat: use prisma generated enum in ts files

* Case filters - server-side (#292)

* chore(version control): init commit for wip pr

* feat(workflows-service): added the filter resource

* chore(*): checkpoint

* feat(workflows-service): added zod schemas for business filters

* feat(*): added an endpoint for creating filters for business

* feat(*): added filters for get by id for businesses and individuals

* fix(filters): name is now unique and is used for the backoffice nav links text

this ensures there can be multiple filters for one entity

* feat(workflows-service): can now create filters based on workflowRuntimeData and definition

now also entity is provided by the controller and not from the client

* style(readme.md): now using the readme.md from dev

* feat(workflows-service): added zod schemas so filter queries may include workflowRuntimeData

* fix(readme.md): fixed readme.md

* fix(readme.md): testing

* fix(readme.md): fixed readme.md

* fix(readme.md): removed mdx from .lintstagedrc

* test

* docs(readme.md): re-added readme.md section that was unintentionally removed

* revert readme.md

* test

* test

* revert(readm.emd): checking

* Filter cases by assignee (#299)

* chore(version control): init commit for wip pr

* feat(workflows-service): added the filter resource

* feat: add a users list internal endpoint

* feat: add a users list internal endpoint to the backoffice

* feat: add a `useUsersQuery`

* feat: fetch users list on page load

* feat: filter cases by assignee

* feat: support filtering by null value

* feat(generate workflowruntime assignnee): generate workflowruntime assignee

* fix: use assigneeId from workflow

* revert: comment

* feat: use assigneeId from entity endpoint

* revert: filter name unique

* fix: rename user workflowRuntimeData relation

---------

Co-authored-by: Omri Levy <[email protected]>
Co-authored-by: blokh <[email protected]>

* Businesses sorting fix (#269)

* fix(sorting): no longer resulting in an empty data when using useSort for businesses

* chore(version control): updated pnpm-lock.yaml

* Feature/remove unnecessary indexes (#277)

* feat(remove unnecessary indexes): removed unnnecessary indexes

* feat(remove unnecessary indexes): removed unnecessary indexes

* feat(prisma schema): removed more unnecessary indexes

* Blokh/feat/assign case (#307)

* feat: add a users list internal endpoint

* feat: add a users list internal endpoint to the backoffice

* feat: add a `useUsersQuery`

* feat: fetch users list on page load

* feat: filter cases by assignee

* feat: support filtering by null value

* feat(generate workflowruntime assignnee): generate workflowruntime assignee

* feat(generate workflowruntime assignnee): generate workflowruntime assignee

* fix: use assigneeId from workflow

* added case state types and enums

* revert: comment

* added dropdown of handling assignment

* generated assign buttons

* created useAssignWorkflowMutation, awaiting for useAssignWorkflow runtime update logic

* finalized list assignee logic with users

* reverted kind to entity

* merged version with dev

* added unassigne logic

* updafixed PR comments, some refactoring

* fixed comments

* fixed more PR comments

---------

Co-authored-by: Matan Yadaev <[email protected]>
Co-authored-by: blokh <[email protected]>

* fix: filter by assignee

* style: auto-fix lint issues

* Add API key (#308)

* feat: add key auth guard

* feat: add api key to dotnev file

* feat: add example endpoint

* style: simplify

* Backoffice form blocks (#312)

* feat(backoffice-v2): added an initial form for details cells

* feat(backoffice-v2): can now decide if a form field is editable or not

* feat(backoffice-v2): created a form component

* fix(*): pnpm-lock.yaml

* fix(*): pnpm-lock.yaml

* fix(version control): re-added pnpm-lock.yaml

* fix(*): pnpm-lock.yaml

* fix(*): test

* pnpm-lock.yaml

* API versioning (#305)

* feat: add api versioning

* fix: auth middleware logic to support api versioning

* fix: url in .env.example

* revert: remove unused import

* add context scehma to seed, started api endpoint (#295)

* add context scehma to seed, started api endpoint

* add context scehma to seed, started api endpoint

* add context scehma to seed, started api endpoint

* feat(run workflow): added validation

* feat(run validation): added formats

* try

* try

* fix(bad merge): fix bad merge

gst

* CI FIX

* Blokh/feat/implment-s-3-filemanager (#284)

* feat: added S3 client

added S3 client.

* feat: removed unnecessary variables

* feat: merged with dev

* update migration names and timeline

* refactor(fixed pr comments): fixed pr comments

* updated is_prefix to use boolean

* update migration names and timeline

* updated after PR comments, refactored names, tested logics

* fixed error throwing of aws

* merged with dev

* removed unnecessary logs

* updated private methods to be in the correct format

* removed unnecessary export

* Blokh/feat/File Service + File Provider Interface (#282)

* process to process env to be more explicit

* generated interface for file proviers. finalized S3 provier and http provider> TBD

* added error with name to common

* update common version

* generate local mananager service file provider

* generate file service logic

* generate first streamable handling process

* feat(file service): finalized file service provider and stracture

* finalized file service module

* finalized file service module

* finalize file service - began working ontest

* finalized file service via streamingm

* finished the upload logic for local file manager, tested everything, updated package json

---------

Co-authored-by: blokh <[email protected]>

* added more fixes

---------

Co-authored-by: blokh <[email protected]>

* CI FIX

* Replace SecretService and ConfigService with @t3-oss/env-core (#293)

* feat(workflows-service): replaced SecretService and ConfigService with @t3-oss/env-core

now validates env via zod and validation is done on project entry

* test(workflows-service): checking if validating env fails ci

* revert(workflows-service): no longer validating env on build so ci doesn't fail

* feat(workflows-service): updated env schema so BYCRPT_SALT can also be a string

* refactor(workflows-service): removed empty files

* fix(ci): trying to fix ci

* refactor(*): added v1 into the url of places refrencing the workflows service api

* wf-service: update seed

* feat(documents): add documents properties schema

* fix(types): global types

* wf-service: update seed

* Add Sentry to the workflows service (#329)

* feat: capture exceptions with sentry

* feat: upload sourcemaps to sentry on build

* feat: adjust release name for dev env

* feat: feat use t3 env

* fix(pr comments): fix condition

* wf-service: update seed

* wf-service: update seed

* wf-service: update seed

* feat(documents): add documents properties schema (#331)

* feat(documents): add documents properties schema

* fix(types): global types

* wf-service: update seed

* fix(pr comments): fix condition

* wf-service: update seed

* wf-service: update seed

* wf-service: update seed

* wf-service: update seed

* wf-service: update seed

* fix dev

* Backoffice UI fixes (#335)

* feat(backoffice-v2): task blocks now use shadcn's card component

* refactor(backoffice-v2): synced the backoffice's design with the latest figma document

* feat(backoffice-v2): added space to icons and made them smaller

* feat(backoffice-v2): replaced global actions with shadcn - disabled the buttons for now

* feat(backoffice-v2): improved form ui - labels are now bold, legend is now bigger

* feat(backoffice-v2): replaced save button from daisyui to shadcn

* refactor(backoffice-v2): assign me button is now primary instead of outline

* feat(backoffice-v2): reduced height of actions component

* feat(backoffice-v2): buttons are now gray when disabled

* refactor(backoffice-v2): renamed options dropdown to reject, renamed dropdown items

* refactor(backoffice-v2): made changes to the ui based on feedback

---------

Co-authored-by: Alon Peretz <[email protected]>

* WIP - Build forms via server data (#324)

* chore(version control): init commit for wip pr

* refactor(seed.ts): replaced workflow id and filter name for businesses

* fix(seed.ts): added missing states which were in 'events' but not in 'states'

* feat(*): checkpoint

* refactor(useindividuals - backoffice-v2): document id is now category + type + issuer.country

* fix(backoffice-v2): sort input width fix and filter z-index overlap fix

* fix(backoffice-v2): fixed initial page navigation + initial entity in the entity list

* Backoffice decision details section (#339)

* chore(version control): init commit for wip pr

* refactor(seed.ts): replaced workflow id and filter name for businesses

* fix(seed.ts): added missing states which were in 'events' but not in 'states'

* feat(*): checkpoint

* refactor(useindividuals - backoffice-v2): document id is now category + type + issuer.country

* fix(backoffice-v2): sort input width fix and filter z-index overlap fix

* fix(backoffice-v2): fixed initial page navigation + initial entity in the entity list

* feat(backoffice-v2): now displaying the document decision

* fix debug (sentry regression)

* Blokh/feat/persist file document and refactor worfklow service (#336)

* began processing documents from resource using file service

* refactored logic of workflow service + added file persistence logic

* refactored logic of workflow service + added file persistence logic

* added prefix process logic

* removed unnecessary logs

* added file repository to be be provbided for storage service

* fixed internal storage logic

* fixed PR comments

* fixed typo

* feat: last commit before up

* feat: fixed ui issues, updated file uploads

* fixed documents in S3

* removed console

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* Yairp/feat/call webhooks (#314)

* refactor: fix tests

* refactor: add context change event handling

* refactor: call webhook only when changes exist (excluding added and removed)

* refactor: switch to nest event emitter

* refactor: small fixes

* ci fix

* ci fix

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(files-provider): lint fixes

* ci fix

* ci fix

* (CI): adding pnpm install

* (CI): skip jwt test (not in use)

* (CI): remove sentry upload sourcemaps from images publish action

* (CI): skip jwt test (not in use)

* (CI): skip jwt test (not in use)

* WIP - Validate editable fields on server side (#340)

* chore(version control): init commit for wip pr

* fix(*): made a temporary workaround for editing form fields

* feat(*): now validating contextSchema and propertiesSchema

validates both context and each document

* feat(backoffice-v2): now can only reject/approve if case is assigned to you

* feat(backoffice-v2): can now approve/reject on a per document basis

* merged w/ dev

* fix(tests): fixed failing tests

---------

Co-authored-by: Alon Peretz <[email protected]>

* fix(assginee): fix assginee after update workflow runtome addtioans (#349)

* chore(version control): init commit for wip pr

* fix(*): made a temporary workaround for editing form fields

* feat(*): now validating contextSchema and propertiesSchema

validates both context and each document

* feat(backoffice-v2): now can only reject/approve if case is assigned to you

* feat(backoffice-v2): can now approve/reject on a per document basis

* merged w/ dev

* fix(assginee): fix assginee after update workflow runtome addtioans

---------

Co-authored-by: Omri Levy <[email protected]>

* fixed entity validation issue

* Approve now resets rejectionReason + now actions are disabled again when not assigned (#350)

* feat(useindividuals): now approving a document does not retain rejectionReason and revisionReason

* fixed entity validation issue

* fix(*): now setting rejectionReason to null instead of omitting it due to lodash merge

* revert(backoffice-v2): re-enabled reject/approve disabled when not assigned to case

---------

Co-authored-by: Alon Peretz <[email protected]>

* fixed status not present pn webhook sending attempts

* Revision state (#356)

* chore(version control): init commit for wip pr

* feat(backoffice-v2): re-submit now updates the context revisionReason and status to revision

* feat(backoffice-v2): revisionReason select options are now made via an enum from the contextSchema

---------

Co-authored-by: Alon Peretz <[email protected]>

* Update active workflows (#353)

* began processing documents from resource using file service

* refactored logic of workflow service + added file persistence logic

* refactored logic of workflow service + added file persistence logic

* added prefix process logic

* removed unnecessary logs

* added file repository to be be provbided for storage service

* fixed internal storage logic

* refactor: move getDocumentId to utils

* fix: improve context json schema

* style: automatic style fix

* feat: install lodash-es

* feat: implement getActiveWorkflowByEntity repository method

* feat: updatedDocuments tests

* feat: updatedDocuments implementation

* feat: change createWorkflowRuntime to createOrUpdateWorkflowRuntime

* fix: conflicts

* refactor: make updateDocuments more readable

* fix: use lodash instead of lodash-es

* fix: make update workflow work

* fix: tests

* fix: pr comments

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Daniel Blokh <[email protected]>

* Fix default filters not checked on mount (#361)

* fix(backoffice-v2): fixed initial filter select on sign in

* fix(backoffice-v2): the default filter is now checked on mount -  was only in url and was applied

* fix(backoffice-v2): fixed sort by createdAt

now createdAt uses the workflow's creation date - now the sorting is updated to reflect that

* Remove entity type filter (#365)

* feat: remove filter by entity type

* feat(seed): fixed seed and removed approval state filter

---------

Co-authored-by: Alon Peretz <[email protected]>

* Yairp/feat/call webhooks part2 (#346)

* refactor: improve tests and injections

* refactor: support case insensitive doc id + imp tests

* refactor: cleanup

* fixed tests

---------

Co-authored-by: Alon Peretz <[email protected]>

* (hotfix): add httpmodule, null check for decision

* (hotfix): add httpmodule, null check for decision

* refactor(backoffice-v2 sign-in): replaced the old sign in form with shadcn's (#366)

* fix(backoffice-v2): businesses can now search based on companyName instead of firstName (#367)

can also search by registrationNumber, legalForm, and countryOfIncorporation

* Blokh/fix/file service exceptions (#363)

* fix(file service exception fixing): handle exceptions over file copry

added logic of handling exceptions and reutnring "normalized message "

* removed local files

* added usage of tmpdir

* fix: merged with dev

* removed image

* updated stracture of workflow file handling

---------

Co-authored-by: blokh <[email protected]>

* feat(update-context): update workflow rt status if all tasks completed (#369)

* fix(backoffice-v2): improved behavior on selecting an initial entity, especially after sign in (#370)

* Fix backoffice toast messages (#374)

* feat: add i18next type definitions

* feat: correct messages on case and document actions

* feat: correct messages on case rejection/resubmission

* feat: correct messages on case assignment

* feat: remove leftovers

* fix: pr comments

* feat: add space to the save button (#377)

* fix: improve document form spacing

* add backoffice markdown

* fix(backoffice-v2): no longer conditionally rendering filters - now updating initial values (#372)

Co-authored-by: Alon Peretz <[email protected]>

* add backoffice markdown

* Backoffice workflow status filter with default (#378)

* feat(*): wip workflow status filter

* feat(*): added workflow status as a filter to the backoffice and active as default

---------

Co-authored-by: Alon Peretz <[email protected]>

* Backoffice minor changes (#381)

* fix(backoffice-v2): no longer displaying an empty name for businesses in actions

* refactor(backoffice-v2): temporarily commented out approve/reject keyboard shortcuts

should be implemented differently in the near future

* refactor(backoffice-v2): moved entity data block to the bottom

* refactor(backoffice-v2): added space to the entity data block

* feat(backoffice-v2): added padding to action buttons to move them from the browser scrollbar

---------

Co-authored-by: Alon Peretz <[email protected]>

* Fix workflow upsert BL (#385)

* feat: update tests

* feat: update business logic

---------

Co-authored-by: Alon Peretz <[email protected]>

* feat: disable action buttons of documents with decision (#387)

Co-authored-by: Alon Peretz <[email protected]>

* Blokh/fix/local file path storage (#388)

* fix(file service): filexed local file service to file path config

* fix: ran format

* fixed image showing

---------

Co-authored-by: blokh <[email protected]>

* Update back-office.md (#391)

* add backoffice markdown

* add backoffice markdown

* duplicate images fix (#399)

* Blokh/feat/show assign UI  (#390)

* added isDesitionComponnt

* feat(added indecation colors over status): added indecation colors over status

---------

Co-authored-by: blokh <[email protected]>

* Hide case action buttons configuration (#400)

* feat: add workflowLevelResolution config property

* feat: add showResolutionButtons prop to Subject.Actions

* feat: pass showResolutionButtons depends on the workflowLevelResolution

* feat(backoffice): add favicon

* feat(package.json): now using wait-on so the backoffice doesn't go up before the server (#401)

* added backoffice + api example script to package.json

* feat(backoffice-v2): added optimistic updates to a workflow's context - handles form editing (#407)

* fix sending files data back to the server

* feat(added deafault node version): added default node version (#410)

* feat(added deafault node version): added default node version

* added engines and nvmrc

* added revision coloring

* added minimum node and pnpm version to readme

* Update README.md

---------

Co-authored-by: blokh <[email protected]>
Co-authored-by: Alon Peretz <[email protected]>

* Replace form component and move cell components (#414)

* refactor(backoffice-v2): replaced the old form component with the new shadcn one

* refactor(backoffice-v2): moved the task cell components to different files

* fix(backoffice-v2): added a key so tasks change when changing an entity

* fix: ocr toast

* fix(backoffice-v2): added missing key prop to form fields

* fix(backoffice-v2): fixed task block disabled actions

* Fix Sentry source maps upload (#375)

* ci test

* ci test

* ci test

* ci test

* ci test

* fix: sentry sourcemaps

* Blokh/feat/seed files (#411)

* feat(added persistence of images to seed): adde persistence of images to seed and handling url im

added persistence of images to seed and handling of images urls in storage controller

* removed unnecessary changes

---------

Co-authored-by: blokh <[email protected]>

* Add Windows to the CI (#416)

* ci test

* ci test

* ci test

* fix: ci test

* refactor(backoffice-v2): change agent email in the bottom left to first name + last name (#430)

* refactor(backoffice-v2): change agent email in the bottom left to first name + last name

* refactor(backoffice-v2): change last name to template format

* feat(backoffice-v2): added a root error component with a link back to the home page (#431)

* Populate individuals context and context documents in seed (#434)

* feat(seed): added context to end users so it will be displayed in the ui

* feat(backoffice-v2): added a fallback UI for when no tasks were built by context

* revert(seed): commented out individuals filter like it was before

* Fix disk file uploads (#438)

* fix(workflows-service): fixed wrong destination on diskStorage

* fix(workflows-service): fixed de-sync between external uploadFile and internal

affected the fileNameOnDisk property

* Alert on webhook failure (#433)

* chore(workflows-service): alert on webhook request failure

* style: fix eslint issues

* Add an endpoint to receive a workflow's context (#432)

* feat(workflows-service): added an endpoint to receive a workflow runtime data's context

* feat(workflows-service): added api key auth to GET /external/workflows/:id/context

* Session guard by default (#440)

* feat: set default guard

* chore: remove unused

* chore: support public endpoints

* feat: key-auth guard override session-auth

* Blokh/feat/run docker as dumbinit (#442)

* feat(run  nodejust as dumb-init): run  nodejs as dumb-init

* feat(added dumb-init to init compose): added dumb-init to docker compose

* updated placement of dumb-init installation

---------

Co-authored-by: blokh <[email protected]>

* Blokh/feat/run docker as dumbinit (#443)

* feat(run  nodejust as dumb-init): run  nodejs as dumb-init

* feat(added dumb-init to init compose): added dumb-init to docker compose

* updated placement of dumb-init installation

* added apt-get update

* updated dumb-init installtion script

* Update Dockerfile

---------

Co-authored-by: blokh <[email protected]>

* fix: updated access to protected endpoints without user to return 401 instead of 403

* fix session cookies (#439)

* fix(auth): cookie-sssions

* fixed logout

* fixed logout

* fixed logout

* fixed logout

* fixed logout

* Assignment polling (#445)

* feat(seed): added context to end users so it will be displayed in the ui

* feat(backoffice-v2): added a fallback UI for when no tasks were built by context

* revert(seed): commented out individuals filter like it was before

* feat(backoffice-v2): added inline refetch interval to end-users and users

makes sure the end-users list asignee gets frequently updated

* feat(backoffice-v2): added an env var for assignment polling and fixed images seed (backend)

---------

Co-authored-by: Alon Peretz <[email protected]>

* Print backoffice validation and env validation errors in the terminal (#436)

* feat(backoffice-v2): validation and env validation messages are now visible in the terminal

* refactor(vite-plugin-terminal): vite-plugin-terminal strip false and moved to non-dev dependencies

* fix: stop using deprecated faker methods

* CD: Run migrations (#454)

* feat: run migrations before serving prod

* chore: install dumb-init in the builder image

* cors settings

* Upgrade node verion from 16 to 18.12.1 in CI (#472)

* Add logs (#452)

* chore: add logs

* chore: add logs

* feat: add request logs

---------

Co-authored-by: Alon Peretz <[email protected]>

* Backoffice structure (#415)

* refactor(backoffice-v2): creared an entities directory and moved related logic to it

* refactor(backoffice-v2): moved individuals zod schemas to the individuals directory

* refactor(backoffice-v2): renamed instances of individual or end-user to entity

* refactor(backoffice-v2): renamed individuals route to entities

also renamed instances of subjects and subject to cases/case accordingly

* refactor(backoffice-v2): wIP - created an auth directory and moved related logic to it

currently breaks sign out

* refactor(backoffice-v2): moved users related logic to a users directory

* refactor(backoffice-v2): moved users zod schema to the users directory

* refactor(backoffice-v2): moved businesses related logic to a businesses directory

* refactor(backoffice-v2): moved workflows related logic into a workflows directory

* refactor(backoffice-v2): moved storage related logic into a storage directory

* refactor(backoffice-v2): moved filters related logic to a filters directory

* refactor(backoffice-v2): moved mock service worker logic to each respective domain (workflows etc)

* refactor(backoffice-v2): moved logic unrelated to domains or routes into a common directory

moved all resources like entities and workflows into a domains directory

* fix(*): fixed wrong backoffice imports and missing validation schemas in backend

* Blokh/feat/create user endpoint (#457)

* 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

---------

Co-authored-by: blokh <[email protected]>

* fix: remove cookie from headers log

* refactor(backoffice-v2): removed animation from entity's name in actions component (#477)

* cors settings

* Fix backoffice breaking on refresh and on sign in / sign out (#481)

* fix(backoffice-v2): improved app redirect and navigation behavior

* chore(*): merged dev into local branch

* fix(backoffice-v2): wip fixing sign out re-renders (#489)

* Adding document properties schemas (#459)

* feat(document-schemas): add document schemas for ghana

* feat(docs): adding docs schema

* fix(fix-comments): fix CR comments

* making registrationNumber optional

* **Test in deployment first** Backoffice - migrate `@tanstack/react-router`  to `react-router-dom` (#486)

* 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

* 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

* Dynamic webhook config (#501)

* feat(dynamic-webhooks): add the ablity to overide workflow def webhook config with runtome config

* adding logs

* fixed tests

* fixed tests

* fixed tests

* 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

* 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

* 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 useInitialSe…
MihirMandviwala pushed a commit that referenced this pull request Feb 12, 2024
* feat(workflows-service): replaced SecretService and ConfigService with @t3-oss/env-core

now validates env via zod and validation is done on project entry

* test(workflows-service): checking if validating env fails ci

* revert(workflows-service): no longer validating env on build so ci doesn't fail

* feat(workflows-service): updated env schema so BYCRPT_SALT can also be a string

* refactor(workflows-service): removed empty files

* fix(ci): trying to fix ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants