Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8f1902

Browse files
committed
feat: add task link when workspace is running a task
1 parent 09e1a8a commit b8f1902

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

site/src/modules/workspaces/WorkspaceMoreActions/WorkspaceMoreActions.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
EllipsisVertical,
2020
HistoryIcon,
2121
SettingsIcon,
22+
SquareCheckBigIcon,
2223
TrashIcon,
2324
} from "lucide-react";
2425
import { type FC, useEffect, useState } from "react";
@@ -126,6 +127,17 @@ export const WorkspaceMoreActions: FC<WorkspaceMoreActionsProps> = ({
126127
Download logs&hellip;
127128
</DropdownMenuItem>
128129

130+
{workspace.latest_build.has_ai_task && (
131+
<DropdownMenuItem asChild>
132+
<RouterLink
133+
to={`/tasks/${workspace.owner_name}/${workspace.name}`}
134+
>
135+
<SquareCheckBigIcon />
136+
See task
137+
</RouterLink>
138+
</DropdownMenuItem>
139+
)}
140+
129141
<DropdownMenuSeparator />
130142

131143
<DropdownMenuItem

0 commit comments

Comments
 (0)