@@ -320,7 +320,7 @@ const EventRow = observer((props: EventRowProps) => {
320320 failure = { event }
321321 /> ;
322322 } else if ( event . isHttp ( ) ) {
323- if ( event . api ?. isBuiltInApi ) {
323+ if ( event . api ?. isBuiltInApi && event . api . matchedOperation ( ) ) {
324324 return < BuiltInApiRow
325325 index = { index }
326326 isSelected = { isSelected }
@@ -554,9 +554,6 @@ const BuiltInApiRow = observer((p: {
554554 } = p . exchange ;
555555 const api = p . exchange . api ! ; // Only shown for built-in APIs, so this must be set
556556
557- // Quick hack, but it works for our only two current examples:
558- const name = api . service . name . split ( ' ' ) [ 0 ] ;
559-
560557 return < TrafficEventListRow
561558 role = "row"
562559 aria-label = 'row'
@@ -569,20 +566,27 @@ const BuiltInApiRow = observer((p: {
569566 >
570567 < RowPin pinned = { pinned } />
571568 < RowMarker category = { category } title = { describeEventCategory ( category ) } />
572- < EventTypeColumn > { name } </ EventTypeColumn >
569+ < EventTypeColumn >
570+ { api . service . shortName } : {
571+ _ . startCase (
572+ api . operation . name
573+ . replace ( 'eth_' , '' ) // One-off hack for Ethereum, but result looks much nicer.
574+ )
575+ }
576+ </ EventTypeColumn >
573577 < Source title = { request . source . summary } >
574578 < Icon
575579 { ...request . source . icon }
576580 fixedWidth = { true }
577581 />
578582 </ Source >
579583 < BuiltInApiRequestDetails >
580- { api . operation . name } ( {
584+ {
581585 api . request . parameters
582- . filter ( param => param . value !== undefined )
583- . map ( param => `${ param . name } =${ JSON . stringify ( param . value ) } ` )
584- . join ( ', ' )
585- } )
586+ . filter ( param => param . value !== undefined )
587+ . map ( param => `${ param . name } =${ JSON . stringify ( param . value ) } ` )
588+ . join ( ', ' )
589+ }
586590 </ BuiltInApiRequestDetails >
587591 </ TrafficEventListRow >
588592} ) ;
0 commit comments