@@ -8,6 +8,7 @@ import { useParams } from 'next/navigation';
88import { config } from '@/lib/config' ;
99import { isApiError } from '@/lib/api/errors' ;
1010import { queryKeys } from '@/lib/query' ;
11+ import { ResponsiveTable } from '@/components/ui/responsive-table' ;
1112import { EmptyState , ErrorState , LoadingState , safeErrorMessage } from '@/components/ui/api-states' ;
1213import { AddressText } from '@/components/wallet/address-text' ;
1314import { AdminGuard } from '@/components/admin-guard' ;
@@ -284,7 +285,7 @@ function WebhookLogsContent() {
284285 />
285286 ) : (
286287 < div className = "border border-border rounded-lg overflow-hidden bg-card" >
287- < div className = "overflow-x-auto" >
288+ < ResponsiveTable >
288289 < table className = "min-w-full divide-y divide-border text-left text-sm" >
289290 < thead className = "bg-muted text-muted-foreground uppercase text-xs font-semibold tracking-wider" >
290291 < tr >
@@ -304,17 +305,17 @@ function WebhookLogsContent() {
304305 className = "hover:bg-muted/50 transition-colors cursor-pointer"
305306 onClick = { ( ) => toggleExpand ( evt . id ) }
306307 >
307- < td className = "px-6 py-4 whitespace-nowrap text-muted-foreground" >
308+ < td data-label = "" className = "px-6 py-4 whitespace-nowrap text-muted-foreground" >
308309 < span className = "inline-block transition-transform duration-200"
309310 style = { { transform : expandedId === evt . id ? 'rotate(90deg)' : 'rotate(0deg)' } }
310311 >
311312 ▶
312313 </ span >
313314 </ td >
314- < td className = "px-6 py-4 whitespace-nowrap text-muted-foreground font-mono text-xs" >
315+ < td data-label = "Timestamp" className = "px-6 py-4 whitespace-nowrap text-muted-foreground font-mono text-xs" >
315316 { new Date ( evt . timestamp ) . toLocaleString ( ) }
316317 </ td >
317- < td className = "px-6 py-4 font-semibold font-mono text-xs text-foreground" >
318+ < td data-label = "Event Type" className = "px-6 py-4 font-semibold font-mono text-xs text-foreground" >
318319 < div className = "flex items-center gap-2" >
319320 < span > { evt . eventType } </ span >
320321 { evt . isReplay && (
@@ -324,15 +325,15 @@ function WebhookLogsContent() {
324325 ) }
325326 </ div >
326327 </ td >
327- < td className = "px-6 py-4 text-muted-foreground font-mono text-xs" >
328+ < td data-label = "Target" className = "px-6 py-4 text-muted-foreground font-mono text-xs" >
328329 < AddressText
329330 address = { evt . affectedIdentifier }
330331 label = "Target address or resource"
331332 announceInvalid = { false }
332333 className = "text-muted-foreground"
333334 />
334335 </ td >
335- < td className = "px-6 py-4 whitespace-nowrap" >
336+ < td data-label = "Status" className = "px-6 py-4 whitespace-nowrap" >
336337 < span
337338 className = { `inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold tracking-wide uppercase ${
338339 evt . status === 'success'
@@ -345,11 +346,11 @@ function WebhookLogsContent() {
345346 { evt . status }
346347 </ span >
347348 </ td >
348- < td className = "px-6 py-4 text-muted-foreground text-xs max-w-xs truncate font-mono" >
349+ < td data-label = "Payload" className = "px-6 py-4 text-muted-foreground text-xs max-w-xs truncate font-mono" >
349350 { JSON . stringify ( evt . payloadSummary ) }
350351 </ td >
351352 { isMockMode && (
352- < td className = "px-6 py-4 whitespace-nowrap" >
353+ < td data-label = "Actions" className = "px-6 py-4 whitespace-nowrap" >
353354 < Button
354355 size = "sm"
355356 variant = "outline"
@@ -376,7 +377,7 @@ function WebhookLogsContent() {
376377 ) ) }
377378 </ tbody >
378379 </ table >
379- </ div >
380+ </ ResponsiveTable >
380381 </ div >
381382 ) }
382383 </ div >
0 commit comments