From 3a464eeb8ef3f38f94462bea93f79294919e7a33 Mon Sep 17 00:00:00 2001 From: Kilian Boute Date: Tue, 23 Jun 2026 13:46:54 +0000 Subject: [PATCH] feat(hub): add case-share email template + env wiring Adds CASE_SHARE_TEMPLATE/CASE_SHARE_TITLE env on hub-api (driven by email.templates.caseShare/caseShareTitle), the matching values defaults, and the share_case custom-layout template (html/txt) so the case-share invitation renders with its dedicated white-label template. --- .../custom-layout/templates/share_case.html | 418 ++++++++++++++++++ .../custom-layout/templates/share_case.txt | 21 + .../hub/templates/kerberos-hub/hub-api.yaml | 4 + charts/hub/values.yaml | 2 + 4 files changed, 445 insertions(+) create mode 100644 charts/hub/custom-layout/templates/share_case.html create mode 100644 charts/hub/custom-layout/templates/share_case.txt diff --git a/charts/hub/custom-layout/templates/share_case.html b/charts/hub/custom-layout/templates/share_case.html new file mode 100644 index 0000000..cfd790d --- /dev/null +++ b/charts/hub/custom-layout/templates/share_case.html @@ -0,0 +1,418 @@ + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Kerberos.io +

Kerberos.io

+
+ +

{{tab1_title}}

+
+
+ +

{{tab2_title}}

+
+
+
+ + + + +
+ + + + + + + + +
+

A case has been shared with you

+

{{user}} shared a case with you

+
+
+ + + + +
+ + + + + + + + +
+

Open the shared case

+

{{user}} has shared a case with you. Click the button below to open it. You'll be asked to request a one-time verification code from the share page itself.

This link will expire in {{expiry}}.

+ + + +

Open case ->

+
+
+
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+
+ + diff --git a/charts/hub/custom-layout/templates/share_case.txt b/charts/hub/custom-layout/templates/share_case.txt new file mode 100644 index 0000000..ce660dc --- /dev/null +++ b/charts/hub/custom-layout/templates/share_case.txt @@ -0,0 +1,21 @@ +Kerberos.io +------------ + +A case has been shared with you +{{user}} shared a case with you + +Open the shared case +{{user}} has shared a case with you. Open the link below to access it — you'll be asked to request a one-time verification code from the share page. +{{url}} + +This link will expire in {{expiry}}. + +Get in touch +------------ +support@kerberos.io +9000 Ghent, BE +https://kerberos.io + +About Kerberos +------------ +Welcome to the revolutionary video analytics and video management platform. Open, modular, and extensible for everyone, anywhere. diff --git a/charts/hub/templates/kerberos-hub/hub-api.yaml b/charts/hub/templates/kerberos-hub/hub-api.yaml index 77140b8..43997b2 100644 --- a/charts/hub/templates/kerberos-hub/hub-api.yaml +++ b/charts/hub/templates/kerberos-hub/hub-api.yaml @@ -353,6 +353,10 @@ spec: value: "{{ .Values.email.templates.share }}" - name: SHARE_TITLE value: "{{ .Values.email.templates.shareTitle }}" + - name: CASE_SHARE_TEMPLATE + value: "{{ .Values.email.templates.caseShare }}" + - name: CASE_SHARE_TITLE + value: "{{ .Values.email.templates.caseShareTitle }}" - name: ASSIGN_TASK_TEMPLATE value: "{{ .Values.email.templates.assignTask }}" - name: ASSIGN_TASK_TITLE diff --git a/charts/hub/values.yaml b/charts/hub/values.yaml index 216313b..6d95f3a 100644 --- a/charts/hub/values.yaml +++ b/charts/hub/values.yaml @@ -1119,6 +1119,8 @@ email: forgotTitle: "Password reset Kerberos Hub. You forgot your password" share: "share" shareTitle: "[Action] You received a recording from Kerberos Hub" + caseShare: "share_case" + caseShareTitle: "[Action] A case has been shared with you on Kerberos Hub" assignTask: "assign_task" assignTaskTitle: "[Action] You've been assigned to a task" detection: "detection"