@@ -11,7 +11,7 @@ import { Badge } from "../../components/ui/badge";
1111import { Select } from "../../components/ui/select" ;
1212import { formatTicketId } from "../../utils/format" ;
1313import TicketStatusBadge from "../components/TicketStatusBadge" ;
14- import { format } from 'date-fns' ;
14+ import { formatTimelineDate , getTimeZoneAbbr } from "../../utils/dateUtils" ;
1515import {
1616 Tooltip ,
1717 TooltipContent ,
@@ -96,6 +96,7 @@ function MyTickets() {
9696 const searchLower = searchQuery . toLowerCase ( ) ;
9797 const matchesSearch =
9898 ( ticket . subject || '' ) . toLowerCase ( ) . includes ( searchLower ) ||
99+ ( ticket . summary || '' ) . toLowerCase ( ) . includes ( searchLower ) ||
99100 ( ticket . description || '' ) . toLowerCase ( ) . includes ( searchLower ) ||
100101 String ( ticket . id ) . includes ( searchLower ) ;
101102
@@ -262,8 +263,8 @@ function MyTickets() {
262263 >
263264 < div className = "space-y-3" >
264265 < div >
265- < p className = "text-[10px] uppercase font-bold text-gray-400 tracking-wider mb-1" > Issue Overview</ p >
266- < p className = "text-sm font-medium leading-relaxed overflow-hidden text-ellipsis whitespace-nowrap" > { ticket . description || "No description provided" } </ p >
266+ < p className = "text-[10px] uppercase font-bold text-gray-400 tracking-wider mb-1" > Issue Overview</ p >
267+ < p className = "text-sm font-medium leading-relaxed overflow-hidden text-ellipsis whitespace-nowrap" > { ticket . summary || ticket . description || "No description provided" } </ p >
267268 </ div >
268269 < div className = "grid grid-cols-2 gap-3" >
269270 < div >
@@ -284,9 +285,9 @@ function MyTickets() {
284285 </ Tooltip >
285286 </ td >
286287 < td className = "px-6 py-4 w-1/3 max-w-[300px]" >
287- < p className = "text-sm font-semibold text-gray-900 truncate group-hover:text-emerald-700 transition-colors" >
288- { ticket . subject || ticket . description || "No subject" }
289- </ p >
288+ < p className = "text-sm font-semibold text-gray-900 truncate group-hover:text-emerald-700 transition-colors" >
289+ { ticket . summary || ticket . subject || ticket . description || "No subject" }
290+ </ p >
290291 </ td >
291292 < td className = "px-6 py-4" >
292293 < span className = "text-sm font-medium text-gray-600 bg-gray-100 px-2.5 py-1 rounded-md" >
@@ -301,16 +302,16 @@ function MyTickets() {
301302 { ticket . priority || 'medium' }
302303 </ span >
303304 </ td >
304- < td className = "px-6 py-4" >
305- < div className = "flex flex-col" >
306- < span className = "text-sm font-semibold text-gray-700" >
307- { format ( new Date ( ticket . created_at ) , 'MMM d, yyyy' ) }
308- </ span >
309- < span className = "text-xs text-gray-400 font-medium " >
310- { format ( new Date ( ticket . created_at ) , 'hh:mm a' ) }
311- </ span >
312- </ div >
313- </ td >
305+ < td className = "px-6 py-4" >
306+ < div className = "flex flex-col" >
307+ < span className = "text-sm font-semibold text-gray-700" >
308+ { formatTimelineDate ( ticket . created_at ) }
309+ </ span >
310+ < span className = "text-[10px] text-emerald-600 font-black uppercase tracking-widest mt-0.5 " >
311+ { getTimeZoneAbbr ( ) } Node
312+ </ span >
313+ </ div >
314+ </ td >
314315 </ tr >
315316 ) ) }
316317 </ tbody >
0 commit comments