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 @@ -20,7 +20,7 @@ import { sanitizeQuestionPrompt, parsingPromptText } from "@/lib/utils";
20
20
import { Search } from "lucide-react" ;
21
21
import { useAlertSearch } from "@/hooks/useAlertSearch" ;
22
22
import { useCallback } from "react" ;
23
- import { useSearchParams } from "react-router-dom" ;
23
+ import { useNavigate , useSearchParams } from "react-router-dom" ;
24
24
import { useFilteredAlerts } from "@/hooks/useAlertsData" ;
25
25
import { useClientSidePagination } from "@/hooks/useClientSidePagination" ;
26
26
@@ -60,6 +60,7 @@ export function AlertsTable() {
60
60
nextPage,
61
61
prevPage,
62
62
} = useAlertSearch ( ) ;
63
+ const navigate = useNavigate ( ) ;
63
64
const [ searchParams , setSearchParams ] = useSearchParams ( ) ;
64
65
const { data : filteredAlerts = [ ] } = useFilteredAlerts ( ) ;
65
66
@@ -157,7 +158,13 @@ export function AlertsTable() {
157
158
</ TableHeader >
158
159
< TableBody >
159
160
{ dataView . map ( ( alert ) => (
160
- < Row key = { alert . alert_id } className = "h-20" >
161
+ < Row
162
+ key = { alert . alert_id }
163
+ className = "h-20"
164
+ onAction = { ( ) =>
165
+ navigate ( `/prompt/${ alert . conversation . chat_id } ` )
166
+ }
167
+ >
161
168
< Cell className = "truncate" >
162
169
{ formatDistanceToNow ( new Date ( alert . timestamp ) , {
163
170
addSuffix : true ,
You can’t perform that action at this time.
0 commit comments