@@ -16,11 +16,10 @@ import { useWorkspace } from "@features/workspace/hooks/useWorkspace";
1616import { useBlurOnEscape } from "@hooks/useBlurOnEscape" ;
1717import { useFileWatcher } from "@hooks/useFileWatcher" ;
1818import { useSetHeaderContent } from "@hooks/useSetHeaderContent" ;
19- import { Box , Flex , Text , Tooltip } from "@radix-ui/themes" ;
19+ import { Box , Flex , Text } from "@radix-ui/themes" ;
2020import type { Task } from "@shared/types" ;
2121import { useCallback , useEffect , useMemo , useRef , useState } from "react" ;
2222import { useHotkeys , useHotkeysContext } from "react-hotkeys-hook" ;
23- import { toast } from "sonner" ;
2423import { ExternalAppsOpener } from "./ExternalAppsOpener" ;
2524
2625const MIN_REVIEW_WIDTH = 300 ;
@@ -86,33 +85,20 @@ export function TaskDetail({ task: initialTask }: TaskDetailProps) {
8685 useBlurOnEscape ( ) ;
8786 useWorkspaceEvents ( taskId ) ;
8887
89- const copyTaskId = useCallback ( ( ) => {
90- navigator . clipboard . writeText ( taskId ) ;
91- toast . success ( "Task ID copied" ) ;
92- } , [ taskId ] ) ;
93-
9488 const headerContent = useMemo (
9589 ( ) => (
9690 < Flex align = "center" justify = "between" gap = "2" width = "100%" >
9791 < Text size = "1" weight = "medium" truncate style = { { minWidth : 0 } } >
9892 { task . title }
9993 </ Text >
100- < Flex align = "center" gap = "2" className = "shrink-0" >
101- < Tooltip content = "Copy task ID" >
102- < button
103- type = "button"
104- onClick = { copyTaskId }
105- className = "no-drag cursor-pointer border-0 bg-transparent p-0 font-mono text-[10px] text-gray-9 hover:text-gray-11"
106- style = { { lineHeight : "20px" } }
107- >
108- { taskId }
109- </ button >
110- </ Tooltip >
111- { openTargetPath && < ExternalAppsOpener targetPath = { openTargetPath } /> }
112- </ Flex >
94+ { openTargetPath && (
95+ < Flex align = "center" gap = "2" className = "shrink-0" >
96+ < ExternalAppsOpener targetPath = { openTargetPath } />
97+ </ Flex >
98+ ) }
11399 </ Flex >
114100 ) ,
115- [ task . title , taskId , openTargetPath , copyTaskId ] ,
101+ [ task . title , openTargetPath ] ,
116102 ) ;
117103
118104 useSetHeaderContent ( headerContent ) ;
0 commit comments