File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import { Search } from "lucide-react";
21
21
import { Markdown } from "./Markdown" ;
22
22
import { useAlertSearch } from "@/hooks/useAlertSearch" ;
23
23
import { useCallback } from "react" ;
24
- import { useSearchParams } from "react-router-dom" ;
24
+ import { useNavigate , useSearchParams } from "react-router-dom" ;
25
25
import { useFilteredAlerts } from "@/hooks/useAlertsData" ;
26
26
import { useClientSidePagination } from "@/hooks/useClientSidePagination" ;
27
27
@@ -75,6 +75,7 @@ export function AlertsTable() {
75
75
nextPage,
76
76
prevPage,
77
77
} = useAlertSearch ( ) ;
78
+ const navigate = useNavigate ( ) ;
78
79
const [ searchParams , setSearchParams ] = useSearchParams ( ) ;
79
80
const { data : filteredAlerts = [ ] } = useFilteredAlerts ( ) ;
80
81
@@ -174,7 +175,13 @@ export function AlertsTable() {
174
175
</ TableHeader >
175
176
< TableBody >
176
177
{ dataView . map ( ( alert ) => (
177
- < Row key = { alert . alert_id } className = "h-20" >
178
+ < Row
179
+ key = { alert . alert_id }
180
+ className = "h-20"
181
+ onAction = { ( ) =>
182
+ navigate ( `/prompt/${ alert . conversation . chat_id } ` )
183
+ }
184
+ >
178
185
< Cell className = "truncate" > { alert . trigger_type } </ Cell >
179
186
< Cell className = "overflow-auto whitespace-nowrap max-w-80" >
180
187
{ wrapObjectOutput ( alert . trigger_string ) }
You can’t perform that action at this time.
0 commit comments