Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,19 @@
// P4 Tasks (AK-P4b) — pure route-path builders for Tasks URLs. The loader builds
// these and passes them into the View-Models so the VMs stay routing-agnostic.
export function tasksListPath(tenantSlug: string): string {
return `/${tenantSlug}/tasks`;
}
export function tasksDetailPath(tenantSlug: string, taskId: string): string {
return `/${tenantSlug}/tasks/${taskId}`;
}
export function tasksNewPath(tenantSlug: string, prefill?: { entityType: string; entityId: string }): string {
const base = `/${tenantSlug}/tasks/new`;
if (!prefill) {
return base;
}
const query = new URLSearchParams({ entityType: prefill.entityType, entityId: prefill.entityId });
return `${base}?${query.toString()}`;
}