Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat(integrations): add generic outgoing webhooks

Tin89cce03c0f14
diff --git a/apps/api/src/generic-webhook-integration/index.ts b/apps/api/src/generic-webhook-integration/index.ts
new file mode 100644
index 000000000..609e60e76
--- /dev/null
+++ b/apps/api/src/generic-webhook-integration/index.ts
@@ -0,0 +1,309 @@
+import { and, eq } from "drizzle-orm";
+import { Hono } from "hono";
+import { HTTPException } from "hono/http-exception";
+import { describeRoute, resolver, validator } from "hono-openapi";
+import * as v from "valibot";
+import db from "../database";
+import { integrationTable } from "../database/schema";
+import {
+ defaultGenericWebhookEvents,
+ type GenericWebhookConfig,
+ normalizeGenericWebhookConfig,
+ validateGenericWebhookConfig,
+} from "../plugins/generic-webhook/config";
+import { genericWebhookIntegrationSchema } from "../schemas";
+import { workspaceAccess } from "../utils/workspace-access-middleware";
+
+const genericWebhookIntegration = new Hono<{
+ Variables: {
+ userId: string;
+ workspaceId: string;
+ apiKey?: {
+ id: string;
+ userId: string;
+ enabled: boolean;
+ };
+ };
+}>();
+
+function maskSecret(value: string | undefined): string | null {
+ if (!value) return null;
+ return value.length > 8 ? `${value.slice(0, 4)}…${value.slice(-4)}` : "••••";
+}
+
+function toResponse(integration: {
+ id: string;
+ projectId: string;
+ config: string;
+ isActive: boolean | null;
+ createdAt: Date;
+ updatedAt: Date;
+}) {
+ const config = normalizeGenericWebhookConfig(
+ JSON.parse(integration.config) as GenericWebhookConfig,
+ );
+
+ return {
+ id: integration.id,
+ projectId: integration.projectId,
+ webhookConfigured: Boolean(config.webhookUrl),
+ webhookUrl: config.webhookUrl,
+ secretConfigured: Boolean(config.secret),
+ maskedSecret: maskSecret(config.secret),
+ events: {
+ ...defaultGenericWebhookEvents,
+ ...(config.events ?? {}),
+ },
+ isActive: integration.isActive,
+ createdAt: integration.createdAt,
+ updatedAt: integration.updatedAt,
+ };
+}
+
+async function getGenericWebhookIntegration(projectId: string) {
+ const integration = await db.query.integrationTable.findFirst({
+ where: and(
+ eq(integrationTable.projectId, projectId),
+ eq(integrationTable.type, "generic-webhook"),
+ ),
+ });
+
+ if (!integration) {
+ return null;
+ }
+
+ return toResponse(integration);
+}
+
+const genericWebhookEventsSchema = v.object({
+ taskCreated: v.optional(v.boolean()),
+ taskStatusChanged: v.optional(v.boolean()),
+ taskPriorityChanged: v.optional(v.boolean()),
+ taskTitleChanged: v.optional(v.boolean()),
+ taskDescriptionChanged: v.optional(v.boolean()),
+ taskCommentCreated: v.optional(v.boolean()),
+});
+
+genericWebhookIntegration
+ .get(
+ "/project/:projectId",
+ describeRoute({
+ operationId: "getGenericWebhookIntegration",
+ tags: ["Generic Webhook"],
+ description: "Get generic outgoing webhook integration for a project",
+ responses: {
+ 200: {
+ description: "Generic webhook integration details",
+ content: {
+ "application/json": {
+ schema: resolver(genericWebhookIntegrationSchema),
+ },
+ },
+ },
+ },
+ }),
+ validator("param", v.object({ projectId: v.string() })),
+ workspaceAccess.fromProject("projectId"),
+ async (c) => {
+ const { projectId } = c.req.valid("param");
+ return c.json(await getGenericWebhookIntegration(projectId));
+ },
+ )
+ .post(
+ "/project/:projectId",
+ describeRoute({
+ operationId: "createGenericWebhookIntegration",
+ tags: ["Generic Webhook"],
+ description: "Create or replace a generic outgoing webhook integration",
+ responses: {
+ 200: {
+ description: "Generic webhook integration created successfully",
+ content: {
+ "application/json": {
+ schema: resolver(genericWebhookIntegrationSchema),
+ },
+ },
+ },
+ },
+ }),
+ validator("param", v.object({ projectId: v.string() })),
+ validator(
+ "json",
+ v.object({
+ webhookUrl: v.pipe(v.string(), v.minLength(1)),
+ secret: v.optional(v.string()),
+ events: v.optional(genericWebhookEventsSchema),
+ }),
+ ),
+ workspaceAccess.fromProject("projectId"),
+ async (c) => {
+ const { projectId } = c.req.valid("param");
+ const body = c.req.valid("json");
+
+ const config = normalizeGenericWebhookConfig({
+ webhookUrl: body.webhookUrl,
+ secret: body.secret,
+ events: body.events,
+ });
+
+ const validation = await validateGenericWebhookConfig(config);
+ if (!validation.valid) {
+ throw new HTTPException(400, {
+ message: validation.errors?.join(", ") ?? "Invalid config",
+ });
+ }
+
+ const existing = await db.query.integrationTable.findFirst({
+ where: and(
+ eq(integrationTable.projectId, projectId),
+ eq(integrationTable.type, "generic-webhook"),
+ ),
+ });
+
+ if (existing) {
+ await db
+ .update(integrationTable)
+ .set({
+ config: JSON.stringify(config),
+ isActive: true,
+ updatedAt: new Date(),
+ })
+ .where(eq(integrationTable.id, existing.id));
+ } else {
+ await db.insert(integrationTable).values({
+ projectId,
+ type: "generic-webhook",
+ config: JSON.stringify(config),
+ isActive: true,
+ });
+ }
+
+ return c.json(await getGenericWebhookIntegration(projectId));
+ },
+ )
+ .patch(
+ "/project/:projectId",
+ describeRoute({
+ operationId: "updateGenericWebhookIntegration",
+ tags: ["Generic Webhook"],
+ description: "Update generic outgoing webhook settings",
+ responses: {
+ 200: {
+ description: "Generic webhook integration updated successfully",
+ content: {
+ "application/json": {
+ schema: resolver(genericWebhookIntegrationSchema),
+ },
+ },
+ },
+ },
+ }),
+ validator("param", v.object({ projectId: v.string() })),
+ validator(
+ "json",
+ v.object({
+ webhookUrl: v.optional(v.string()),
+ secret: v.optional(v.nullable(v.string())),
+ isActive: v.optional(v.boolean()),
+ events: v.optional(genericWebhookEventsSchema),
+ }),
+ ),
+ workspaceAccess.fromProject("projectId"),
+ async (c) => {
+ const { projectId } = c.req.valid("param");
+ const body = c.req.valid("json");
+
+ const existing = await db.query.integrationTable.findFirst({
+ where: and(
+ eq(integrationTable.projectId, projectId),
+ eq(integrationTable.type, "generic-webhook"),
+ ),
+ });
+
+ if (!existing) {
+ throw new HTTPException(404, {
+ message: "Generic webhook integration not found",
+ });
+ }
+
+ const currentConfig = normalizeGenericWebhookConfig(
+ JSON.parse(existing.config) as GenericWebhookConfig,
+ );
+ const nextConfig = normalizeGenericWebhookConfig({
+ webhookUrl: body.webhookUrl?.trim() || currentConfig.webhookUrl,
+ secret:
+ body.secret === undefined
+ ? currentConfig.secret
+ : (body.secret ?? undefined),
+ events: {
+ ...(currentConfig.events ?? {}),
+ ...(body.events ?? {}),
+ },
+ });
+
+ const validation = await validateGenericWebhookConfig(nextConfig);
+ if (!validation.valid) {
+ throw new HTTPException(400, {
+ message: validation.errors?.join(", ") ?? "Invalid config",
+ });
+ }
+
+ await db
+ .update(integrationTable)
+ .set({
+ config: JSON.stringify(nextConfig),
+ isActive:
+ body.isActive !== undefined
+ ? body.isActive
+ : (existing.isActive ?? true),
+ updatedAt: new Date(),
+ })
+ .where(eq(integrationTable.id, existing.id));
+
+ return c.json(await getGenericWebhookIntegration(projectId));
+ },
+ )
+ .delete(
+ "/project/:projectId",
+ describeRoute({
+ operationId: "deleteGenericWebhookIntegration",
+ tags: ["Generic Webhook"],
+ description: "Delete generic outgoing webhook integration for a project",
+ responses: {
+ 200: {
+ description: "Generic webhook integration deleted successfully",
+ content: {
+ "application/json": {
+ schema: resolver(v.object({ success: v.boolean() })),
+ },
+ },
+ },
+ },
+ }),
+ validator("param", v.object({ projectId: v.string() })),
+ workspaceAccess.fromProject("projectId"),
+ async (c) => {
+ const { projectId } = c.req.valid("param");
+
+ const existing = await db.query.integrationTable.findFirst({
+ where: and(
+ eq(integrationTable.projectId, projectId),
+ eq(integrationTable.type, "generic-webhook"),
+ ),
+ });
+
+ if (!existing) {
+ throw new HTTPException(404, {
+ message: "Generic webhook integration not found",
+ });
+ }
+
+ await db
+ .delete(integrationTable)
+ .where(eq(integrationTable.id, existing.id));
+
+ return c.json({ success: true });
+ },
+ );
+
+export default genericWebhookIntegration;
diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts
index 40cc89cdb..cbaa8cd2e 100644
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@ -20,6 +20,7 @@ import config from "./config";
import db, { schema } from "./database";
import discordIntegration from "./discord-integration";
import externalLink from "./external-link";
+import genericWebhookIntegration from "./generic-webhook-integration";
import githubIntegration, {
handleGithubWebhookRoute,
} from "./github-integration";
@@ -397,6 +398,10 @@ const githubIntegrationApi = api.route(
"/github-integration",
githubIntegration,
);
+const genericWebhookIntegrationApi = api.route(
+ "/generic-webhook-integration",
+ genericWebhookIntegration,
+);
const discordIntegrationApi = api.route(
"/discord-integration",
discordIntegration,
@@ -456,6 +461,7 @@ export type AppType =
| typeof notificationApi
| typeof searchApi
| typeof githubIntegrationApi
+ | typeof genericWebhookIntegrationApi
| typeof discordIntegrationApi
| typeof slackIntegrationApi
| typeof taskRelationApi
diff --git a/apps/api/src/plugins/generic-webhook/client.ts b/apps/api/src/plugins/generic-webhook/client.ts
new file mode 100644
index 000000000..1e1415c6a
--- /dev/null
+++ b/apps/api/src/plugins/generic-webhook/client.ts
@@ -0,0 +1,33 @@
+import { createHmac } from "node:crypto";
+
+type GenericWebhookPayload = Record<string, unknown>;
+
+export async function postToGenericWebhook(
+ webhookUrl: string,
+ payload: GenericWebhookPayload,
+ secret?: string,
+): Promise<void> {
+ const body = JSON.stringify(payload);
+ const headers: Record<string, string> = {
+ "Content-Type": "application/json",
+ };
+
+ if (secret) {
+ headers["X-Kaneo-Signature"] = createHmac("sha256", secret)
+ .update(body)
+ .digest("hex");
+ }
+
+ const response = await fetch(webhookUrl, {
+ method: "POST",
+ headers,
+ body,
+ });
+
+ if (!response.ok) {
+ const errorText = await response.text();
+ throw new Error(
+ `Generic webhook request failed (${response.status}): ${errorText}`,
+ );
+ }
+}
diff --git a/apps/api/src/plugins/generic-webhook/config.ts b/apps/api/src/plugins/generic-webhook/config.ts
new file mode 100644
index 000000000..4b9b8106f
--- /dev/null
+++ b/apps/api/src/plugins/generic-webhook/config.ts
@@ -0,0 +1,78 @@
+import * as v from "valibot";
+
+export const genericWebhookEventKeys = [
+ "taskCreated",
+ "taskStatusChanged",
+ "taskPriorityChanged",
+ "taskTitleChanged",
+ "taskDescriptionChanged",
+ "taskCommentCreated",
+] as const;
+
+export type GenericWebhookEventKey = (typeof genericWebhookEventKeys)[number];
+
+export const genericWebhookConfigSchema = v.object({
+ webhookUrl: v.pipe(v.string(), v.url()),
+ secret: v.optional(v.string()),
+ events: v.optional(
+ v.object({
+ taskCreated: v.optional(v.boolean()),
+ taskStatusChanged: v.optional(v.boolean()),
+ taskPriorityChanged: v.optional(v.boolean()),
+ taskTitleChanged: v.optional(v.boolean()),
+ taskDescriptionChanged: v.optional(v.boolean()),
+ taskCommentCreated: v.optional(v.boolean()),
+ }),
+ ),
+});
+
+export type GenericWebhookConfig = v.InferOutput<
+ typeof genericWebhookConfigSchema
+>;
+
+export const defaultGenericWebhookEvents: Record<
+ GenericWebhookEventKey,
+ boolean
+> = {
+ taskCreated: true,
+ taskStatusChanged: true,
+ taskPriorityChanged: false,
+ taskTitleChanged: false,
+ taskDescriptionChanged: false,
+ taskCommentCreated: true,
+};
+
+export function normalizeGenericWebhookConfig(
+ config: GenericWebhookConfig,
+): GenericWebhookConfig {
+ return {
+ ...config,
+ secret: config.secret?.trim() || undefined,
+ events: {
+ ...defaultGenericWebhookEvents,
+ ...(config.events ?? {}),
+ },
+ };
+}
+
+export async function validateGenericWebhookConfig(
+ config: unknown,
+): Promise<{ valid: boolean; errors?: string[] }> {
+ try {
+ const parsed = v.parse(genericWebhookConfigSchema, config);
+ normalizeGenericWebhookConfig(parsed);
+ return { valid: true };
+ } catch (error) {
+ if (error instanceof v.ValiError) {
+ return {
+ valid: false,
+ errors: error.issues.map((issue) => issue.message),
+ };
+ }
+
+ return {
+ valid: false,
+ errors: [error instanceof Error ? error.message : "Invalid config"],
+ };
+ }
+}
diff --git a/apps/api/src/plugins/generic-webhook/events.ts b/apps/api/src/plugins/generic-webhook/events.ts
new file mode 100644
index 000000000..e6015c0e3
--- /dev/null
+++ b/apps/api/src/plugins/generic-webhook/events.ts
@@ -0,0 +1,273 @@
+import { and, eq } from "drizzle-orm";
+import db from "../../database";
+import {
+ projectTable,
+ taskTable,
+ userTable,
+ workspaceTable,
+} from "../../database/schema";
+import type {
+ PluginContext,
+ TaskCommentCreatedEvent,
+ TaskCreatedEvent,
+ TaskDescriptionChangedEvent,
+ TaskPriorityChangedEvent,
+ TaskStatusChangedEvent,
+ TaskTitleChangedEvent,
+} from "../types";
+import { postToGenericWebhook } from "./client";
+import type { GenericWebhookConfig, GenericWebhookEventKey } from "./config";
+import { normalizeGenericWebhookConfig } from "./config";
+
+type GenericWebhookTaskData = {
+ id: string;
+ title: string;
+ number: number | null;
+ status: string | null;
+ priority: string | null;
+ projectId: string;
+ projectName: string;
+ workspaceId: string;
+ taskUrl: string;
+};
+
+function isEnabled(
+ config: GenericWebhookConfig,
+ key: GenericWebhookEventKey,
+): boolean {
+ const normalized = normalizeGenericWebhookConfig(config);
+ return normalized.events?.[key] ?? false;
+}
+
+async function getTaskData(
+ taskId: string,
+ projectId: string,
+): Promise<GenericWebhookTaskData | null> {
+ const [taskRow] = await db
+ .select({
+ id: taskTable.id,
+ title: taskTable.title,
+ number: taskTable.number,
+ status: taskTable.status,
+ priority: taskTable.priority,
+ projectId: projectTable.id,
+ projectName: projectTable.name,
+ workspaceId: workspaceTable.id,
+ })
+ .from(taskTable)
+ .innerJoin(projectTable, eq(taskTable.projectId, projectTable.id))
+ .innerJoin(workspaceTable, eq(projectTable.workspaceId, workspaceTable.id))
+ .where(and(eq(taskTable.id, taskId), eq(projectTable.id, projectId)))
+ .limit(1);
+
+ if (!taskRow) {
+ return null;
+ }
+
+ const clientUrl = process.env.KANEO_CLIENT_URL || "http://localhost:5173";
+
+ return {
+ ...taskRow,
+ taskUrl: `${clientUrl}/dashboard/workspace/${taskRow.workspaceId}/project/${taskRow.projectId}/task/${taskId}`,
+ };
+}
+
+async function getActor(userId: string | null): Promise<{
+ id: string | null;
+ name: string | null;
+}> {
+ if (!userId) {
+ return {
+ id: null,
+ name: null,
+ };
+ }
+
+ const [user] = await db
+ .select({ id: userTable.id, name: userTable.name })
+ .from(userTable)
+ .where(eq(userTable.id, userId))
+ .limit(1);
+
+ return {
+ id: user?.id ?? userId,
+ name: user?.name ?? null,
+ };
+}
+
+async function sendEvent(
+ config: GenericWebhookConfig,
+ eventName: string,
+ taskId: string,
+ projectId: string,
+ userId: string | null,
+ data: Record<string, unknown>,
+): Promise<void> {
+ const task = await getTaskData(taskId, projectId);
+ if (!task) return;
+
+ const actor = await getActor(userId);
+
+ await postToGenericWebhook(
+ config.webhookUrl,
+ {
+ event: eventName,
+ timestamp: new Date().toISOString(),
+ integration: {
+ type: "generic-webhook",
+ },
+ project: {
+ id: task.projectId,
+ name: task.projectName,
+ workspaceId: task.workspaceId,
+ },
+ task: {
+ id: task.id,
+ number: task.number,
+ title: task.title,
+ status: task.status,
+ priority: task.priority,
+ url: task.taskUrl,
+ },
+ actor,
+ data,
+ },
+ config.secret,
+ );
+}
+
+export async function handleTaskCreated(
+ event: TaskCreatedEvent,
+ context: PluginContext,
+): Promise<void> {
+ const config = normalizeGenericWebhookConfig(
+ context.config as GenericWebhookConfig,
+ );
+ if (!isEnabled(config, "taskCreated")) return;
+
+ await sendEvent(
+ config,
+ "task.created",
+ event.taskId,
+ event.projectId,
+ event.userId,
+ {
+ title: event.title,
+ description: event.description,
+ priority: event.priority,
+ status: event.status,
+ number: event.number,
+ },
+ );
+}
+
+export async function handleTaskStatusChanged(
+ event: TaskStatusChangedEvent,
+ context: PluginContext,
+): Promise<void> {
+ const config = normalizeGenericWebhookConfig(
+ context.config as GenericWebhookConfig,
+ );
+ if (!isEnabled(config, "taskStatusChanged")) return;
+
+ await sendEvent(
+ config,
+ "task.status_changed",
+ event.taskId,
+ event.projectId,
+ event.userId,
+ {
+ title: event.title,
+ oldStatus: event.oldStatus,
+ newStatus: event.newStatus,
+ },
+ );
+}
+
+export async function handleTaskPriorityChanged(
+ event: TaskPriorityChangedEvent,
+ context: PluginContext,
+): Promise<void> {
+ const config = normalizeGenericWebhookConfig(
+ context.config as GenericWebhookConfig,
+ );
+ if (!isEnabled(config, "taskPriorityChanged")) return;
+
+ await sendEvent(
+ config,
+ "task.priority_changed",
+ event.taskId,
+ event.projectId,
+ event.userId,
+ {
+ title: event.title,
+ oldPriority: event.oldPriority,
+ newPriority: event.newPriority,
+ },
+ );
+}
+
+export async function handleTaskTitleChanged(
+ event: TaskTitleChangedEvent,
+ context: PluginContext,
+): Promise<void> {
+ const config = normalizeGenericWebhookConfig(
+ context.config as GenericWebhookConfig,
+ );
+ if (!isEnabled(config, "taskTitleChanged")) return;
+
+ await sendEvent(
+ config,
+ "task.title_changed",
+ event.taskId,
+ event.projectId,
+ event.userId,
+ {
+ oldTitle: event.oldTitle,
+ newTitle: event.newTitle,
+ },
+ );
+}
+
+export async function handleTaskDescriptionChanged(
+ event: TaskDescriptionChangedEvent,
+ context: PluginContext,
+): Promise<void> {
+ const config = normalizeGenericWebhookConfig(
+ context.config as GenericWebhookConfig,
+ );
+ if (!isEnabled(config, "taskDescriptionChanged")) return;
+
+ await sendEvent(
+ config,
+ "task.description_changed",
+ event.taskId,
+ event.projectId,
+ event.userId,
+ {
+ oldDescription: event.oldDescription,
+ newDescription: event.newDescription,
+ },
+ );
+}
+
+export async function handleTaskCommentCreated(
+ event: TaskCommentCreatedEvent,
+ context: PluginContext,
+): Promise<void> {
+ const config = normalizeGenericWebhookConfig(
+ context.config as GenericWebhookConfig,
+ );
+ if (!isEnabled(config, "taskCommentCreated")) return;
+
+ await sendEvent(
+ config,
+ "task.comment_created",
+ event.taskId,
+ event.projectId,
+ event.userId,
+ {
+ comment: event.comment,
+ },
+ );
+}
diff --git a/apps/api/src/plugins/generic-webhook/index.ts b/apps/api/src/plugins/generic-webhook/index.ts
new file mode 100644
index 000000000..450016be2
--- /dev/null
+++ b/apps/api/src/plugins/generic-webhook/index.ts
@@ -0,0 +1,22 @@
+import type { IntegrationPlugin } from "../types";
+import { validateGenericWebhookConfig } from "./config";
+import {
+ handleTaskCommentCreated,
+ handleTaskCreated,
+ handleTaskDescriptionChanged,
+ handleTaskPriorityChanged,
+ handleTaskStatusChanged,
+ handleTaskTitleChanged,
+} from "./events";
+
+export const genericWebhookPlugin: IntegrationPlugin = {
+ type: "generic-webhook",
+ name: "Generic Webhook",
+ onTaskCreated: handleTaskCreated,
+ onTaskStatusChanged: handleTaskStatusChanged,
+ onTaskPriorityChanged: handleTaskPriorityChanged,
+ onTaskTitleChanged: handleTaskTitleChanged,
+ onTaskDescriptionChanged: handleTaskDescriptionChanged,
+ onTaskCommentCreated: handleTaskCommentCreated,
+ validateConfig: validateGenericWebhookConfig,
+};
diff --git a/apps/api/src/plugins/index.ts b/apps/api/src/plugins/index.ts
index 637e68104..195b94ddf 100644
--- a/apps/api/src/plugins/index.ts
+++ b/apps/api/src/plugins/index.ts
@@ -1,4 +1,5 @@
import { discordPlugin } from "./discord";
+import { genericWebhookPlugin } from "./generic-webhook";
import { githubPlugin, initializeGitHubPlugin } from "./github";
import { initializeEventSubscriptions, registerPlugin } from "./registry";
import { slackPlugin } from "./slack";
@@ -9,6 +10,7 @@ export function initializePlugins() {
registerPlugin(githubPlugin);
registerPlugin(slackPlugin);
registerPlugin(discordPlugin);
+ registerPlugin(genericWebhookPlugin);
initializeGitHubPlugin();
initializeEventSubscriptions();
diff --git a/apps/api/src/schemas.ts b/apps/api/src/schemas.ts
index 11724d98d..6baeeb442 100644
--- a/apps/api/src/schemas.ts
+++ b/apps/api/src/schemas.ts
@@ -151,6 +151,26 @@ export const discordIntegrationSchema = v.object({
updatedAt: v.date(),
});
+export const genericWebhookIntegrationSchema = v.object({
+ id: v.string(),
+ projectId: v.string(),
+ webhookConfigured: v.boolean(),
+ webhookUrl: v.string(),
+ secretConfigured: v.boolean(),
+ maskedSecret: v.nullable(v.string()),
+ events: v.object({
+ taskCreated: v.boolean(),
+ taskStatusChanged: v.boolean(),
+ taskPriorityChanged: v.boolean(),
+ taskTitleChanged: v.boolean(),
+ taskDescriptionChanged: v.boolean(),
+ taskCommentCreated: v.boolean(),
+ }),
+ isActive: v.nullable(v.boolean()),
+ createdAt: v.date(),
+ updatedAt: v.date(),
+});
+
export const commentSchema = v.object({
id: v.string(),
taskId: v.string(),
diff --git a/apps/web/src/components/project/generic-webhook-integration-settings.tsx b/apps/web/src/components/project/generic-webhook-integration-settings.tsx
new file mode 100644
index 000000000..f3e96c947
--- /dev/null
+++ b/apps/web/src/components/project/generic-webhook-integration-settings.tsx
@@ -0,0 +1,410 @@
+import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
+import { CheckCircle, Trash2 } from "lucide-react";
+import React from "react";
+import { useForm } from "react-hook-form";
+import { useTranslation } from "react-i18next";
+import { z } from "zod/v4";
+import { Button } from "@/components/ui/button";
+import {
+ Form,
+ FormControl,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from "@/components/ui/form";
+import { Input } from "@/components/ui/input";
+import { Switch } from "@/components/ui/switch";
+import {
+ useCreateGenericWebhookIntegration,
+ useDeleteGenericWebhookIntegration,
+ useUpdateGenericWebhookIntegration,
+} from "@/hooks/mutations/generic-webhook-integration/use-generic-webhook-integration";
+import useGetGenericWebhookIntegration from "@/hooks/queries/generic-webhook-integration/use-get-generic-webhook-integration";
+import { toast } from "@/lib/toast";
+
+type GenericWebhookIntegrationFormValues = {
+ webhookUrl: string;
+ secret: string;
+ taskCreated: boolean;
+ taskStatusChanged: boolean;
+ taskPriorityChanged: boolean;
+ taskTitleChanged: boolean;
+ taskDescriptionChanged: boolean;
+ taskCommentCreated: boolean;
+};
+
+function EventToggle({
+ control,
+ name,
+ label,
+}: {
+ control: ReturnType<
+ typeof useForm<GenericWebhookIntegrationFormValues>
+ >["control"];
+ name: keyof Pick<
+ GenericWebhookIntegrationFormValues,
+ | "taskCreated"
+ | "taskStatusChanged"
+ | "taskPriorityChanged"
+ | "taskTitleChanged"
+ | "taskDescriptionChanged"
+ | "taskCommentCreated"
+ >;
+ label: string;
+}) {
+ return (
+ <FormField
+ control={control}
+ name={name}
+ render={({ field }) => (
+ <FormItem className="flex items-center justify-between rounded-md border px-3 py-2">
+ <FormLabel className="text-sm font-medium">{label}</FormLabel>
+ <FormControl>
+ <Switch
+ checked={Boolean(field.value)}
+ onCheckedChange={field.onChange}
+ />
+ </FormControl>
+ </FormItem>
+ )}
+ />
+ );
+}
+
+export function GenericWebhookIntegrationSettings({
+ projectId,
+}: {
+ projectId: string;
+}) {
+ const { t } = useTranslation();
+ const schema = React.useMemo(
+ () =>
+ z.object({
+ webhookUrl: z.string(),
+ secret: z.string(),
+ taskCreated: z.boolean(),
+ taskStatusChanged: z.boolean(),
+ taskPriorityChanged: z.boolean(),
+ taskTitleChanged: z.boolean(),
+ taskDescriptionChanged: z.boolean(),
+ taskCommentCreated: z.boolean(),
+ }),
+ [],
+ );
+
+ const { data: integration, isLoading } =
+ useGetGenericWebhookIntegration(projectId);
+ const { mutateAsync: createIntegration, isPending: isCreating } =
+ useCreateGenericWebhookIntegration();
+ const { mutateAsync: updateIntegration, isPending: isUpdating } =
+ useUpdateGenericWebhookIntegration();
+ const { mutateAsync: deleteIntegration, isPending: isDeleting } =
+ useDeleteGenericWebhookIntegration();
+
+ const normalizedValues = React.useMemo<GenericWebhookIntegrationFormValues>(
+ () => ({
+ webhookUrl: integration?.webhookUrl ?? "",
+ secret: "",
+ taskCreated: integration?.events?.taskCreated ?? true,
+ taskStatusChanged: integration?.events?.taskStatusChanged ?? true,
+ taskPriorityChanged: integration?.events?.taskPriorityChanged ?? false,
+ taskTitleChanged: integration?.events?.taskTitleChanged ?? false,
+ taskDescriptionChanged:
+ integration?.events?.taskDescriptionChanged ?? false,
+ taskCommentCreated: integration?.events?.taskCommentCreated ?? true,
+ }),
+ [integration],
+ );
+
+ const form = useForm<GenericWebhookIntegrationFormValues>({
+ resolver: standardSchemaResolver(schema),
+ defaultValues: normalizedValues,
+ });
+
+ React.useEffect(() => {
+ form.reset(normalizedValues);
+ }, [form, normalizedValues]);
+
+ const isConnected = Boolean(integration?.webhookConfigured);
+ const isBusy = isCreating || isUpdating || isDeleting;
+
+ const onSubmit = async (values: GenericWebhookIntegrationFormValues) => {
+ try {
+ const trimmedWebhookUrl = values.webhookUrl.trim();
+ const trimmedSecret = values.secret.trim();
+ const events = {
+ taskCreated: values.taskCreated,
+ taskStatusChanged: values.taskStatusChanged,
+ taskPriorityChanged: values.taskPriorityChanged,
+ taskTitleChanged: values.taskTitleChanged,
+ taskDescriptionChanged: values.taskDescriptionChanged,
+ taskCommentCreated: values.taskCommentCreated,
+ };
+
+ if (!trimmedWebhookUrl || !z.url().safeParse(trimmedWebhookUrl).success) {
+ form.setError("webhookUrl", {
+ message: t(
+ "settings:genericWebhookIntegration.validation.webhookInvalid",
+ ),
+ });
+ return;
+ }
+
+ if (!isConnected) {
+ await createIntegration({
+ projectId,
+ data: {
+ webhookUrl: trimmedWebhookUrl,
+ secret: trimmedSecret || undefined,
+ events,
+ },
+ });
+ } else {
+ await updateIntegration({
+ projectId,
+ json: {
+ webhookUrl: trimmedWebhookUrl,
+ secret: trimmedSecret || undefined,
+ events,
+ },
+ });
+ }
+
+ form.reset({
+ ...values,
+ webhookUrl: trimmedWebhookUrl,
+ secret: "",
+ });
+ toast.success(t("settings:genericWebhookIntegration.toast.saved"));
+ } catch (error) {
+ toast.error(
+ error instanceof Error
+ ? error.message
+ : t("settings:genericWebhookIntegration.toast.saveError"),
+ );
+ }
+ };
+
+ const handleToggleActive = async (checked: boolean) => {
+ try {
+ await updateIntegration({
+ projectId,
+ json: { isActive: checked },
+ });
+ toast.success(
+ checked
+ ? t("settings:genericWebhookIntegration.toast.enabled")
+ : t("settings:genericWebhookIntegration.toast.disabled"),
+ );
+ } catch (error) {
+ toast.error(
+ error instanceof Error
+ ? error.message
+ : t("settings:genericWebhookIntegration.toast.updateError"),
+ );
+ }
+ };
+
+ const handleDelete = async () => {
+ try {
+ await deleteIntegration(projectId);
+ form.reset({
+ webhookUrl: "",
+ secret: "",
+ taskCreated: true,
+ taskStatusChanged: true,
+ taskPriorityChanged: false,
+ taskTitleChanged: false,
+ taskDescriptionChanged: false,
+ taskCommentCreated: true,
+ });
+ toast.success(t("settings:genericWebhookIntegration.toast.removed"));
+ } catch (error) {
+ toast.error(
+ error instanceof Error
+ ? error.message
+ : t("settings:genericWebhookIntegration.toast.removeError"),
+ );
+ }
+ };
+
+ if (isLoading) {
+ return (
+ <div className="space-y-4">
+ <div className="space-y-4 rounded-md border border-border bg-sidebar p-4">
+ <div className="h-4 w-40 animate-pulse rounded bg-muted" />
+ <div className="h-10 w-full animate-pulse rounded bg-muted" />
+ <div className="h-10 w-full animate-pulse rounded bg-muted" />
+ </div>
+ </div>
+ );
+ }
+
+ return (
+ <div className="space-y-4">
+ <Form {...form}>
+ <form className="space-y-4" onSubmit={form.handleSubmit(onSubmit)}>
+ <div className="space-y-4 rounded-md border border-border bg-sidebar p-4">
+ <div className="flex items-start justify-between gap-4">
+ <div className="space-y-1">
+ <h3 className="font-medium">
+ {t("settings:genericWebhookIntegration.connectionTitle")}
+ </h3>
+ <p className="text-sm text-muted-foreground">
+ {t("settings:genericWebhookIntegration.connectionHint")}
+ </p>
+ </div>
+
+ <div className="flex items-center gap-3">
+ {isConnected && (
+ <div className="flex items-center gap-2 text-sm text-muted-foreground">
+ <CheckCircle className="size-4 text-green-600" />
+ <span>
+ {integration?.isActive
+ ? t("settings:genericWebhookIntegration.connected")
+ : t("settings:genericWebhookIntegration.paused")}
+ </span>
+ </div>
+ )}
+ <Switch
+ checked={integration?.isActive ?? false}
+ disabled={!isConnected || isBusy}
+ onCheckedChange={handleToggleActive}
+ />
+ </div>
+ </div>
+
+ <FormField
+ control={form.control}
+ name="webhookUrl"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>
+ {t("settings:genericWebhookIntegration.webhookLabel")}
+ </FormLabel>
+ <FormControl>
+ <Input
+ {...field}
+ autoComplete="off"
+ placeholder={t(
+ "settings:genericWebhookIntegration.webhookPlaceholder",
+ )}
+ type="url"
+ />
+ </FormControl>
+ <p className="text-xs text-muted-foreground">
+ {t("settings:genericWebhookIntegration.webhookHint")}
+ </p>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+
+ <FormField
+ control={form.control}
+ name="secret"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>
+ {t("settings:genericWebhookIntegration.secretLabel")}
+ </FormLabel>
+ <FormControl>
+ <Input
+ {...field}
+ autoComplete="off"
+ placeholder={t(
+ "settings:genericWebhookIntegration.secretPlaceholder",
+ )}
+ type="password"
+ />
+ </FormControl>
+ <p className="text-xs text-muted-foreground">
+ {integration?.secretConfigured
+ ? t(
+ "settings:genericWebhookIntegration.secretHintConfigured",
+ { secret: integration.maskedSecret ?? "••••" },
+ )
+ : t("settings:genericWebhookIntegration.secretHint")}
+ </p>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ </div>
+
+ <div className="space-y-3 rounded-md border border-border bg-sidebar p-4">
+ <div>
+ <h3 className="font-medium">
+ {t("settings:genericWebhookIntegration.eventsTitle")}
+ </h3>
+ <p className="text-sm text-muted-foreground">
+ {t("settings:genericWebhookIntegration.eventsHint")}
+ </p>
+ </div>
+
+ <EventToggle
+ control={form.control}
+ label={t("settings:genericWebhookIntegration.events.taskCreated")}
+ name="taskCreated"
+ />
+ <EventToggle
+ control={form.control}
+ label={t(
+ "settings:genericWebhookIntegration.events.taskStatusChanged",
+ )}
+ name="taskStatusChanged"
+ />
+ <EventToggle
+ control={form.control}
+ label={t(
+ "settings:genericWebhookIntegration.events.taskPriorityChanged",
+ )}
+ name="taskPriorityChanged"
+ />
+ <EventToggle
+ control={form.control}
+ label={t(
+ "settings:genericWebhookIntegration.events.taskTitleChanged",
+ )}
+ name="taskTitleChanged"
+ />
+ <EventToggle
+ control={form.control}
+ label={t(
+ "settings:genericWebhookIntegration.events.taskDescriptionChanged",
+ )}
+ name="taskDescriptionChanged"
+ />
+ <EventToggle
+ control={form.control}
+ label={t(
+ "settings:genericWebhookIntegration.events.taskCommentCreated",
+ )}
+ name="taskCommentCreated"
+ />
+ </div>
+
+ <div className="flex flex-wrap gap-2">
+ <Button disabled={isBusy} type="submit">
+ {isConnected
+ ? t("settings:genericWebhookIntegration.saveChanges")
+ : t("settings:genericWebhookIntegration.connect")}
+ </Button>
+ {isConnected && (
+ <Button
+ disabled={isBusy}
+ onClick={handleDelete}
+ type="button"
+ variant="outline"
+ >
+ <Trash2 className="size-4" />
+ {t("settings:genericWebhookIntegration.disconnect")}
+ </Button>
+ )}
+ </div>
+ </form>
+ </Form>
+ </div>
+ );
+}
diff --git a/apps/web/src/fetchers/generic-webhook-integration/create-generic-webhook-integration.ts b/apps/web/src/fetchers/generic-webhook-integration/create-generic-webhook-integration.ts
new file mode 100644
index 000000000..2af414be7
--- /dev/null
+++ b/apps/web/src/fetchers/generic-webhook-integration/create-generic-webhook-integration.ts
@@ -0,0 +1,46 @@
+import type { GenericWebhookIntegration } from "./get-generic-webhook-integration";
+
+function getApiUrl(path: string) {
+ const baseUrl = import.meta.env.VITE_API_URL || "http://localhost:1337";
+ const apiUrl = baseUrl.endsWith("/api") ? baseUrl : `${baseUrl}/api`;
+ return `${apiUrl}${path}`;
+}
+
+export type CreateGenericWebhookIntegrationRequest = {
+ webhookUrl: string;
+ secret?: string;
+ events?: {
+ taskCreated?: boolean;
+ taskStatusChanged?: boolean;
+ taskPriorityChanged?: boolean;
+ taskTitleChanged?: boolean;
+ taskDescriptionChanged?: boolean;
+ taskCommentCreated?: boolean;
+ };
+};
+
+async function createGenericWebhookIntegration(
+ projectId: string,
+ json: CreateGenericWebhookIntegrationRequest,
+) {
+ const response = await fetch(
+ getApiUrl(`/generic-webhook-integration/project/${projectId}`),
+ {
+ method: "POST",
+ credentials: "include",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify(json),
+ },
+ );
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ return (await response.json()) as GenericWebhookIntegration;
+}
+
+export default createGenericWebhookIntegration;
diff --git a/apps/web/src/fetchers/generic-webhook-integration/delete-generic-webhook-integration.ts b/apps/web/src/fetchers/generic-webhook-integration/delete-generic-webhook-integration.ts
new file mode 100644
index 000000000..53f48cc44
--- /dev/null
+++ b/apps/web/src/fetchers/generic-webhook-integration/delete-generic-webhook-integration.ts
@@ -0,0 +1,27 @@
+function getApiUrl(path: string) {
+ const baseUrl = import.meta.env.VITE_API_URL || "http://localhost:1337";
+ const apiUrl = baseUrl.endsWith("/api") ? baseUrl : `${baseUrl}/api`;
+ return `${apiUrl}${path}`;
+}
+
+async function deleteGenericWebhookIntegration(projectId: string) {
+ const response = await fetch(
+ getApiUrl(`/generic-webhook-integration/project/${projectId}`),
+ {
+ method: "DELETE",
+ credentials: "include",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ },
+ );
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ return response.json();
+}
+
+export default deleteGenericWebhookIntegration;
diff --git a/apps/web/src/fetchers/generic-webhook-integration/get-generic-webhook-integration.ts b/apps/web/src/fetchers/generic-webhook-integration/get-generic-webhook-integration.ts
new file mode 100644
index 000000000..c50b5f2d3
--- /dev/null
+++ b/apps/web/src/fetchers/generic-webhook-integration/get-generic-webhook-integration.ts
@@ -0,0 +1,46 @@
+export type GenericWebhookIntegration = {
+ id: string;
+ projectId: string;
+ webhookConfigured: boolean;
+ webhookUrl: string;
+ secretConfigured: boolean;
+ maskedSecret: string | null;
+ events: {
+ taskCreated: boolean;
+ taskStatusChanged: boolean;
+ taskPriorityChanged: boolean;
+ taskTitleChanged: boolean;
+ taskDescriptionChanged: boolean;
+ taskCommentCreated: boolean;
+ };
+ isActive: boolean | null;
+ createdAt: string;
+ updatedAt: string;
+} | null;
+
+function getApiUrl(path: string) {
+ const baseUrl = import.meta.env.VITE_API_URL || "http://localhost:1337";
+ const apiUrl = baseUrl.endsWith("/api") ? baseUrl : `${baseUrl}/api`;
+ return `${apiUrl}${path}`;
+}
+
+async function getGenericWebhookIntegration(projectId: string) {
+ const response = await fetch(
+ getApiUrl(`/generic-webhook-integration/project/${projectId}`),
+ {
+ credentials: "include",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ },
+ );
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ return (await response.json()) as GenericWebhookIntegration;
+}
+
+export default getGenericWebhookIntegration;
diff --git a/apps/web/src/fetchers/generic-webhook-integration/update-generic-webhook-integration.ts b/apps/web/src/fetchers/generic-webhook-integration/update-generic-webhook-integration.ts
new file mode 100644
index 000000000..370a4e02a
--- /dev/null
+++ b/apps/web/src/fetchers/generic-webhook-integration/update-generic-webhook-integration.ts
@@ -0,0 +1,47 @@
+import type { GenericWebhookIntegration } from "./get-generic-webhook-integration";
+
+function getApiUrl(path: string) {
+ const baseUrl = import.meta.env.VITE_API_URL || "http://localhost:1337";
+ const apiUrl = baseUrl.endsWith("/api") ? baseUrl : `${baseUrl}/api`;
+ return `${apiUrl}${path}`;
+}
+
+export type UpdateGenericWebhookIntegrationRequest = {
+ webhookUrl?: string;
+ secret?: string | null;
+ isActive?: boolean;
+ events?: {
+ taskCreated?: boolean;
+ taskStatusChanged?: boolean;
+ taskPriorityChanged?: boolean;
+ taskTitleChanged?: boolean;
+ taskDescriptionChanged?: boolean;
+ taskCommentCreated?: boolean;
+ };
+};
+
+async function updateGenericWebhookIntegration(
+ projectId: string,
+ json: UpdateGenericWebhookIntegrationRequest,
+) {
+ const response = await fetch(
+ getApiUrl(`/generic-webhook-integration/project/${projectId}`),
+ {
+ method: "PATCH",
+ credentials: "include",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify(json),
+ },
+ );
+
+ if (!response.ok) {
+ const error = await response.text();
+ throw new Error(error);
+ }
+
+ return (await response.json()) as GenericWebhookIntegration;
+}
+
+export default updateGenericWebhookIntegration;
diff --git a/apps/web/src/hooks/mutations/generic-webhook-integration/use-generic-webhook-integration.ts b/apps/web/src/hooks/mutations/generic-webhook-integration/use-generic-webhook-integration.ts
new file mode 100644
index 000000000..5c755c8f1
--- /dev/null
+++ b/apps/web/src/hooks/mutations/generic-webhook-integration/use-generic-webhook-integration.ts
@@ -0,0 +1,60 @@
+import { useMutation, useQueryClient } from "@tanstack/react-query";
+import createGenericWebhookIntegration, {
+ type CreateGenericWebhookIntegrationRequest,
+} from "@/fetchers/generic-webhook-integration/create-generic-webhook-integration";
+import deleteGenericWebhookIntegration from "@/fetchers/generic-webhook-integration/delete-generic-webhook-integration";
+import updateGenericWebhookIntegration, {
+ type UpdateGenericWebhookIntegrationRequest,
+} from "@/fetchers/generic-webhook-integration/update-generic-webhook-integration";
+
+export function useCreateGenericWebhookIntegration() {
+ const queryClient = useQueryClient();
+
+ return useMutation({
+ mutationFn: ({
+ projectId,
+ data,
+ }: {
+ projectId: string;
+ data: CreateGenericWebhookIntegrationRequest;
+ }) => createGenericWebhookIntegration(projectId, data),
+ onSuccess: (_, { projectId }) => {
+ void queryClient.invalidateQueries({
+ queryKey: ["generic-webhook-integration", projectId],
+ });
+ },
+ });
+}
+
+export function useUpdateGenericWebhookIntegration() {
+ const queryClient = useQueryClient();
+
+ return useMutation({
+ mutationFn: ({
+ projectId,
+ json,
+ }: {
+ projectId: string;
+ json: UpdateGenericWebhookIntegrationRequest;
+ }) => updateGenericWebhookIntegration(projectId, json),
+ onSuccess: (_, { projectId }) => {
+ void queryClient.invalidateQueries({
+ queryKey: ["generic-webhook-integration", projectId],
+ });
+ },
+ });
+}
+
+export function useDeleteGenericWebhookIntegration() {
+ const queryClient = useQueryClient();
+
+ return useMutation({
+ mutationFn: (projectId: string) =>
+ deleteGenericWebhookIntegration(projectId),
+ onSuccess: (_, projectId) => {
+ void queryClient.invalidateQueries({
+ queryKey: ["generic-webhook-integration", projectId],
+ });
+ },
+ });
+}
diff --git a/apps/web/src/hooks/queries/generic-webhook-integration/use-get-generic-webhook-integration.ts b/apps/web/src/hooks/queries/generic-webhook-integration/use-get-generic-webhook-integration.ts
new file mode 100644
index 000000000..c95764543
--- /dev/null
+++ b/apps/web/src/hooks/queries/generic-webhook-integration/use-get-generic-webhook-integration.ts
@@ -0,0 +1,11 @@
+import { useQuery } from "@tanstack/react-query";
+import getGenericWebhookIntegration from "@/fetchers/generic-webhook-integration/get-generic-webhook-integration";
+
+function useGetGenericWebhookIntegration(projectId: string) {
+ return useQuery({
+ queryKey: ["generic-webhook-integration", projectId],
+ queryFn: () => getGenericWebhookIntegration(projectId),
+ });
+}
+
+export default useGetGenericWebhookIntegration;
diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/integrations.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/integrations.tsx
index 6f4c318d2..71758d49c 100644
--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/integrations.tsx
+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/projects/$projectId/integrations.tsx
@@ -1,9 +1,16 @@
import { createFileRoute } from "@tanstack/react-router";
-import { ChevronDown, Github, MessageCircle, Webhook } from "lucide-react";
+import {
+ ChevronDown,
+ Github,
+ MessageCircle,
+ Radio,
+ Webhook,
+} from "lucide-react";
import type { ReactNode } from "react";
import { useTranslation } from "react-i18next";
import PageTitle from "@/components/page-title";
import { DiscordIntegrationSettings } from "@/components/project/discord-integration-settings";
+import { GenericWebhookIntegrationSettings } from "@/components/project/generic-webhook-integration-settings";
import { GitHubIntegrationSettings } from "@/components/project/github-integration-settings";
import { SlackIntegrationSettings } from "@/components/project/slack-integration-settings";
import {
@@ -53,6 +60,16 @@ function RouteComponent() {
<DiscordIntegrationSettings projectId={projectId} />
</IntegrationSection>
+ <IntegrationSection
+ icon={<Radio className="size-4" />}
+ subtitle={t(
+ "settings:projectIntegrations.genericWebhookSectionSubtitle",
+ )}
+ title={t("settings:projectIntegrations.genericWebhookSectionTitle")}
+ >
+ <GenericWebhookIntegrationSettings projectId={projectId} />
+ </IntegrationSection>
+
<IntegrationSection
icon={<Webhook className="size-4" />}
subtitle={t("settings:projectIntegrations.slackSectionSubtitle")}
diff --git a/i18n/de-DE.json b/i18n/de-DE.json
index 0401910f8..1147b2291 100644
--- a/i18n/de-DE.json
+++ b/i18n/de-DE.json
@@ -492,6 +492,8 @@
"githubSectionSubtitle": "Synchronisiere Aufgaben mit GitHub-Issues und aktiviere die bidirektionale Synchronisierung.",
"discordSectionTitle": "Discord-Integration",
"discordSectionSubtitle": "Sende Projektaktualisierungen per Webhook in einen Discord-Kanal.",
+ "genericWebhookSectionTitle": "Generische Webhooks",
+ "genericWebhookSectionSubtitle": "Sende Projektaufgabenereignisse als JSON an einen beliebigen HTTP-Endpunkt.",
"slackSectionTitle": "Slack-Integration",
"slackSectionSubtitle": "Sende Projektaktualisierungen per Incoming Webhook in einen Slack-Kanal."
},
@@ -679,6 +681,44 @@
"update": "Discord aktualisieren",
"disconnect": "Trennen"
},
+ "genericWebhookIntegration": {
+ "validation": {
+ "webhookInvalid": "Gib eine gültige Webhook-URL ein"
+ },
+ "toast": {
+ "saved": "Generische Webhook-Integration erfolgreich gespeichert",
+ "saveError": "Generische Webhook-Integration konnte nicht gespeichert werden",
+ "enabled": "Generische Webhook-Benachrichtigungen aktiviert",
+ "disabled": "Generische Webhook-Benachrichtigungen pausiert",
+ "updateError": "Generische Webhook-Integration konnte nicht aktualisiert werden",
+ "removed": "Generische Webhook-Integration erfolgreich entfernt",
+ "removeError": "Generische Webhook-Integration konnte nicht entfernt werden"
+ },
+ "connectionTitle": "Ausgehende Webhook-Verbindung",
+ "connectionHint": "Sende Aufgabenereignisse als JSON an deinen eigenen Endpunkt. Wenn ein Secret konfiguriert ist, wird ein signierter X-Kaneo-Signature-Header mitgesendet.",
+ "connected": "Verbunden",
+ "paused": "Pausiert",
+ "webhookLabel": "Endpunkt-URL",
+ "webhookPlaceholder": "https://example.com/webhooks/kaneo",
+ "webhookHint": "Kaneo sendet POST-Anfragen mit einer JSON-Nutzlast für jedes aktivierte Ereignis.",
+ "secretLabel": "Signatur-Secret",
+ "secretPlaceholder": "Optionales gemeinsames Secret",
+ "secretHint": "Optional. Wenn gesetzt, signiert Kaneo den Request-Body und sendet den Hex-Digest im Header X-Kaneo-Signature.",
+ "secretHintConfigured": "Ein Signatur-Secret ist bereits konfiguriert ({{secret}}). Gib ein neues ein, um es zu ersetzen.",
+ "eventsTitle": "Ereignisbenachrichtigungen",
+ "eventsHint": "Wähle aus, welche Projektänderungen ausgehende Webhooks auslösen sollen.",
+ "events": {
+ "taskCreated": "Neue Aufgaben",
+ "taskStatusChanged": "Statusänderungen",
+ "taskPriorityChanged": "Prioritätsänderungen",
+ "taskTitleChanged": "Titeländerungen",
+ "taskDescriptionChanged": "Beschreibungsänderungen",
+ "taskCommentCreated": "Neue Kommentare"
+ },
+ "connect": "Webhook verbinden",
+ "saveChanges": "Änderungen speichern",
+ "disconnect": "Trennen"
+ },
"repositoryBrowser": {
"title": "Repository auswählen",
"description": "Wähle ein Repository aus, in dem deine GitHub-App installiert ist, um die Issue-Synchronisierung zu aktivieren.",
diff --git a/i18n/en-US.json b/i18n/en-US.json
index 47c1d0860..edbc64304 100644
--- a/i18n/en-US.json
+++ b/i18n/en-US.json
@@ -492,6 +492,8 @@
"githubSectionSubtitle": "Synchronize tasks with GitHub issues and enable two-way sync.",
"discordSectionTitle": "Discord Integration",
"discordSectionSubtitle": "Send project task updates into a Discord channel with a webhook.",
+ "genericWebhookSectionTitle": "Generic Webhooks",
+ "genericWebhookSectionSubtitle": "Send project task events to any HTTP endpoint as JSON.",
"slackSectionTitle": "Slack Integration",
"slackSectionSubtitle": "Send project task updates into a Slack channel with an incoming webhook."
},
@@ -679,6 +681,44 @@
"update": "Update Discord",
"disconnect": "Disconnect"
},
+ "genericWebhookIntegration": {
+ "validation": {
+ "webhookInvalid": "Enter a valid webhook URL"
+ },
+ "toast": {
+ "saved": "Generic webhook integration saved successfully",
+ "saveError": "Failed to save generic webhook integration",
+ "enabled": "Generic webhook notifications enabled",
+ "disabled": "Generic webhook notifications paused",
+ "updateError": "Failed to update generic webhook integration",
+ "removed": "Generic webhook integration removed successfully",
+ "removeError": "Failed to remove generic webhook integration"
+ },
+ "connectionTitle": "Outgoing webhook connection",
+ "connectionHint": "Send task events to your own endpoint as JSON. A signed X-Kaneo-Signature header is included when a secret is configured.",
+ "connected": "Connected",
+ "paused": "Paused",
+ "webhookLabel": "Endpoint URL",
+ "webhookPlaceholder": "https://example.com/webhooks/kaneo",
+ "webhookHint": "Kaneo sends POST requests with a JSON payload for each enabled event.",
+ "secretLabel": "Signing secret",
+ "secretPlaceholder": "Optional shared secret",
+ "secretHint": "Optional. If provided, Kaneo signs the request body and sends the hex digest in the X-Kaneo-Signature header.",
+ "secretHintConfigured": "A signing secret is already configured ({{secret}}). Enter a new one to replace it.",
+ "eventsTitle": "Event notifications",
+ "eventsHint": "Choose which project changes should trigger outgoing webhooks.",
+ "events": {
+ "taskCreated": "New tasks",
+ "taskStatusChanged": "Status changes",
+ "taskPriorityChanged": "Priority changes",
+ "taskTitleChanged": "Title changes",
+ "taskDescriptionChanged": "Description changes",
+ "taskCommentCreated": "New comments"
+ },
+ "connect": "Connect webhook",
+ "saveChanges": "Save changes",
+ "disconnect": "Disconnect"
+ },
"repositoryBrowser": {
"title": "Select Repository",
"description": "Choose a repository where your GitHub App is installed to enable issue synchronization.",