This repository was archived by the owner on Jul 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 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";
2121import { Markdown } from "./Markdown" ;
2222import { useAlertSearch } from "@/hooks/useAlertSearch" ;
2323import { useCallback } from "react" ;
24- import { useSearchParams } from "react-router-dom" ;
24+ import { useNavigate , useSearchParams } from "react-router-dom" ;
2525import { useFilteredAlerts } from "@/hooks/useAlertsData" ;
2626import { useClientSidePagination } from "@/hooks/useClientSidePagination" ;
2727
@@ -75,6 +75,7 @@ export function AlertsTable() {
7575 nextPage,
7676 prevPage,
7777 } = useAlertSearch ( ) ;
78+ const navigate = useNavigate ( ) ;
7879 const [ searchParams , setSearchParams ] = useSearchParams ( ) ;
7980 const { data : filteredAlerts = [ ] } = useFilteredAlerts ( ) ;
8081
@@ -174,7 +175,13 @@ export function AlertsTable() {
174175 </ TableHeader >
175176 < TableBody >
176177 { 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+ >
178185 < Cell className = "truncate" > { alert . trigger_type } </ Cell >
179186 < Cell className = "overflow-auto whitespace-nowrap max-w-80" >
180187 { wrapObjectOutput ( alert . trigger_string ) }
You can’t perform that action at this time.
0 commit comments