diff --git a/apps/backoffice-v2/src/common/components/atoms/icons/index.tsx b/apps/backoffice-v2/src/common/components/atoms/icons/index.tsx index 6da20e5e68..331c8132bf 100644 --- a/apps/backoffice-v2/src/common/components/atoms/icons/index.tsx +++ b/apps/backoffice-v2/src/common/components/atoms/icons/index.tsx @@ -454,3 +454,46 @@ export const PhotoSvg = (props: SVGProps) => { ); }; + +export const NoCasesSvg = (props: SVGProps) => ( + + + + + + + + + + +); diff --git a/apps/backoffice-v2/src/pages/Entities/Entities.page.tsx b/apps/backoffice-v2/src/pages/Entities/Entities.page.tsx index a41e5db43b..fa9d5dca4a 100644 --- a/apps/backoffice-v2/src/pages/Entities/Entities.page.tsx +++ b/apps/backoffice-v2/src/pages/Entities/Entities.page.tsx @@ -5,6 +5,7 @@ import { useEntities } from './hooks/useEntities/useEntities'; import { Case } from '../Entity/components/Case/Case'; import { MotionScrollArea } from '../../common/components/molecules/MotionScrollArea/MotionScrollArea'; import { FunctionComponent } from 'react'; +import { NoCasesSvg } from '../../common/components/atoms/icons'; export const Entities: FunctionComponent = () => { const { @@ -70,8 +71,35 @@ export const Entities: FunctionComponent = () => { )} {Array.isArray(cases) && !cases.length && !isLoading ? ( -
-

No cases were found

+
+
+
+ +
+ +
+

No cases found

+ +
+

+ It looks like there aren't any cases in your queue right now. +

+ +
+ What can you do now? + +
    +
  • Make sure to refresh or check back often for new cases.
  • +
  • Ensure that your filters aren't too narrow.
  • +
  • + If you suspect a technical issue, reach out to your technical team to diagnose + the issue. +
  • +
+
+
+
+
) : ( diff --git a/services/workflows-service/src/events/document-changed-webhook-caller.ts b/services/workflows-service/src/events/document-changed-webhook-caller.ts index db1fe4bdd9..94f9af2872 100644 --- a/services/workflows-service/src/events/document-changed-webhook-caller.ts +++ b/services/workflows-service/src/events/document-changed-webhook-caller.ts @@ -80,6 +80,7 @@ export class DocumentChangedWebhookCaller { this.configService.get('NODE_ENV'), this.configService.get('WEBHOOK_URL'), this.configService.get('WEBHOOK_SECRET'), + 'workflow.context.document.changed', ); if (!url) { diff --git a/services/workflows-service/src/events/get-webhook-info.ts b/services/workflows-service/src/events/get-webhook-info.ts index 2510225f7f..6c1c0acbc9 100644 --- a/services/workflows-service/src/events/get-webhook-info.ts +++ b/services/workflows-service/src/events/get-webhook-info.ts @@ -8,10 +8,11 @@ export const getWebhookInfo = ( NODE_ENV: string | undefined, WEBHOOK_URL: string | undefined, WEBHOOK_SECRET: string | undefined, + event: string, ) => { const id = randomUUID(); const environment = NODE_ENV; - const url = getDynamicWebhookUrl(config, 'workflow.context.document.changed') || WEBHOOK_URL; + const url = getDynamicWebhookUrl(config, event) || WEBHOOK_URL; const authSecret = WEBHOOK_SECRET; return { id, environment, url, authSecret, apiVersion: packageJson.version }; diff --git a/services/workflows-service/src/events/workflow-completed-webhook-caller.ts b/services/workflows-service/src/events/workflow-completed-webhook-caller.ts index 64fbcc61ad..e95990bad9 100644 --- a/services/workflows-service/src/events/workflow-completed-webhook-caller.ts +++ b/services/workflows-service/src/events/workflow-completed-webhook-caller.ts @@ -47,6 +47,7 @@ export class WorkflowCompletedWebhookCaller { this.configService.get('NODE_ENV'), this.configService.get('WEBHOOK_URL'), this.configService.get('WEBHOOK_SECRET'), + 'workflow.completed', ); if (!url) { diff --git a/services/workflows-service/src/events/workflow-state-changed-webhook-caller.ts b/services/workflows-service/src/events/workflow-state-changed-webhook-caller.ts index c3dd3f7287..896a8fd5ab 100644 --- a/services/workflows-service/src/events/workflow-state-changed-webhook-caller.ts +++ b/services/workflows-service/src/events/workflow-state-changed-webhook-caller.ts @@ -46,6 +46,7 @@ export class WorkflowStateChangedWebhookCaller { this.configService.get('NODE_ENV'), this.configService.get('WEBHOOK_URL'), this.configService.get('WEBHOOK_SECRET'), + 'workflow.state.changed', ); if (!url) {