⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat(mattermost): add native Mattermost integration
Wynne Pirini955a341ac805
diff --git a/.husky/commit-msg b/.husky/commit-msgindex c48ae6930..6a2e4c842 100644--- a/.husky/commit-msg+++ b/.husky/commit-msg@@ -1 +1 @@-pnpm dlx commitlint --edit $1+pnpm exec commitlint --edit $1diff --git a/apps/api/src/index.ts b/apps/api/src/index.tsindex 07dc093b3..08c70578f 100644--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@ -34,6 +34,7 @@ import githubIntegration, {import getInstanceStatus from "./instance/controllers/get-instance-status";import invitation from "./invitation";import label from "./label";+import mattermostIntegration from "./mattermost-integration";import mcpRoutes, { mcpWellKnownRoutes } from "./mcp";import { migrateColumns } from "./migrations/column-migration";import notification from "./notification";@@ -524,6 +525,10 @@ export function createApp() {"/discord-integration",discordIntegration,);+ const mattermostIntegrationApi = api.route(+ "/mattermost-integration",+ mattermostIntegration,+ );const slackIntegrationApi = api.route("/slack-integration", slackIntegration);const telegramIntegrationApi = api.route("/telegram-integration",@@ -618,6 +623,7 @@ export function createApp() {projectApi,publicProjectApi,searchApi,+ mattermostIntegrationApi,slackIntegrationApi,taskApi,taskRelationApi,@@ -729,6 +735,7 @@ const {invitationApi,invitationPublicApi,labelApi,+ mattermostIntegrationApi,notificationApi,notificationPreferencesApi,projectApi,@@ -768,6 +775,7 @@ export type AppType =| typeof giteaIntegrationApi| typeof genericWebhookIntegrationApi| typeof discordIntegrationApi+ | typeof mattermostIntegrationApi| typeof slackIntegrationApi| typeof telegramIntegrationApi| typeof taskRelationApidiff --git a/apps/api/src/mattermost-integration/index.ts b/apps/api/src/mattermost-integration/index.tsnew file mode 100644index 000000000..92f6347ae--- /dev/null+++ b/apps/api/src/mattermost-integration/index.ts@@ -0,0 +1,335 @@+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 {+ defaultMattermostEvents,+ type MattermostConfig,+ normalizeMattermostConfig,+ validateMattermostConfig,+} from "../plugins/mattermost/config";+import { mattermostIntegrationSchema } from "../schemas";+import { requireWorkspacePermission } from "../utils/require-workspace-permission";+import { workspaceAccess } from "../utils/workspace-access-middleware";++const mattermostIntegration = new Hono<{+ Variables: {+ userId: string;+ workspaceId: string;+ apiKey?: {+ id: string;+ userId: string;+ enabled: boolean;+ };+ };+}>();++function maskWebhookUrl(value: string): string {+ try {+ const url = new URL(value);+ const parts = url.pathname.split("/").filter(Boolean);+ const last = parts[parts.length - 1] ?? "";+ const maskedLast =+ last.length > 8 ? `${last.slice(0, 4)}…${last.slice(-4)}` : "••••";+ return `${url.origin}/${parts.slice(0, -1).join("/")}/${maskedLast}`;+ } catch {+ return "Configured";+ }+}++function toResponse(integration: {+ id: string;+ projectId: string;+ config: string;+ isActive: boolean | null;+ createdAt: Date;+ updatedAt: Date;+}) {+ const config = normalizeMattermostConfig(+ JSON.parse(integration.config) as MattermostConfig,+ );++ return {+ id: integration.id,+ projectId: integration.projectId,+ channelName: config.channelName ?? null,+ webhookConfigured: Boolean(config.webhookUrl),+ maskedWebhookUrl: maskWebhookUrl(config.webhookUrl),+ events: {+ ...defaultMattermostEvents,+ ...(config.events ?? {}),+ },+ isActive: integration.isActive,+ createdAt: integration.createdAt,+ updatedAt: integration.updatedAt,+ };+}++async function getMattermostIntegration(projectId: string) {+ const integration = await db.query.integrationTable.findFirst({+ where: and(+ eq(integrationTable.projectId, projectId),+ eq(integrationTable.type, "mattermost"),+ ),+ });++ if (!integration) {+ return null;+ }++ return toResponse(integration);+}++const nullableMattermostIntegrationSchema = v.nullable(+ mattermostIntegrationSchema,+);++mattermostIntegration+ .get(+ "/project/:projectId",+ describeRoute({+ operationId: "getMattermostIntegration",+ tags: ["Mattermost"],+ description: "Get Mattermost integration for a project",+ responses: {+ 200: {+ description: "Mattermost integration details",+ content: {+ "application/json": {+ schema: resolver(nullableMattermostIntegrationSchema),+ },+ },+ },+ },+ }),+ validator("param", v.object({ projectId: v.string() })),+ workspaceAccess.fromProject("projectId"),+ async (c) => {+ const { projectId } = c.req.valid("param");+ const integration = await getMattermostIntegration(projectId);+ return c.json(integration);+ },+ )+ .post(+ "/project/:projectId",+ describeRoute({+ operationId: "createMattermostIntegration",+ tags: ["Mattermost"],+ description: "Create or replace a Mattermost integration for a project",+ responses: {+ 200: {+ description: "Mattermost integration created successfully",+ content: {+ "application/json": {+ schema: resolver(mattermostIntegrationSchema),+ },+ },+ },+ },+ }),+ validator("param", v.object({ projectId: v.string() })),+ validator(+ "json",+ v.object({+ webhookUrl: v.pipe(v.string(), v.minLength(1)),+ channelName: 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()),+ }),+ ),+ }),+ ),+ workspaceAccess.fromProject("projectId"),+ requireWorkspacePermission({ workspace: ["manage_settings"] }),+ async (c) => {+ const { projectId } = c.req.valid("param");+ const body = c.req.valid("json");++ const config = normalizeMattermostConfig({+ webhookUrl: body.webhookUrl,+ channelName: body.channelName,+ events: body.events,+ });++ const validation = await validateMattermostConfig(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, "mattermost"),+ ),+ });++ 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: "mattermost",+ config: JSON.stringify(config),+ isActive: true,+ });+ }++ const integration = await getMattermostIntegration(projectId);+ return c.json(integration);+ },+ )+ .patch(+ "/project/:projectId",+ describeRoute({+ operationId: "updateMattermostIntegration",+ tags: ["Mattermost"],+ description: "Update Mattermost integration settings",+ responses: {+ 200: {+ description: "Mattermost integration updated successfully",+ content: {+ "application/json": {+ schema: resolver(mattermostIntegrationSchema),+ },+ },+ },+ },+ }),+ validator("param", v.object({ projectId: v.string() })),+ validator(+ "json",+ v.object({+ webhookUrl: v.optional(v.string()),+ channelName: v.optional(v.nullable(v.string())),+ isActive: v.optional(v.boolean()),+ 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()),+ }),+ ),+ }),+ ),+ workspaceAccess.fromProject("projectId"),+ requireWorkspacePermission({ workspace: ["manage_settings"] }),+ 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, "mattermost"),+ ),+ });++ if (!existing) {+ throw new HTTPException(404, {+ message: "Mattermost integration not found",+ });+ }++ const currentConfig = normalizeMattermostConfig(+ JSON.parse(existing.config) as MattermostConfig,+ );+ const nextConfig = normalizeMattermostConfig({+ webhookUrl: body.webhookUrl?.trim() || currentConfig.webhookUrl,+ channelName:+ body.channelName === undefined+ ? currentConfig.channelName+ : (body.channelName ?? undefined),+ events: {+ ...(currentConfig.events ?? {}),+ ...(body.events ?? {}),+ },+ });++ const validation = await validateMattermostConfig(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));++ const integration = await getMattermostIntegration(projectId);+ return c.json(integration);+ },+ )+ .delete(+ "/project/:projectId",+ describeRoute({+ operationId: "deleteMattermostIntegration",+ tags: ["Mattermost"],+ description: "Delete Mattermost integration for a project",+ responses: {+ 200: {+ description: "Mattermost integration deleted successfully",+ content: {+ "application/json": {+ schema: resolver(v.object({ success: v.boolean() })),+ },+ },+ },+ },+ }),+ validator("param", v.object({ projectId: v.string() })),+ workspaceAccess.fromProject("projectId"),+ requireWorkspacePermission({ workspace: ["manage_settings"] }),+ async (c) => {+ const { projectId } = c.req.valid("param");++ const existing = await db.query.integrationTable.findFirst({+ where: and(+ eq(integrationTable.projectId, projectId),+ eq(integrationTable.type, "mattermost"),+ ),+ });++ if (!existing) {+ throw new HTTPException(404, {+ message: "Mattermost integration not found",+ });+ }++ await db+ .delete(integrationTable)+ .where(eq(integrationTable.id, existing.id));+ return c.json({ success: true });+ },+ );++export default mattermostIntegration;diff --git a/apps/api/src/plugins/index.ts b/apps/api/src/plugins/index.tsindex ae3b8f063..6d77fd813 100644--- a/apps/api/src/plugins/index.ts+++ b/apps/api/src/plugins/index.ts@@ -2,6 +2,7 @@ import { discordPlugin } from "./discord";import { genericWebhookPlugin } from "./generic-webhook";import { giteaPlugin } from "./gitea";import { githubPlugin, initializeGitHubPlugin } from "./github";+import { mattermostPlugin } from "./mattermost";import { initializeEventSubscriptions, registerPlugin } from "./registry";import { slackPlugin } from "./slack";import { telegramPlugin } from "./telegram";@@ -12,6 +13,7 @@ export function initializePlugins() {registerPlugin(githubPlugin);registerPlugin(giteaPlugin);registerPlugin(slackPlugin);+ registerPlugin(mattermostPlugin);registerPlugin(discordPlugin);registerPlugin(genericWebhookPlugin);registerPlugin(telegramPlugin);diff --git a/apps/api/src/plugins/mattermost/client.ts b/apps/api/src/plugins/mattermost/client.tsnew file mode 100644index 000000000..23d1b0bdc--- /dev/null+++ b/apps/api/src/plugins/mattermost/client.ts@@ -0,0 +1,50 @@+export type MattermostAttachment = {+ color?: string;+ title?: string;+ title_link?: string;+ text?: string;+ fields?: Array<{ title: string; value: string; short?: boolean }>;+};++export type MattermostMessage = {+ text: string;+ attachments?: MattermostAttachment[];+};++const MATTERMOST_TIMEOUT_MS = 10_000;++export async function postToMattermost(+ webhookUrl: string,+ message: MattermostMessage,+): Promise<void> {+ const controller = new AbortController();+ const timeoutId = setTimeout(() => controller.abort(), MATTERMOST_TIMEOUT_MS);++ try {+ const response = await fetch(webhookUrl, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify(message),+ signal: controller.signal,+ });++ if (!response.ok) {+ const errorText = await response.text();+ throw new Error(+ `Mattermost webhook request failed (${response.status}): ${errorText}`,+ );+ }+ } catch (error) {+ if (error instanceof Error && error.name === "AbortError") {+ throw new Error(+ `Mattermost webhook request timed out after ${MATTERMOST_TIMEOUT_MS}ms`,+ );+ }++ throw error;+ } finally {+ clearTimeout(timeoutId);+ }+}diff --git a/apps/api/src/plugins/mattermost/config.ts b/apps/api/src/plugins/mattermost/config.tsnew file mode 100644index 000000000..b8e352913--- /dev/null+++ b/apps/api/src/plugins/mattermost/config.ts@@ -0,0 +1,86 @@+import * as v from "valibot";++const mattermostWebhookUrlPattern = /^https:\/\/[^\s]+$/;++export const mattermostEventKeys = [+ "taskCreated",+ "taskStatusChanged",+ "taskPriorityChanged",+ "taskTitleChanged",+ "taskDescriptionChanged",+ "taskCommentCreated",+] as const;++export type MattermostEventKey = (typeof mattermostEventKeys)[number];++export const mattermostConfigSchema = v.object({+ webhookUrl: v.pipe(+ v.string(),+ v.regex(mattermostWebhookUrlPattern, "Webhook URL must be an HTTPS URL"),+ ),+ channelName: 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 MattermostConfig = v.InferOutput<typeof mattermostConfigSchema>;++export const defaultMattermostEvents: Record<MattermostEventKey, boolean> = {+ taskCreated: true,+ taskStatusChanged: true,+ taskPriorityChanged: false,+ taskTitleChanged: false,+ taskDescriptionChanged: false,+ taskCommentCreated: true,+};++export function getDefaultMattermostConfig(+ webhookUrl: string,+): MattermostConfig {+ return {+ webhookUrl,+ events: { ...defaultMattermostEvents },+ };+}++export function normalizeMattermostConfig(+ config: MattermostConfig,+): MattermostConfig {+ return {+ ...config,+ channelName: config.channelName?.trim() || undefined,+ events: {+ ...defaultMattermostEvents,+ ...(config.events ?? {}),+ },+ };+}++export async function validateMattermostConfig(+ config: unknown,+): Promise<{ valid: boolean; errors?: string[] }> {+ try {+ v.parse(mattermostConfigSchema, config);+ 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/mattermost/events.ts b/apps/api/src/plugins/mattermost/events.tsnew file mode 100644index 000000000..5e5a957a3--- /dev/null+++ b/apps/api/src/plugins/mattermost/events.ts@@ -0,0 +1,280 @@+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 { postToMattermost } from "./client";+import type { MattermostConfig, MattermostEventKey } from "./config";+import { normalizeMattermostConfig } from "./config";++type MattermostEventData = {+ taskTitle: string;+ taskNumber: number | null;+ projectName: string;+ taskUrl: string | null;+ actorName: string | null;+ status: string | null;+ priority: string | null;+};++function isEnabled(config: MattermostConfig, key: MattermostEventKey): boolean {+ return config.events?.[key] ?? false;+}++function escapeText(text: string): string {+ return text+ .replaceAll("&", "&")+ .replaceAll("<", "<")+ .replaceAll(">", ">");+}++function toSentenceCase(value: string | null): string {+ if (!value) return "Unknown";+ return value+ .replace(/[-_]+/g, " ")+ .replace(/\b\w/g, (char) => char.toUpperCase());+}++function truncate(value: string, maxLength: number): string {+ if (value.length <= maxLength) {+ return value;+ }++ return `${value.slice(0, maxLength - 1)}…`;+}++async function getMattermostEventData(+ taskId: string,+ projectId: string,+ userId: string | null,+): Promise<MattermostEventData | null> {+ const [taskRow] = await db+ .select({+ title: taskTable.title,+ number: taskTable.number,+ status: taskTable.status,+ priority: taskTable.priority,+ projectName: projectTable.name,+ projectId: projectTable.id,+ 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 [user] = userId+ ? await db+ .select({ name: userTable.name })+ .from(userTable)+ .where(eq(userTable.id, userId))+ .limit(1)+ : [];++ const clientUrl = process.env.KANEO_CLIENT_URL || "http://localhost:5173";+ const taskUrl = `${clientUrl}/dashboard/workspace/${taskRow.workspaceId}/project/${taskRow.projectId}/task/${taskId}`;++ return {+ taskTitle: taskRow.title,+ taskNumber: taskRow.number,+ projectName: taskRow.projectName,+ taskUrl,+ actorName: user?.name ?? null,+ status: taskRow.status,+ priority: taskRow.priority,+ };+}++async function sendMattermostMessage(+ config: MattermostConfig,+ title: string,+ body: string,+ data: MattermostEventData,+): Promise<void> {+ const issueKey =+ data.taskNumber !== null ? `#${data.taskNumber}` : "Task update";+ const attachmentTitle = `${escapeText(issueKey)} ${escapeText(data.taskTitle)}`;++ await postToMattermost(config.webhookUrl, {+ text: `${title}: ${data.taskTitle}`,+ attachments: [+ {+ color: "#4f46e5",+ title: attachmentTitle,+ title_link: data.taskUrl ?? undefined,+ text: escapeText(body),+ fields: [+ {+ title: "Project",+ value: escapeText(data.projectName),+ short: true,+ },+ {+ title: "Status",+ value: escapeText(toSentenceCase(data.status)),+ short: true,+ },+ {+ title: "Priority",+ value: escapeText(toSentenceCase(data.priority)),+ short: true,+ },+ {+ title: "Triggered by",+ value: data.actorName ? escapeText(data.actorName) : "Kaneo",+ short: true,+ },+ ],+ },+ ],+ });+}++export async function handleTaskCreated(+ event: TaskCreatedEvent,+ context: PluginContext,+): Promise<void> {+ const config = normalizeMattermostConfig(context.config as MattermostConfig);+ if (!isEnabled(config, "taskCreated")) return;++ const data = await getMattermostEventData(+ event.taskId,+ event.projectId,+ event.userId,+ );+ if (!data) return;++ await sendMattermostMessage(+ config,+ "New task created",+ `A new task was added: ${event.title}`,+ data,+ );+}++export async function handleTaskStatusChanged(+ event: TaskStatusChangedEvent,+ context: PluginContext,+): Promise<void> {+ const config = normalizeMattermostConfig(context.config as MattermostConfig);+ if (!isEnabled(config, "taskStatusChanged")) return;++ const data = await getMattermostEventData(+ event.taskId,+ event.projectId,+ event.userId,+ );+ if (!data) return;++ await sendMattermostMessage(+ config,+ "Task status changed",+ `${event.title} moved from ${toSentenceCase(event.oldStatus)} to ${toSentenceCase(event.newStatus)}.`,+ data,+ );+}++export async function handleTaskPriorityChanged(+ event: TaskPriorityChangedEvent,+ context: PluginContext,+): Promise<void> {+ const config = normalizeMattermostConfig(context.config as MattermostConfig);+ if (!isEnabled(config, "taskPriorityChanged")) return;++ const data = await getMattermostEventData(+ event.taskId,+ event.projectId,+ event.userId,+ );+ if (!data) return;++ await sendMattermostMessage(+ config,+ "Task priority changed",+ `${event.title} changed from ${toSentenceCase(event.oldPriority)} to ${toSentenceCase(event.newPriority)}.`,+ data,+ );+}++export async function handleTaskTitleChanged(+ event: TaskTitleChangedEvent,+ context: PluginContext,+): Promise<void> {+ const config = normalizeMattermostConfig(context.config as MattermostConfig);+ if (!isEnabled(config, "taskTitleChanged")) return;++ const data = await getMattermostEventData(+ event.taskId,+ event.projectId,+ event.userId,+ );+ if (!data) return;++ await sendMattermostMessage(+ config,+ "Task title changed",+ `Task renamed from ${truncate(event.oldTitle, 120)} to ${truncate(event.newTitle, 120)}.`,+ data,+ );+}++export async function handleTaskDescriptionChanged(+ event: TaskDescriptionChangedEvent,+ context: PluginContext,+): Promise<void> {+ const config = normalizeMattermostConfig(context.config as MattermostConfig);+ if (!isEnabled(config, "taskDescriptionChanged")) return;++ const data = await getMattermostEventData(+ event.taskId,+ event.projectId,+ event.userId,+ );+ if (!data) return;++ await sendMattermostMessage(+ config,+ "Task description changed",+ `The task description was updated${event.newDescription ? `: ${truncate(event.newDescription.replace(/\s+/g, " "), 160)}` : "."}`,+ data,+ );+}++export async function handleTaskCommentCreated(+ event: TaskCommentCreatedEvent,+ context: PluginContext,+): Promise<void> {+ const config = normalizeMattermostConfig(context.config as MattermostConfig);+ if (!isEnabled(config, "taskCommentCreated")) return;++ const data = await getMattermostEventData(+ event.taskId,+ event.projectId,+ event.userId,+ );+ if (!data) return;++ await sendMattermostMessage(+ config,+ "New task comment",+ truncate(event.comment.replace(/\s+/g, " "), 200),+ data,+ );+}diff --git a/apps/api/src/plugins/mattermost/index.ts b/apps/api/src/plugins/mattermost/index.tsnew file mode 100644index 000000000..cf700b199--- /dev/null+++ b/apps/api/src/plugins/mattermost/index.ts@@ -0,0 +1,22 @@+import type { IntegrationPlugin } from "../types";+import { validateMattermostConfig } from "./config";+import {+ handleTaskCommentCreated,+ handleTaskCreated,+ handleTaskDescriptionChanged,+ handleTaskPriorityChanged,+ handleTaskStatusChanged,+ handleTaskTitleChanged,+} from "./events";++export const mattermostPlugin: IntegrationPlugin = {+ type: "mattermost",+ name: "Mattermost",+ onTaskCreated: handleTaskCreated,+ onTaskStatusChanged: handleTaskStatusChanged,+ onTaskPriorityChanged: handleTaskPriorityChanged,+ onTaskTitleChanged: handleTaskTitleChanged,+ onTaskDescriptionChanged: handleTaskDescriptionChanged,+ onTaskCommentCreated: handleTaskCommentCreated,+ validateConfig: validateMattermostConfig,+};diff --git a/apps/api/src/schemas.ts b/apps/api/src/schemas.tsindex 0445cdd89..24b11f64e 100644--- a/apps/api/src/schemas.ts+++ b/apps/api/src/schemas.ts@@ -191,6 +191,18 @@ export const slackIntegrationSchema = v.object({updatedAt: v.date(),});+export const mattermostIntegrationSchema = v.object({+ id: v.string(),+ projectId: v.string(),+ channelName: v.nullable(v.string()),+ webhookConfigured: v.boolean(),+ maskedWebhookUrl: v.string(),+ events: integrationEventsSchema,+ isActive: v.nullable(v.boolean()),+ createdAt: v.date(),+ updatedAt: v.date(),+});+export const discordIntegrationSchema = v.object({id: v.string(),projectId: v.string(),diff --git a/apps/docs/core/integrations/mattermost.mdx b/apps/docs/core/integrations/mattermost.mdxnew file mode 100644index 000000000..0ba0a086d--- /dev/null+++ b/apps/docs/core/integrations/mattermost.mdx@@ -0,0 +1,66 @@+---+title: Mattermost+description: Send task notifications from Kaneo to a Mattermost channel using incoming webhooks.+---++Kaneo can post task activity to a Mattermost channel whenever events occur in a project. This uses Mattermost's incoming webhook feature — no bot account or OAuth flow required.++## Create a Mattermost webhook++1. In Mattermost, go to **Main Menu → Integrations → Incoming Webhooks**.+2. Click **Add Incoming Webhook**.+3. Give it a title (e.g. "Kaneo") and select the default channel where notifications should be posted.+4. Click **Save**, then copy the webhook URL. It will look like:++```+https://your-mattermost-server.com/hooks/xxxxxxxxxxxxxxxxxxxxxxxxxxxx+```++<Warning>+If the Integrations menu is not visible, your Mattermost admin may need to enable incoming webhooks under **System Console → Integrations → Integration Management**.+</Warning>++## Connect Mattermost in Kaneo++1. Open **Settings** in the sidebar.+2. Under **Projects**, select the project you want to connect.+3. Open the **Integrations** tab.+4. Expand the **Mattermost** section.+5. Paste your webhook URL.+6. Optionally add a channel name label for your own reference.+7. Choose which events to subscribe to (see below).+8. Click **Connect**.++Once connected you can enable or disable the integration with the toggle, update event subscriptions, or disconnect entirely.++## Supported events++| Event | Default | Description |+| --- | --- | --- |+| Task created | On | A new task is created in the project |+| Task status changed | On | A task moves to a different status column |+| Task priority changed | Off | A task's priority is changed |+| Task title changed | Off | A task's title is edited |+| Task description changed | Off | A task's description is edited |+| Task comment created | On | A new comment is added to a task |++You can toggle any combination of these events in the integration settings at any time.++## Message format++Kaneo sends messages using Mattermost's legacy attachment format with:++- A clickable title linking to the task in Kaneo+- A description of the event (e.g. "Task moved from In Progress to Done")+- Fields for project, status, priority, and the user who triggered the event+- An indigo sidebar colour for easy visual identification++Make sure [`KANEO_CLIENT_URL`](/core/installation/environment-variables) is set to your public Kaneo URL so task links work correctly.++## Updating the webhook++To change the webhook URL after connecting, paste the new URL in the webhook field and click **Save Changes**. If you leave the field empty, the existing URL is kept.++## Disconnecting++Click **Disconnect** to remove the integration. This deletes the stored webhook URL and all event settings for that project. You can reconnect at any time by pasting a new webhook URL.diff --git a/apps/web/src/components/project/mattermost-integration-settings.tsx b/apps/web/src/components/project/mattermost-integration-settings.tsxnew file mode 100644index 000000000..d1d1fe706--- /dev/null+++ b/apps/web/src/components/project/mattermost-integration-settings.tsx@@ -0,0 +1,444 @@+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 {+ useCreateMattermostIntegration,+ useDeleteMattermostIntegration,+ useUpdateMattermostIntegration,+} from "@/hooks/mutations/mattermost-integration/use-mattermost-integration";+import useGetMattermostIntegration from "@/hooks/queries/mattermost-integration/use-get-mattermost-integration";+import { toast } from "@/lib/toast";++type MattermostIntegrationFormValues = {+ webhookUrl: string;+ channelName: string;+ taskCreated: boolean;+ taskStatusChanged: boolean;+ taskPriorityChanged: boolean;+ taskTitleChanged: boolean;+ taskDescriptionChanged: boolean;+ taskCommentCreated: boolean;+};++function EventToggle({+ control,+ name,+ label,+}: {+ control: ReturnType<+ typeof useForm<MattermostIntegrationFormValues>+ >["control"];+ name: keyof Pick<+ MattermostIntegrationFormValues,+ | "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>+ )}+ />+ );+}++function isValidMattermostWebhookUrl(value: string): boolean {+ return z.url().safeParse(value).success && /^https:\/\/.+/.test(value);+}++export function MattermostIntegrationSettings({+ projectId,+}: {+ projectId: string;+}) {+ const { t } = useTranslation();+ const schema = React.useMemo(+ () =>+ z.object({+ webhookUrl: z.string(),+ channelName: z.string(),+ taskCreated: z.boolean(),+ taskStatusChanged: z.boolean(),+ taskPriorityChanged: z.boolean(),+ taskTitleChanged: z.boolean(),+ taskDescriptionChanged: z.boolean(),+ taskCommentCreated: z.boolean(),+ }),+ [],+ );++ const { data: integration, isLoading } =+ useGetMattermostIntegration(projectId);+ const { mutateAsync: createIntegration, isPending: isCreating } =+ useCreateMattermostIntegration();+ const { mutateAsync: updateIntegration, isPending: isUpdating } =+ useUpdateMattermostIntegration();+ const { mutateAsync: deleteIntegration, isPending: isDeleting } =+ useDeleteMattermostIntegration();++ const normalizedValues = React.useMemo<MattermostIntegrationFormValues>(+ () => ({+ webhookUrl: "",+ channelName: integration?.channelName ?? "",+ 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<MattermostIntegrationFormValues>({+ resolver: standardSchemaResolver(schema),+ defaultValues: {+ webhookUrl: "",+ channelName: "",+ taskCreated: true,+ taskStatusChanged: true,+ taskPriorityChanged: false,+ taskTitleChanged: false,+ taskDescriptionChanged: false,+ taskCommentCreated: true,+ },+ });+ const { reset } = form;+ const lastResetKeyRef = React.useRef<string | null>(null);+ const resetKey = `${projectId}:${integration?.id ?? "none"}`;++ React.useEffect(() => {+ if (form.formState.isDirty && lastResetKeyRef.current === resetKey) {+ return;+ }++ reset(normalizedValues);+ lastResetKeyRef.current = resetKey;+ }, [form.formState.isDirty, normalizedValues, reset, resetKey]);++ const isConnected = Boolean(integration?.webhookConfigured);+ const isBusy = isCreating || isUpdating || isDeleting;++ const onSubmit = async (values: MattermostIntegrationFormValues) => {+ try {+ const trimmedWebhookUrl = values.webhookUrl.trim();+ const events = {+ taskCreated: values.taskCreated,+ taskStatusChanged: values.taskStatusChanged,+ taskPriorityChanged: values.taskPriorityChanged,+ taskTitleChanged: values.taskTitleChanged,+ taskDescriptionChanged: values.taskDescriptionChanged,+ taskCommentCreated: values.taskCommentCreated,+ };++ if (!isConnected) {+ if (+ !trimmedWebhookUrl ||+ !isValidMattermostWebhookUrl(trimmedWebhookUrl)+ ) {+ form.setError("webhookUrl", {+ message: t(+ "settings:mattermostIntegration.validation.webhookInvalid",+ ),+ });+ return;+ }++ await createIntegration({+ projectId,+ data: {+ webhookUrl: trimmedWebhookUrl,+ channelName: values.channelName || undefined,+ events,+ },+ });+ } else {+ if (+ trimmedWebhookUrl &&+ !isValidMattermostWebhookUrl(trimmedWebhookUrl)+ ) {+ form.setError("webhookUrl", {+ message: t(+ "settings:mattermostIntegration.validation.webhookInvalid",+ ),+ });+ return;+ }++ await updateIntegration({+ projectId,+ json: {+ webhookUrl: trimmedWebhookUrl || undefined,+ channelName: values.channelName || undefined,+ events,+ },+ });+ }++ form.reset({+ ...values,+ webhookUrl: trimmedWebhookUrl,+ });+ toast.success(t("settings:mattermostIntegration.toast.saved"));+ } catch (error) {+ toast.error(+ error instanceof Error+ ? error.message+ : t("settings:mattermostIntegration.toast.saveError"),+ );+ }+ };++ const handleToggleActive = async (checked: boolean) => {+ try {+ await updateIntegration({+ projectId,+ json: { isActive: checked },+ });+ toast.success(+ checked+ ? t("settings:mattermostIntegration.toast.enabled")+ : t("settings:mattermostIntegration.toast.disabled"),+ );+ } catch (error) {+ toast.error(+ error instanceof Error+ ? error.message+ : t("settings:mattermostIntegration.toast.updateError"),+ );+ }+ };++ const handleDelete = async () => {+ try {+ await deleteIntegration(projectId);+ form.reset({+ webhookUrl: "",+ channelName: "",+ taskCreated: true,+ taskStatusChanged: true,+ taskPriorityChanged: false,+ taskTitleChanged: false,+ taskDescriptionChanged: false,+ taskCommentCreated: true,+ });+ toast.success(t("settings:mattermostIntegration.toast.removed"));+ } catch (error) {+ toast.error(+ error instanceof Error+ ? error.message+ : t("settings:mattermostIntegration.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 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">+ <div className="flex items-center gap-2">+ <h3 className="font-medium">+ {t("settings:mattermostIntegration.connectionTitle")}+ </h3>+ </div>+ <p className="text-sm text-muted-foreground">+ {t("settings:mattermostIntegration.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:mattermostIntegration.connected")+ : t("settings:mattermostIntegration.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:mattermostIntegration.webhookLabel")}+ </FormLabel>+ <FormControl>+ <Input+ {...field}+ autoComplete="off"+ placeholder={t(+ "settings:mattermostIntegration.webhookPlaceholder",+ )}+ type="url"+ />+ </FormControl>+ <p className="text-xs text-muted-foreground">+ {t("settings:mattermostIntegration.webhookHint")}+ </p>+ <FormMessage />+ </FormItem>+ )}+ />++ <FormField+ control={form.control}+ name="channelName"+ render={({ field }) => (+ <FormItem>+ <FormLabel>+ {t("settings:mattermostIntegration.channelLabel")}+ </FormLabel>+ <FormControl>+ <Input+ {...field}+ placeholder={t(+ "settings:mattermostIntegration.channelPlaceholder",+ )}+ />+ </FormControl>+ <p className="text-xs text-muted-foreground">+ {t("settings:mattermostIntegration.channelHint")}+ </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:mattermostIntegration.eventsTitle")}+ </h3>+ <p className="text-sm text-muted-foreground">+ {t("settings:mattermostIntegration.eventsHint")}+ </p>+ </div>++ <EventToggle+ control={form.control}+ label={t("settings:mattermostIntegration.events.taskCreated")}+ name="taskCreated"+ />+ <EventToggle+ control={form.control}+ label={t(+ "settings:mattermostIntegration.events.taskStatusChanged",+ )}+ name="taskStatusChanged"+ />+ <EventToggle+ control={form.control}+ label={t(+ "settings:mattermostIntegration.events.taskPriorityChanged",+ )}+ name="taskPriorityChanged"+ />+ <EventToggle+ control={form.control}+ label={t(+ "settings:mattermostIntegration.events.taskTitleChanged",+ )}+ name="taskTitleChanged"+ />+ <EventToggle+ control={form.control}+ label={t(+ "settings:mattermostIntegration.events.taskDescriptionChanged",+ )}+ name="taskDescriptionChanged"+ />+ <EventToggle+ control={form.control}+ label={t(+ "settings:mattermostIntegration.events.taskCommentCreated",+ )}+ name="taskCommentCreated"+ />+ </div>++ <div className="flex flex-wrap gap-2">+ <Button disabled={isBusy} type="submit">+ {isConnected+ ? t("settings:mattermostIntegration.saveChanges")+ : t("settings:mattermostIntegration.connect")}+ </Button>+ {isConnected && (+ <Button+ disabled={isBusy}+ onClick={handleDelete}+ type="button"+ variant="outline"+ >+ <Trash2 className="size-4" />+ {t("settings:mattermostIntegration.disconnect")}+ </Button>+ )}+ </div>+ </form>+ </Form>+ </div>+ );+}diff --git a/apps/web/src/fetchers/mattermost-integration/create-mattermost-integration.ts b/apps/web/src/fetchers/mattermost-integration/create-mattermost-integration.tsnew file mode 100644index 000000000..3c3e78ee0--- /dev/null+++ b/apps/web/src/fetchers/mattermost-integration/create-mattermost-integration.ts@@ -0,0 +1,41 @@+import { getApiUrl } from "@/fetchers/get-api-url";+import type { MattermostIntegration } from "./get-mattermost-integration";++export type CreateMattermostIntegrationRequest = {+ webhookUrl: string;+ channelName?: string;+ events?: {+ taskCreated?: boolean;+ taskStatusChanged?: boolean;+ taskPriorityChanged?: boolean;+ taskTitleChanged?: boolean;+ taskDescriptionChanged?: boolean;+ taskCommentCreated?: boolean;+ };+};++async function createMattermostIntegration(+ projectId: string,+ json: CreateMattermostIntegrationRequest,+) {+ const response = await fetch(+ getApiUrl(`/mattermost-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 MattermostIntegration;+}++export default createMattermostIntegration;diff --git a/apps/web/src/fetchers/mattermost-integration/delete-mattermost-integration.ts b/apps/web/src/fetchers/mattermost-integration/delete-mattermost-integration.tsnew file mode 100644index 000000000..5b97773c9--- /dev/null+++ b/apps/web/src/fetchers/mattermost-integration/delete-mattermost-integration.ts@@ -0,0 +1,23 @@+import { getApiUrl } from "@/fetchers/get-api-url";++async function deleteMattermostIntegration(projectId: string) {+ const response = await fetch(+ getApiUrl(`/mattermost-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 deleteMattermostIntegration;diff --git a/apps/web/src/fetchers/mattermost-integration/get-mattermost-integration.ts b/apps/web/src/fetchers/mattermost-integration/get-mattermost-integration.tsnew file mode 100644index 000000000..460ab931d--- /dev/null+++ b/apps/web/src/fetchers/mattermost-integration/get-mattermost-integration.ts@@ -0,0 +1,38 @@+import { getApiUrl } from "@/fetchers/get-api-url";++export type MattermostIntegration = {+ id: string;+ projectId: string;+ channelName: string | null;+ webhookConfigured: boolean;+ maskedWebhookUrl: string;+ events: {+ taskCreated: boolean;+ taskStatusChanged: boolean;+ taskPriorityChanged: boolean;+ taskTitleChanged: boolean;+ taskDescriptionChanged: boolean;+ taskCommentCreated: boolean;+ };+ isActive: boolean | null;+ createdAt: string;+ updatedAt: string;+} | null;++async function getMattermostIntegration(projectId: string) {+ const response = await fetch(+ getApiUrl(`/mattermost-integration/project/${projectId}`),+ {+ credentials: "include",+ },+ );++ if (!response.ok) {+ const error = await response.text();+ throw new Error(error);+ }++ return (await response.json()) as MattermostIntegration;+}++export default getMattermostIntegration;diff --git a/apps/web/src/fetchers/mattermost-integration/update-mattermost-integration.ts b/apps/web/src/fetchers/mattermost-integration/update-mattermost-integration.tsnew file mode 100644index 000000000..c43fb9c00--- /dev/null+++ b/apps/web/src/fetchers/mattermost-integration/update-mattermost-integration.ts@@ -0,0 +1,42 @@+import { getApiUrl } from "@/fetchers/get-api-url";+import type { MattermostIntegration } from "./get-mattermost-integration";++export type UpdateMattermostIntegrationRequest = {+ webhookUrl?: string;+ channelName?: string | null;+ isActive?: boolean;+ events?: {+ taskCreated?: boolean;+ taskStatusChanged?: boolean;+ taskPriorityChanged?: boolean;+ taskTitleChanged?: boolean;+ taskDescriptionChanged?: boolean;+ taskCommentCreated?: boolean;+ };+};++async function updateMattermostIntegration(+ projectId: string,+ json: UpdateMattermostIntegrationRequest,+) {+ const response = await fetch(+ getApiUrl(`/mattermost-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 MattermostIntegration;+}++export default updateMattermostIntegration;diff --git a/apps/web/src/hooks/mutations/mattermost-integration/use-mattermost-integration.ts b/apps/web/src/hooks/mutations/mattermost-integration/use-mattermost-integration.tsnew file mode 100644index 000000000..065f71cbf--- /dev/null+++ b/apps/web/src/hooks/mutations/mattermost-integration/use-mattermost-integration.ts@@ -0,0 +1,59 @@+import { useMutation, useQueryClient } from "@tanstack/react-query";+import createMattermostIntegration, {+ type CreateMattermostIntegrationRequest,+} from "@/fetchers/mattermost-integration/create-mattermost-integration";+import deleteMattermostIntegration from "@/fetchers/mattermost-integration/delete-mattermost-integration";+import updateMattermostIntegration, {+ type UpdateMattermostIntegrationRequest,+} from "@/fetchers/mattermost-integration/update-mattermost-integration";++export function useCreateMattermostIntegration() {+ const queryClient = useQueryClient();++ return useMutation({+ mutationFn: ({+ projectId,+ data,+ }: {+ projectId: string;+ data: CreateMattermostIntegrationRequest;+ }) => createMattermostIntegration(projectId, data),+ onSuccess: (_, { projectId }) => {+ void queryClient.invalidateQueries({+ queryKey: ["mattermost-integration", projectId],+ });+ },+ });+}++export function useUpdateMattermostIntegration() {+ const queryClient = useQueryClient();++ return useMutation({+ mutationFn: ({+ projectId,+ json,+ }: {+ projectId: string;+ json: UpdateMattermostIntegrationRequest;+ }) => updateMattermostIntegration(projectId, json),+ onSuccess: (_, { projectId }) => {+ void queryClient.invalidateQueries({+ queryKey: ["mattermost-integration", projectId],+ });+ },+ });+}++export function useDeleteMattermostIntegration() {+ const queryClient = useQueryClient();++ return useMutation({+ mutationFn: (projectId: string) => deleteMattermostIntegration(projectId),+ onSuccess: (_, projectId) => {+ void queryClient.invalidateQueries({+ queryKey: ["mattermost-integration", projectId],+ });+ },+ });+}diff --git a/apps/web/src/hooks/queries/mattermost-integration/use-get-mattermost-integration.ts b/apps/web/src/hooks/queries/mattermost-integration/use-get-mattermost-integration.tsnew file mode 100644index 000000000..b9c396759--- /dev/null+++ b/apps/web/src/hooks/queries/mattermost-integration/use-get-mattermost-integration.ts@@ -0,0 +1,12 @@+import { useQuery } from "@tanstack/react-query";+import getMattermostIntegration from "@/fetchers/mattermost-integration/get-mattermost-integration";++function useGetMattermostIntegration(projectId: string) {+ return useQuery({+ queryKey: ["mattermost-integration", projectId],+ queryFn: () => getMattermostIntegration(projectId),+ enabled: Boolean(projectId),+ });+}++export default useGetMattermostIntegration;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.tsxindex 85fab6480..f5aeb455e 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@@ -6,6 +6,7 @@ import {MessageCircle,Radio,Send,+ Server,Webhook,} from "lucide-react";import type { ReactNode } from "react";@@ -15,6 +16,7 @@ import { DiscordIntegrationSettings } from "@/components/project/discord-integraimport { GenericWebhookIntegrationSettings } from "@/components/project/generic-webhook-integration-settings";import { GiteaIntegrationSettings } from "@/components/project/gitea-integration-settings";import { GitHubIntegrationSettings } from "@/components/project/github-integration-settings";+import { MattermostIntegrationSettings } from "@/components/project/mattermost-integration-settings";import { SlackIntegrationSettings } from "@/components/project/slack-integration-settings";import { TelegramIntegrationSettings } from "@/components/project/telegram-integration-settings";import {@@ -89,6 +91,16 @@ function RouteComponent() {<SlackIntegrationSettings projectId={projectId} /></IntegrationSection>+ <IntegrationSection+ icon={<Server className="size-4" />}+ subtitle={t(+ "settings:projectIntegrations.mattermostSectionSubtitle",+ )}+ title={t("settings:projectIntegrations.mattermostSectionTitle")}+ >+ <MattermostIntegrationSettings projectId={projectId} />+ </IntegrationSection>+<IntegrationSectionicon={<Send className="size-4" />}subtitle={t("settings:projectIntegrations.telegramSectionSubtitle")}diff --git a/i18n/de-DE.json b/i18n/de-DE.jsonindex f01bc96ae..cc38ef192 100644--- a/i18n/de-DE.json+++ b/i18n/de-DE.json@@ -601,7 +601,9 @@"slackSectionTitle": "Slack-Integration","slackSectionSubtitle": "Sende Projektaktualisierungen per Incoming Webhook in einen Slack-Kanal.","telegramSectionTitle": "Telegram-Integration",- "telegramSectionSubtitle": "Sende Projektaktualisierungen mit einem Bot in einen Telegram-Chat oder ein Thema."+ "telegramSectionSubtitle": "Sende Projektaktualisierungen mit einem Bot in einen Telegram-Chat oder ein Thema.",+ "mattermostSectionTitle": "Mattermost Integration",+ "mattermostSectionSubtitle": "Send project task updates into a Mattermost channel with an incoming webhook."},"projectVisibility": {"pageTitle": "Projektsichtbarkeit",@@ -1011,6 +1013,44 @@"merged": "Zusammengeführt","draft": "Entwurf","open": "Offen"+ },+ "mattermostIntegration": {+ "validation": {+ "webhookInvalid": "Enter a valid Mattermost webhook URL"+ },+ "toast": {+ "saved": "Mattermost integration saved successfully",+ "saveError": "Failed to save Mattermost integration",+ "enabled": "Mattermost notifications enabled",+ "disabled": "Mattermost notifications paused",+ "updateError": "Failed to update Mattermost integration",+ "removed": "Mattermost integration removed successfully",+ "removeError": "Failed to remove Mattermost integration"+ },+ "connectionTitle": "Mattermost webhook connection",+ "connectionHint": "Paste a Mattermost incoming webhook URL and choose which task events should be posted.",+ "connected": "Connected",+ "paused": "Paused",+ "webhookLabel": "Incoming webhook URL",+ "webhookPlaceholder": "https://your-mattermost-server.com/hooks/...",+ "webhookHint": "Create an Incoming Webhook in Mattermost and paste the generated URL here.",+ "channelLabel": "Channel name",+ "channelPlaceholder": "town-square",+ "channelHint": "Optional label for your reference. Mattermost controls the actual destination channel from the webhook setup.",+ "eventsTitle": "Event notifications",+ "eventsHint": "Choose which project changes should post to Mattermost.",+ "events": {+ "taskCreated": "New tasks",+ "taskStatusChanged": "Status changes",+ "taskPriorityChanged": "Priority changes",+ "taskTitleChanged": "Title changes",+ "taskDescriptionChanged": "Description changes",+ "taskCommentCreated": "New comments"+ },+ "connect": "Connect Mattermost",+ "saveChanges": "Save changes",+ "update": "Update Mattermost",+ "disconnect": "Disconnect"}},"navigation": {diff --git a/i18n/el-GR.json b/i18n/el-GR.jsonindex 4414f830b..06e791e0a 100644--- a/i18n/el-GR.json+++ b/i18n/el-GR.json@@ -601,7 +601,9 @@"genericWebhookSectionTitle": "Γενικά Webhooks","genericWebhookSectionSubtitle": "Στείλτε γεγονότα εργασιών έργου σε οποιοδήποτε HTTP endpoint ως JSON.","slackSectionTitle": "Ενσωμάτωση Slack",- "slackSectionSubtitle": "Στείλτε ενημερώσεις εργασιών έργου σε κανάλι Slack μέσω εισερχόμενου webhook."+ "slackSectionSubtitle": "Στείλτε ενημερώσεις εργασιών έργου σε κανάλι Slack μέσω εισερχόμενου webhook.",+ "mattermostSectionTitle": "Mattermost Integration",+ "mattermostSectionSubtitle": "Send project task updates into a Mattermost channel with an incoming webhook."},"projectVisibility": {"pageTitle": "Ορατότητα έργου",@@ -1009,6 +1011,44 @@"merged": "Συγχωνευμένο","draft": "Πρόχειρο","open": "Ανοιχτό"+ },+ "mattermostIntegration": {+ "validation": {+ "webhookInvalid": "Enter a valid Mattermost webhook URL"+ },+ "toast": {+ "saved": "Mattermost integration saved successfully",+ "saveError": "Failed to save Mattermost integration",+ "enabled": "Mattermost notifications enabled",+ "disabled": "Mattermost notifications paused",+ "updateError": "Failed to update Mattermost integration",+ "removed": "Mattermost integration removed successfully",+ "removeError": "Failed to remove Mattermost integration"+ },+ "connectionTitle": "Mattermost webhook connection",+ "connectionHint": "Paste a Mattermost incoming webhook URL and choose which task events should be posted.",+ "connected": "Connected",+ "paused": "Paused",+ "webhookLabel": "Incoming webhook URL",+ "webhookPlaceholder": "https://your-mattermost-server.com/hooks/...",+ "webhookHint": "Create an Incoming Webhook in Mattermost and paste the generated URL here.",+ "channelLabel": "Channel name",+ "channelPlaceholder": "town-square",+ "channelHint": "Optional label for your reference. Mattermost controls the actual destination channel from the webhook setup.",+ "eventsTitle": "Event notifications",+ "eventsHint": "Choose which project changes should post to Mattermost.",+ "events": {+ "taskCreated": "New tasks",+ "taskStatusChanged": "Status changes",+ "taskPriorityChanged": "Priority changes",+ "taskTitleChanged": "Title changes",+ "taskDescriptionChanged": "Description changes",+ "taskCommentCreated": "New comments"+ },+ "connect": "Connect Mattermost",+ "saveChanges": "Save changes",+ "update": "Update Mattermost",+ "disconnect": "Disconnect"}},"navigation": {diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex 6bb8708ae..710c91b68 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -604,6 +604,8 @@"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.",+ "mattermostSectionTitle": "Mattermost Integration",+ "mattermostSectionSubtitle": "Send project task updates into a Mattermost channel with an incoming webhook.","telegramSectionTitle": "Telegram Integration","telegramSectionSubtitle": "Send project task updates into a Telegram chat or topic with a bot."},@@ -868,6 +870,44 @@"update": "Update Discord","disconnect": "Disconnect"},+ "mattermostIntegration": {+ "validation": {+ "webhookInvalid": "Enter a valid Mattermost webhook URL"+ },+ "toast": {+ "saved": "Mattermost integration saved successfully",+ "saveError": "Failed to save Mattermost integration",+ "enabled": "Mattermost notifications enabled",+ "disabled": "Mattermost notifications paused",+ "updateError": "Failed to update Mattermost integration",+ "removed": "Mattermost integration removed successfully",+ "removeError": "Failed to remove Mattermost integration"+ },+ "connectionTitle": "Mattermost webhook connection",+ "connectionHint": "Paste a Mattermost incoming webhook URL and choose which task events should be posted.",+ "connected": "Connected",+ "paused": "Paused",+ "webhookLabel": "Incoming webhook URL",+ "webhookPlaceholder": "https://your-mattermost-server.com/hooks/...",+ "webhookHint": "Create an Incoming Webhook in Mattermost and paste the generated URL here.",+ "channelLabel": "Channel name",+ "channelPlaceholder": "#team-updates",+ "channelHint": "Optional label for your reference. Mattermost controls the actual destination channel from the webhook setup.",+ "eventsTitle": "Event notifications",+ "eventsHint": "Choose which project changes should post to Mattermost.",+ "events": {+ "taskCreated": "New tasks",+ "taskStatusChanged": "Status changes",+ "taskPriorityChanged": "Priority changes",+ "taskTitleChanged": "Title changes",+ "taskDescriptionChanged": "Description changes",+ "taskCommentCreated": "New comments"+ },+ "connect": "Connect Mattermost",+ "saveChanges": "Save changes",+ "update": "Update Mattermost",+ "disconnect": "Disconnect"+ },"genericWebhookIntegration": {"validation": {"webhookInvalid": "Enter a valid webhook URL"diff --git a/i18n/es-ES.json b/i18n/es-ES.jsonindex 2ba76de06..5b59289b9 100644--- a/i18n/es-ES.json+++ b/i18n/es-ES.json@@ -507,7 +507,9 @@"genericWebhookSectionTitle": "Webhooks generales","genericWebhookSectionSubtitle": "Envía los eventos de las tareas a cualquier endpoint HTTP como JSON.","slackSectionTitle": "Integración con Slack",- "slackSectionSubtitle": "Envía los eventos de las tareas a un canal de Slack con un webhook."+ "slackSectionSubtitle": "Envía los eventos de las tareas a un canal de Slack con un webhook.",+ "mattermostSectionTitle": "Mattermost Integration",+ "mattermostSectionSubtitle": "Send project task updates into a Mattermost channel with an incoming webhook."},"projectVisibility": {"pageTitle": "Visibilidad del Proyecto",@@ -795,6 +797,44 @@"merged": "Merged","draft": "Borrador","open": "Abierta"+ },+ "mattermostIntegration": {+ "validation": {+ "webhookInvalid": "Enter a valid Mattermost webhook URL"+ },+ "toast": {+ "saved": "Mattermost integration saved successfully",+ "saveError": "Failed to save Mattermost integration",+ "enabled": "Mattermost notifications enabled",+ "disabled": "Mattermost notifications paused",+ "updateError": "Failed to update Mattermost integration",+ "removed": "Mattermost integration removed successfully",+ "removeError": "Failed to remove Mattermost integration"+ },+ "connectionTitle": "Mattermost webhook connection",+ "connectionHint": "Paste a Mattermost incoming webhook URL and choose which task events should be posted.",+ "connected": "Connected",+ "paused": "Paused",+ "webhookLabel": "Incoming webhook URL",+ "webhookPlaceholder": "https://your-mattermost-server.com/hooks/...",+ "webhookHint": "Create an Incoming Webhook in Mattermost and paste the generated URL here.",+ "channelLabel": "Channel name",+ "channelPlaceholder": "town-square",+ "channelHint": "Optional label for your reference. Mattermost controls the actual destination channel from the webhook setup.",+ "eventsTitle": "Event notifications",+ "eventsHint": "Choose which project changes should post to Mattermost.",+ "events": {+ "taskCreated": "New tasks",+ "taskStatusChanged": "Status changes",+ "taskPriorityChanged": "Priority changes",+ "taskTitleChanged": "Title changes",+ "taskDescriptionChanged": "Description changes",+ "taskCommentCreated": "New comments"+ },+ "connect": "Connect Mattermost",+ "saveChanges": "Save changes",+ "update": "Update Mattermost",+ "disconnect": "Disconnect"}},"navigation": {diff --git a/i18n/fr-FR.json b/i18n/fr-FR.jsonindex 827808cf7..2c5654d26 100644--- a/i18n/fr-FR.json+++ b/i18n/fr-FR.json@@ -601,7 +601,9 @@"genericWebhookSectionTitle": "Webhooks génériques","genericWebhookSectionSubtitle": "Envoyez les événements des tâches du projet vers n'importe quel point de terminaison HTTP au format JSON.","slackSectionTitle": "Intégration Slack",- "slackSectionSubtitle": "Envoyez les mises à jour des tâches du projet dans un canal Slack via un webhook entrant."+ "slackSectionSubtitle": "Envoyez les mises à jour des tâches du projet dans un canal Slack via un webhook entrant.",+ "mattermostSectionTitle": "Mattermost Integration",+ "mattermostSectionSubtitle": "Send project task updates into a Mattermost channel with an incoming webhook."},"projectVisibility": {"pageTitle": "Visibilité du projet",@@ -1009,6 +1011,44 @@"merged": "Fusionné","draft": "Brouillon","open": "Ouvert"+ },+ "mattermostIntegration": {+ "validation": {+ "webhookInvalid": "Enter a valid Mattermost webhook URL"+ },+ "toast": {+ "saved": "Mattermost integration saved successfully",+ "saveError": "Failed to save Mattermost integration",+ "enabled": "Mattermost notifications enabled",+ "disabled": "Mattermost notifications paused",+ "updateError": "Failed to update Mattermost integration",+ "removed": "Mattermost integration removed successfully",+ "removeError": "Failed to remove Mattermost integration"+ },+ "connectionTitle": "Mattermost webhook connection",+ "connectionHint": "Paste a Mattermost incoming webhook URL and choose which task events should be posted.",+ "connected": "Connected",+ "paused": "Paused",+ "webhookLabel": "Incoming webhook URL",+ "webhookPlaceholder": "https://your-mattermost-server.com/hooks/...",+ "webhookHint": "Create an Incoming Webhook in Mattermost and paste the generated URL here.",+ "channelLabel": "Channel name",+ "channelPlaceholder": "town-square",+ "channelHint": "Optional label for your reference. Mattermost controls the actual destination channel from the webhook setup.",+ "eventsTitle": "Event notifications",+ "eventsHint": "Choose which project changes should post to Mattermost.",+ "events": {+ "taskCreated": "New tasks",+ "taskStatusChanged": "Status changes",+ "taskPriorityChanged": "Priority changes",+ "taskTitleChanged": "Title changes",+ "taskDescriptionChanged": "Description changes",+ "taskCommentCreated": "New comments"+ },+ "connect": "Connect Mattermost",+ "saveChanges": "Save changes",+ "update": "Update Mattermost",+ "disconnect": "Disconnect"}},"navigation": {diff --git a/i18n/ko-KR.json b/i18n/ko-KR.jsonindex 5b115405a..658a8a62b 100644--- a/i18n/ko-KR.json+++ b/i18n/ko-KR.json@@ -601,7 +601,9 @@"slackSectionTitle": "Slack 연동","slackSectionSubtitle": "수신 웹훅을 사용하여 프로젝트 작업 업데이트를 Slack 채널로 전송합니다.","telegramSectionTitle": "Telegram 연동",- "telegramSectionSubtitle": "봇을 사용하여 프로젝트 작업 업데이트를 Telegram 채팅 또는 토픽으로 전송합니다."+ "telegramSectionSubtitle": "봇을 사용하여 프로젝트 작업 업데이트를 Telegram 채팅 또는 토픽으로 전송합니다.",+ "mattermostSectionTitle": "Mattermost Integration",+ "mattermostSectionSubtitle": "Send project task updates into a Mattermost channel with an incoming webhook."},"projectVisibility": {"pageTitle": "프로젝트 공개 설정",@@ -1011,6 +1013,44 @@"merged": "병합됨","draft": "초안","open": "열림"+ },+ "mattermostIntegration": {+ "validation": {+ "webhookInvalid": "Enter a valid Mattermost webhook URL"+ },+ "toast": {+ "saved": "Mattermost integration saved successfully",+ "saveError": "Failed to save Mattermost integration",+ "enabled": "Mattermost notifications enabled",+ "disabled": "Mattermost notifications paused",+ "updateError": "Failed to update Mattermost integration",+ "removed": "Mattermost integration removed successfully",+ "removeError": "Failed to remove Mattermost integration"+ },+ "connectionTitle": "Mattermost webhook connection",+ "connectionHint": "Paste a Mattermost incoming webhook URL and choose which task events should be posted.",+ "connected": "Connected",+ "paused": "Paused",+ "webhookLabel": "Incoming webhook URL",+ "webhookPlaceholder": "https://your-mattermost-server.com/hooks/...",+ "webhookHint": "Create an Incoming Webhook in Mattermost and paste the generated URL here.",+ "channelLabel": "Channel name",+ "channelPlaceholder": "town-square",+ "channelHint": "Optional label for your reference. Mattermost controls the actual destination channel from the webhook setup.",+ "eventsTitle": "Event notifications",+ "eventsHint": "Choose which project changes should post to Mattermost.",+ "events": {+ "taskCreated": "New tasks",+ "taskStatusChanged": "Status changes",+ "taskPriorityChanged": "Priority changes",+ "taskTitleChanged": "Title changes",+ "taskDescriptionChanged": "Description changes",+ "taskCommentCreated": "New comments"+ },+ "connect": "Connect Mattermost",+ "saveChanges": "Save changes",+ "update": "Update Mattermost",+ "disconnect": "Disconnect"}},"navigation": {diff --git a/i18n/mk-MK.json b/i18n/mk-MK.jsonindex 161a8dbde..1978b6e5b 100644--- a/i18n/mk-MK.json+++ b/i18n/mk-MK.json@@ -601,7 +601,9 @@"genericWebhookSectionTitle": "Општи webhooks","genericWebhookSectionSubtitle": "Испрати настани за задачи на проектот до кој било HTTP endpoint како JSON.","slackSectionTitle": "Slack интеграција",- "slackSectionSubtitle": "Испрати ажурирања за задачи на проектот во Slack канал преку дојдовен webhook."+ "slackSectionSubtitle": "Испрати ажурирања за задачи на проектот во Slack канал преку дојдовен webhook.",+ "mattermostSectionTitle": "Mattermost Integration",+ "mattermostSectionSubtitle": "Send project task updates into a Mattermost channel with an incoming webhook."},"projectVisibility": {"pageTitle": "Видливост на проект",@@ -1009,6 +1011,44 @@"merged": "Споен","draft": "Нацрт","open": "Отворен"+ },+ "mattermostIntegration": {+ "validation": {+ "webhookInvalid": "Enter a valid Mattermost webhook URL"+ },+ "toast": {+ "saved": "Mattermost integration saved successfully",+ "saveError": "Failed to save Mattermost integration",+ "enabled": "Mattermost notifications enabled",+ "disabled": "Mattermost notifications paused",+ "updateError": "Failed to update Mattermost integration",+ "removed": "Mattermost integration removed successfully",+ "removeError": "Failed to remove Mattermost integration"+ },+ "connectionTitle": "Mattermost webhook connection",+ "connectionHint": "Paste a Mattermost incoming webhook URL and choose which task events should be posted.",+ "connected": "Connected",+ "paused": "Paused",+ "webhookLabel": "Incoming webhook URL",+ "webhookPlaceholder": "https://your-mattermost-server.com/hooks/...",+ "webhookHint": "Create an Incoming Webhook in Mattermost and paste the generated URL here.",+ "channelLabel": "Channel name",+ "channelPlaceholder": "town-square",+ "channelHint": "Optional label for your reference. Mattermost controls the actual destination channel from the webhook setup.",+ "eventsTitle": "Event notifications",+ "eventsHint": "Choose which project changes should post to Mattermost.",+ "events": {+ "taskCreated": "New tasks",+ "taskStatusChanged": "Status changes",+ "taskPriorityChanged": "Priority changes",+ "taskTitleChanged": "Title changes",+ "taskDescriptionChanged": "Description changes",+ "taskCommentCreated": "New comments"+ },+ "connect": "Connect Mattermost",+ "saveChanges": "Save changes",+ "update": "Update Mattermost",+ "disconnect": "Disconnect"}},"navigation": {diff --git a/i18n/nl-NL.json b/i18n/nl-NL.jsonindex ab4265761..099973d50 100644--- a/i18n/nl-NL.json+++ b/i18n/nl-NL.json@@ -507,7 +507,9 @@"genericWebhookSectionTitle": "Generieke Webhooks","genericWebhookSectionSubtitle": "Verstuur updates van projecttaken als JSON naar elk gewenst HTTP-eindpunt.","slackSectionTitle": "Slack Integratie",- "slackSectionSubtitle": "Verstuur updates van projecttaken naar een Slack-kanaal met een binnenkomende webhook."+ "slackSectionSubtitle": "Verstuur updates van projecttaken naar een Slack-kanaal met een binnenkomende webhook.",+ "mattermostSectionTitle": "Mattermost Integration",+ "mattermostSectionSubtitle": "Send project task updates into a Mattermost channel with an incoming webhook."},"projectVisibility": {"pageTitle": "Projectzichtbaarheid",@@ -795,6 +797,44 @@"merged": "Samengevoegd","draft": "Concept","open": "Open"+ },+ "mattermostIntegration": {+ "validation": {+ "webhookInvalid": "Enter a valid Mattermost webhook URL"+ },+ "toast": {+ "saved": "Mattermost integration saved successfully",+ "saveError": "Failed to save Mattermost integration",+ "enabled": "Mattermost notifications enabled",+ "disabled": "Mattermost notifications paused",+ "updateError": "Failed to update Mattermost integration",+ "removed": "Mattermost integration removed successfully",+ "removeError": "Failed to remove Mattermost integration"+ },+ "connectionTitle": "Mattermost webhook connection",+ "connectionHint": "Paste a Mattermost incoming webhook URL and choose which task events should be posted.",+ "connected": "Connected",+ "paused": "Paused",+ "webhookLabel": "Incoming webhook URL",+ "webhookPlaceholder": "https://your-mattermost-server.com/hooks/...",+ "webhookHint": "Create an Incoming Webhook in Mattermost and paste the generated URL here.",+ "channelLabel": "Channel name",+ "channelPlaceholder": "town-square",+ "channelHint": "Optional label for your reference. Mattermost controls the actual destination channel from the webhook setup.",+ "eventsTitle": "Event notifications",+ "eventsHint": "Choose which project changes should post to Mattermost.",+ "events": {+ "taskCreated": "New tasks",+ "taskStatusChanged": "Status changes",+ "taskPriorityChanged": "Priority changes",+ "taskTitleChanged": "Title changes",+ "taskDescriptionChanged": "Description changes",+ "taskCommentCreated": "New comments"+ },+ "connect": "Connect Mattermost",+ "saveChanges": "Save changes",+ "update": "Update Mattermost",+ "disconnect": "Disconnect"}},"navigation": {diff --git a/i18n/ru-RU.json b/i18n/ru-RU.jsonindex d1bb88179..b82f50ed4 100644--- a/i18n/ru-RU.json+++ b/i18n/ru-RU.json@@ -599,7 +599,9 @@"slackSectionTitle": "Интеграция со Slack","slackSectionSubtitle": "Отправка обновлений по задачам проекта в канал Slack через входящий вебхук.","telegramSectionTitle": "Интеграция с Telegram",- "telegramSectionSubtitle": "Отправка обновлений по задачам проекта в чат или тему Telegram через бота."+ "telegramSectionSubtitle": "Отправка обновлений по задачам проекта в чат или тему Telegram через бота.",+ "mattermostSectionTitle": "Mattermost Integration",+ "mattermostSectionSubtitle": "Send project task updates into a Mattermost channel with an incoming webhook."},"projectVisibility": {"pageTitle": "Видимость проекта",@@ -1015,6 +1017,44 @@"merged": "Влит","draft": "Черновик","open": "Открыт"+ },+ "mattermostIntegration": {+ "validation": {+ "webhookInvalid": "Enter a valid Mattermost webhook URL"+ },+ "toast": {+ "saved": "Mattermost integration saved successfully",+ "saveError": "Failed to save Mattermost integration",+ "enabled": "Mattermost notifications enabled",+ "disabled": "Mattermost notifications paused",+ "updateError": "Failed to update Mattermost integration",+ "removed": "Mattermost integration removed successfully",+ "removeError": "Failed to remove Mattermost integration"+ },+ "connectionTitle": "Mattermost webhook connection",+ "connectionHint": "Paste a Mattermost incoming webhook URL and choose which task events should be posted.",+ "connected": "Connected",+ "paused": "Paused",+ "webhookLabel": "Incoming webhook URL",+ "webhookPlaceholder": "https://your-mattermost-server.com/hooks/...",+ "webhookHint": "Create an Incoming Webhook in Mattermost and paste the generated URL here.",+ "channelLabel": "Channel name",+ "channelPlaceholder": "town-square",+ "channelHint": "Optional label for your reference. Mattermost controls the actual destination channel from the webhook setup.",+ "eventsTitle": "Event notifications",+ "eventsHint": "Choose which project changes should post to Mattermost.",+ "events": {+ "taskCreated": "New tasks",+ "taskStatusChanged": "Status changes",+ "taskPriorityChanged": "Priority changes",+ "taskTitleChanged": "Title changes",+ "taskDescriptionChanged": "Description changes",+ "taskCommentCreated": "New comments"+ },+ "connect": "Connect Mattermost",+ "saveChanges": "Save changes",+ "update": "Update Mattermost",+ "disconnect": "Disconnect"}},"navigation": {diff --git a/i18n/uk-UA.json b/i18n/uk-UA.jsonindex efb2a827c..f9db6787d 100644--- a/i18n/uk-UA.json+++ b/i18n/uk-UA.json@@ -599,7 +599,9 @@"slackSectionTitle": "Інтеґрація зі Slack","slackSectionSubtitle": "Надсилайте оновлення завдань проєкту до каналу Slack за допомогою вхідного вебхука.","telegramSectionTitle": "Інтеґрація з Telegram",- "telegramSectionSubtitle": "Надсилайте оновлення завдань проєкту до чату або теми Telegram за допомогою бота."+ "telegramSectionSubtitle": "Надсилайте оновлення завдань проєкту до чату або теми Telegram за допомогою бота.",+ "mattermostSectionTitle": "Mattermost Integration",+ "mattermostSectionSubtitle": "Send project task updates into a Mattermost channel with an incoming webhook."},"projectVisibility": {"pageTitle": "Видимість проєкту",@@ -1009,6 +1011,44 @@"merged": "Змерджено","draft": "Чернетка","open": "Відкрито"+ },+ "mattermostIntegration": {+ "validation": {+ "webhookInvalid": "Enter a valid Mattermost webhook URL"+ },+ "toast": {+ "saved": "Mattermost integration saved successfully",+ "saveError": "Failed to save Mattermost integration",+ "enabled": "Mattermost notifications enabled",+ "disabled": "Mattermost notifications paused",+ "updateError": "Failed to update Mattermost integration",+ "removed": "Mattermost integration removed successfully",+ "removeError": "Failed to remove Mattermost integration"+ },+ "connectionTitle": "Mattermost webhook connection",+ "connectionHint": "Paste a Mattermost incoming webhook URL and choose which task events should be posted.",+ "connected": "Connected",+ "paused": "Paused",+ "webhookLabel": "Incoming webhook URL",+ "webhookPlaceholder": "https://your-mattermost-server.com/hooks/...",+ "webhookHint": "Create an Incoming Webhook in Mattermost and paste the generated URL here.",+ "channelLabel": "Channel name",+ "channelPlaceholder": "town-square",+ "channelHint": "Optional label for your reference. Mattermost controls the actual destination channel from the webhook setup.",+ "eventsTitle": "Event notifications",+ "eventsHint": "Choose which project changes should post to Mattermost.",+ "events": {+ "taskCreated": "New tasks",+ "taskStatusChanged": "Status changes",+ "taskPriorityChanged": "Priority changes",+ "taskTitleChanged": "Title changes",+ "taskDescriptionChanged": "Description changes",+ "taskCommentCreated": "New comments"+ },+ "connect": "Connect Mattermost",+ "saveChanges": "Save changes",+ "update": "Update Mattermost",+ "disconnect": "Disconnect"}},"navigation": {