diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/ExternalEvent/getExternalEvent.ts b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/ExternalEvent/getExternalEvent.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/ExternalEvent/getExternalEvent.ts
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/ExternalEvent/getExternalEvent.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Fade.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Fade.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Fade.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Fade.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/NodeDetails.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/NodeDetails.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/NodeDetails.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/NodeDetails.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Nop/Nop.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Nop/Nop.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Nop/Nop.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Nop/Nop.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Nop/index.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Nop/index.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Nop/index.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Nop/index.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Nop/nopHandles.ts b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Nop/nopHandles.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Nop/nopHandles.ts
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Nop/nopHandles.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Sleep/Sleep.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Sleep/Sleep.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Sleep/Sleep.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Sleep/Sleep.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Sleep/SleepDetails.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Sleep/SleepDetails.tsx
similarity index 95%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Sleep/SleepDetails.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Sleep/SleepDetails.tsx
index 42be469bf..22d8e6b0b 100644
--- a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Sleep/SleepDetails.tsx
+++ b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Sleep/SleepDetails.tsx
@@ -1,8 +1,8 @@
+import { formatTime, getVariable } from '@/app/utils'
import { NodeRun, SleepNode } from 'littlehorse-client/proto'
import { FC } from 'react'
-import { NodeDetails } from '../NodeDetails'
-import { getVariable, formatTime } from '@/app/utils'
import { NodeRunsList } from '../../NodeRunsList'
+import { NodeDetails } from '../NodeDetails'
export const SleepDetails: FC<{ sleepNode?: SleepNode; nodeRunsList: [NodeRun] }> = ({ sleepNode, nodeRunsList }) => {
if (!sleepNode) return
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Sleep/index.ts b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Sleep/index.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Sleep/index.ts
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Sleep/index.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/StartMultipleThreads.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/StartMultipleThreads.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/StartMultipleThreads.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/StartMultipleThreads.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/StartThread.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/StartThread.tsx
similarity index 95%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/StartThread.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/StartThread.tsx
index f6ed7b5c5..3439037ea 100644
--- a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/StartThread.tsx
+++ b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/StartThread.tsx
@@ -4,9 +4,10 @@ import { FC, memo } from 'react'
import { Handle, Position } from 'reactflow'
import { NodeProps } from '.'
import { useThread } from '../../hooks/useThread'
+import { NodeRunsList } from '../NodeRunsList'
import { Fade } from './Fade'
import { NodeDetails } from './NodeDetails'
-import { NodeRunsList } from '@/app/(authenticated)/(diagram)/components/NodeRunsList'
+
const Node: FC = ({ data }) => {
const { fade, nodeRunsList } = data
const { setThread } = useThread()
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/StatusPin.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/StatusPin.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/StatusPin.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/StatusPin.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Task/Task.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Task/Task.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Task/Task.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Task/Task.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Task/TaskDetails.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Task/TaskDetails.tsx
similarity index 91%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Task/TaskDetails.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Task/TaskDetails.tsx
index 1120b1d22..2f9bde41a 100644
--- a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Task/TaskDetails.tsx
+++ b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Task/TaskDetails.tsx
@@ -1,10 +1,10 @@
-import { getTaskDef } from '@/app/(authenticated)/taskDef/[name]/getTaskDef'
+import LinkWithTenant from '@/app/[tenantId]/components/LinkWithTenant'
+import { getTaskDef } from '@/app/[tenantId]/taskDef/[name]/getTaskDef'
import { getVariable, getVariableValue } from '@/app/utils'
-import { useWhoAmI } from '@/contexts/WhoAmIContext'
import { useQuery } from '@tanstack/react-query'
import { NodeRun, TaskNode } from 'littlehorse-client/proto'
import { ExternalLinkIcon } from 'lucide-react'
-import Link from 'next/link'
+import { useParams } from 'next/navigation'
import { FC } from 'react'
import { NodeRunsList } from '../../NodeRunsList'
import { NodeDetails } from '../NodeDetails'
@@ -16,7 +16,7 @@ export const TaskDetails: FC<{
selected: boolean
nodeRunsList: [NodeRun]
}> = ({ taskNode, nodeRun, selected, nodeRunsList }) => {
- const { tenantId } = useWhoAmI()
+ const tenantId = useParams().tenantId as string
const { data } = useQuery({
queryKey: ['taskRun', nodeRun, tenantId],
queryFn: async () => {
@@ -31,7 +31,7 @@ export const TaskDetails: FC<{
if (!taskNode?.taskDefId?.name) return null
if (nodeRun?.task?.taskRunId) return null
if (!selected) return null
- const taskDef = await getTaskDef({
+ const taskDef = await getTaskDef(tenantId, {
name: taskNode?.taskDefId?.name,
})
return taskDef
@@ -95,12 +95,12 @@ export const TaskDetails: FC<{
export const TaskLink: FC<{ taskName?: string }> = ({ taskName }) => {
return (
-
{taskName}
-
+
)
}
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Task/getTaskRun.ts b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Task/getTaskRun.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Task/getTaskRun.ts
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Task/getTaskRun.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Task/index.ts b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Task/index.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/Task/index.ts
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/Task/index.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/ThrowEvent/ThrowEvent.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/ThrowEvent/ThrowEvent.tsx
similarity index 94%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/ThrowEvent/ThrowEvent.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/ThrowEvent/ThrowEvent.tsx
index 9cae9ee49..5d14c9de6 100644
--- a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/ThrowEvent/ThrowEvent.tsx
+++ b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/ThrowEvent/ThrowEvent.tsx
@@ -1,10 +1,10 @@
import { Node as NodeProto } from 'littlehorse-client/proto'
import { CircleArrowOutUpRightIcon, ExternalLinkIcon } from 'lucide-react'
-import Link from 'next/link'
import { FC, memo } from 'react'
import { Handle, Position } from 'reactflow'
import { NodeProps } from '..'
+import LinkWithTenant from '@/app/[tenantId]/components/LinkWithTenant'
import { Fade } from '../Fade'
import { NodeDetails } from '../NodeDetails'
@@ -21,13 +21,13 @@ const Node: FC> = ({ data }) => {
WorkflowEventDef
-
{throwEventNode.eventDefId?.name}
-
+
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/ThrowEvent/getWorkflowEvent.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/ThrowEvent/getWorkflowEvent.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/ThrowEvent/getWorkflowEvent.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/ThrowEvent/getWorkflowEvent.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/ThrowEvent/index.ts b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/ThrowEvent/index.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/ThrowEvent/index.ts
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/ThrowEvent/index.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserAndGroupAssignmentInfo.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserAndGroupAssignmentInfo.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserAndGroupAssignmentInfo.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserAndGroupAssignmentInfo.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserTask.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTask.tsx
similarity index 88%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserTask.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTask.tsx
index 3abf045c3..4f502cdc4 100644
--- a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserTask.tsx
+++ b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTask.tsx
@@ -1,12 +1,12 @@
-import { UserTaskDefDetails } from '@/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserTaskDefDetails'
+import { UserTaskDefDetails } from '@/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTaskDefDetails'
+import LinkWithTenant from '@/app/[tenantId]/components/LinkWithTenant'
import { ExternalLinkIcon, UserIcon } from 'lucide-react'
-import Link from 'next/link'
import { FC, memo } from 'react'
import { Handle, Position } from 'reactflow'
+import { NodeRunsList } from '../../NodeRunsList'
import { Fade } from '../Fade'
import { NodeProps } from '../index'
import { NodeDetails } from '../NodeDetails'
-import { NodeRunsList } from '../../NodeRunsList'
const Node: FC = ({ data, selected }) => {
if (!data.userTask) return null
@@ -18,13 +18,13 @@ const Node: FC = ({ data, selected }) => {
UserTask
-
{userTask.userTaskDefName}
-
+
{nodeRun ? (
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserTaskDefDetails.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTaskDefDetails.tsx
similarity index 80%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserTaskDefDetails.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTaskDefDetails.tsx
index 6b4674417..dfa7ef909 100644
--- a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserTaskDefDetails.tsx
+++ b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTaskDefDetails.tsx
@@ -1,4 +1,4 @@
-import { UserAndGroupAssignmentInfo } from '@/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserAndGroupAssignmentInfo'
+import { UserAndGroupAssignmentInfo } from '@/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserAndGroupAssignmentInfo'
import { getVariable } from '@/app/utils'
import { UserTaskNode } from 'littlehorse-client/proto'
import { FC } from 'react'
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserTaskNotes.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTaskNotes.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/UserTaskNotes.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/UserTaskNotes.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/getUserTaskRun.ts b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/getUserTaskRun.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/getUserTaskRun.ts
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/getUserTaskRun.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/index.ts b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/index.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/UserTask/index.ts
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/UserTask/index.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/WaitForThreads.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/WaitForThreads.tsx
similarity index 95%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/WaitForThreads.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/WaitForThreads.tsx
index 3946134d1..4fe407968 100644
--- a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/WaitForThreads.tsx
+++ b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/WaitForThreads.tsx
@@ -3,9 +3,9 @@ import { PlusIcon } from 'lucide-react'
import { FC, memo } from 'react'
import { Handle, Position } from 'reactflow'
import { NodeProps } from '.'
+import { NodeRunsList } from '../NodeRunsList'
import { Fade } from './Fade'
import { NodeDetails } from './NodeDetails'
-import { NodeRunsList } from '@/app/(authenticated)/(diagram)/components/NodeRunsList'
const Node: FC = ({ data }) => {
const { fade, nodeRunsList } = data
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/extractNodes.ts b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/extractNodes.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/extractNodes.ts
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/extractNodes.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/index.ts b/dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/index.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/NodeTypes/index.ts
rename to dashboard/src/app/[tenantId]/(diagram)/components/NodeTypes/index.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/components/ThreadPanel.tsx b/dashboard/src/app/[tenantId]/(diagram)/components/ThreadPanel.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/components/ThreadPanel.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/components/ThreadPanel.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/context/ModalContext.tsx b/dashboard/src/app/[tenantId]/(diagram)/context/ModalContext.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/context/ModalContext.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/context/ModalContext.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/context/ThreadContext.tsx b/dashboard/src/app/[tenantId]/(diagram)/context/ThreadContext.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/context/ThreadContext.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/context/ThreadContext.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/context/index.ts b/dashboard/src/app/[tenantId]/(diagram)/context/index.ts
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/context/index.ts
rename to dashboard/src/app/[tenantId]/(diagram)/context/index.ts
diff --git a/dashboard/src/app/(authenticated)/(diagram)/hooks/useModal.tsx b/dashboard/src/app/[tenantId]/(diagram)/hooks/useModal.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/hooks/useModal.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/hooks/useModal.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/hooks/useReplaceQueryValue.tsx b/dashboard/src/app/[tenantId]/(diagram)/hooks/useReplaceQueryValue.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/hooks/useReplaceQueryValue.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/hooks/useReplaceQueryValue.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/hooks/useScrollbar.tsx b/dashboard/src/app/[tenantId]/(diagram)/hooks/useScrollbar.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/hooks/useScrollbar.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/hooks/useScrollbar.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/hooks/useThread.tsx b/dashboard/src/app/[tenantId]/(diagram)/hooks/useThread.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/hooks/useThread.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/hooks/useThread.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/layout.tsx b/dashboard/src/app/[tenantId]/(diagram)/layout.tsx
similarity index 100%
rename from dashboard/src/app/(authenticated)/(diagram)/layout.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/layout.tsx
diff --git a/dashboard/src/app/(authenticated)/(diagram)/wfRun/[...ids]/components/Details.tsx b/dashboard/src/app/[tenantId]/(diagram)/wfRun/[...ids]/components/Details.tsx
similarity index 86%
rename from dashboard/src/app/(authenticated)/(diagram)/wfRun/[...ids]/components/Details.tsx
rename to dashboard/src/app/[tenantId]/(diagram)/wfRun/[...ids]/components/Details.tsx
index 83ee05701..b573821f3 100644
--- a/dashboard/src/app/(authenticated)/(diagram)/wfRun/[...ids]/components/Details.tsx
+++ b/dashboard/src/app/[tenantId]/(diagram)/wfRun/[...ids]/components/Details.tsx
@@ -1,7 +1,7 @@
'use client'
+import LinkWithTenant from '@/app/[tenantId]/components/LinkWithTenant'
import { concatWfRunIds, formatDate } from '@/app/utils'
import { WfRun } from 'littlehorse-client/proto'
-import Link from 'next/link'
import { FC } from 'react'
type DetailsProps = WfRun
@@ -25,20 +25,18 @@ export const Details: FC = ({ id, status, wfSpecId, startTime }) =
{id?.parentWfRunId && (