Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -1,7 +1,7 @@
// P4 Tasks (AK-P4b) §6 — Task create route. Loader provides the assignee picker
// options + optional entity pre-fill (when opened as the "new task" CTA from an
// entity detail view). Action creates the task, audits, logs activity, redirects
// to the detail. Missing tasks.write -> 404.
// back to the list. Missing tasks.write -> 404.
//
// Interim-UI (AD-28): renders the ~/ui preview screen TaskNewPage; the form posts to
// this route action. Final Subframe optics land as a tracked design-nachzug once
@@ -19,7 +19,7 @@ import {
type TaskPriority,
} from "~/utils/integrations/taskService.server";
import { auditTaskEvent, logTaskActivity } from "~/utils/integrations/taskAudit.server";
import { tasksDetailPath, tasksListPath } from "~/utils/integrations/taskRoutePaths";
import { tasksListPath } from "~/utils/integrations/taskRoutePaths";
import { TaskNewPage, TASK_CREATOR_ASSIGNEE } from "~/components/screens/tasks/TaskNewPage";
import ServerError from "~/components/ui/errors/ServerError";
@@ -86,7 +86,8 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
const task = await createTask({
tenantId: ctx.tenantId,
userId: ctx.userId,
tenantSlug: params.tenant,
ctx,
title,
description: description || null,
priority,
@@ -102,11 +103,14 @@ export const action = async ({ request, params }: ActionFunctionArgs) => {
ctx,
taskId: task.id,
activityType: "task_created",
summaryText: "Aufgabe erstellt",
summaryText: "crm.activity.task_created",
linkedEntityType: task.linkedEntityType,
linkedEntityId: task.linkedEntityId,
});
return redirect(tasksDetailPath(tenantSlug, task.id));
// Back to the list, not into the new task's detail view: creating a task is
// a side task while working through the list, and being thrown into the
// detail page meant navigating back for every single one.
return redirect(`${tasksListPath(tenantSlug)}?toast=${encodeURIComponent("tasks.toast.created")}`);
} catch (error) {
if (error instanceof Response) throw error;
throw notFoundResponse();