@@ -5,6 +5,7 @@ import { observer } from 'mobx-react';
55
66import { UNKNOWN_SOURCE } from '../../../model/http/sources' ;
77import { RTCConnection } from '../../../model/webrtc/rtc-connection' ;
8+ import { getSummaryColour } from '../../../model/events/categorization' ;
89
910import {
1011 CollapsibleCard ,
@@ -17,12 +18,13 @@ import {
1718} from '../../common/collapsible-section' ;
1819import {
1920 ContentLabel ,
21+ ContentLabelBlock ,
2022 ContentMonoValueInline ,
2123 ContentValue
2224} from '../../common/text-content' ;
2325import { SourceIcon } from '../../common/source-icon' ;
2426import { Pill } from '../../common/pill' ;
25- import { getSummaryColour } from '../../../model/events/categorization ' ;
27+ import { UrlBreakdown } from '../url-breakdown ' ;
2628
2729interface RTCConnectionCardProps {
2830 connection : RTCConnection ;
@@ -116,19 +118,37 @@ export class RTCConnectionCard extends React.Component<RTCConnectionCardProps> {
116118 </ CollapsibleSectionSummary >
117119 </ CollapsibleSection >
118120
119- { connection . source !== UNKNOWN_SOURCE
120- ? < CollapsibleSection >
121+ { connection . sourceURL && < >
122+ < ContentLabelBlock > Source page: </ ContentLabelBlock >
123+
124+ < CollapsibleSection prefixTrigger = { true } >
125+ < CollapsibleSectionSummary >
126+ < ContentMonoValueInline >
127+ { connection . sourceURL . toString ( ) }
128+ </ ContentMonoValueInline >
129+ </ CollapsibleSectionSummary >
130+
131+ < CollapsibleSectionBody >
132+ < UrlBreakdown url = { connection . sourceURL } />
133+ </ CollapsibleSectionBody >
134+ </ CollapsibleSection >
135+ </ > }
136+
137+ { connection . source !== UNKNOWN_SOURCE && < >
138+ < ContentLabelBlock > Client: </ ContentLabelBlock >
139+
140+ < CollapsibleSection prefixTrigger = { true } >
121141 < CollapsibleSectionSummary >
122- < ContentLabel > Client: </ ContentLabel >
123- < ContentValue > { connection . source . summary } </ ContentValue >
142+ < ContentMonoValueInline >
143+ { connection . source . ua }
144+ </ ContentMonoValueInline >
124145 </ CollapsibleSectionSummary >
125146
126147 < CollapsibleSectionBody >
127148 < p > { connection . source . description } </ p >
128149 </ CollapsibleSectionBody >
129150 </ CollapsibleSection >
130- : null
131- }
151+ </ > }
132152 </ CollapsibleCard > ;
133153 }
134154}
0 commit comments