@@ -75,13 +75,14 @@ export interface DeploymentBannerViewProps {
75
75
export const DeploymentBannerView : FC < DeploymentBannerViewProps > = ( props ) => {
76
76
const { health, stats, fetchStats } = props ;
77
77
const theme = useTheme ( ) ;
78
+
78
79
const aggregatedMinutes = useMemo ( ( ) => {
79
80
if ( ! stats ) {
80
81
return ;
81
82
}
82
83
return dayjs ( stats . collected_at ) . diff ( stats . aggregated_from , "minutes" ) ;
83
84
} , [ stats ] ) ;
84
- const displayLatency = stats ?. workspaces . connection_latency_ms . P50 || - 1 ;
85
+
85
86
const [ timeUntilRefresh , setTimeUntilRefresh ] = useState ( 0 ) ;
86
87
useEffect ( ( ) => {
87
88
if ( ! stats || ! fetchStats ) {
@@ -130,7 +131,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
130
131
justify-content : center;
131
132
background-color : ${ unhealthy ? colors . red [ 10 ] : undefined } ;
132
133
padding : 0 12px ;
133
- height : ${ bannerHeight } px ;
134
+ height : 100 % ;
134
135
color : # fff ;
135
136
136
137
& svg {
@@ -151,10 +152,13 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
151
152
pointer-events : none;
152
153
` ;
153
154
155
+ const displayLatency = stats ?. workspaces . connection_latency_ms . P50 || - 1 ;
156
+
154
157
return (
155
158
< div
156
159
css = { {
157
160
position : "sticky" ,
161
+ lineHeight : 1 ,
158
162
height : bannerHeight ,
159
163
bottom : 0 ,
160
164
zIndex : 1 ,
@@ -216,6 +220,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
216
220
</ div >
217
221
) }
218
222
</ Tooltip >
223
+
219
224
< div css = { styles . group } >
220
225
< div css = { styles . category } > Workspaces</ div >
221
226
< div css = { styles . values } >
@@ -245,6 +250,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
245
250
/>
246
251
</ div >
247
252
</ div >
253
+
248
254
< div css = { styles . group } >
249
255
< Tooltip title = { `Activity in the last ~${ aggregatedMinutes } minutes` } >
250
256
< div css = { styles . category } > Transmission</ div >
@@ -279,6 +285,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
279
285
</ Tooltip >
280
286
</ div >
281
287
</ div >
288
+
282
289
< div css = { styles . group } >
283
290
< div css = { styles . category } > Active Connections</ div >
284
291
@@ -317,6 +324,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
317
324
</ Tooltip >
318
325
</ div >
319
326
</ div >
327
+
320
328
< div
321
329
css = { {
322
330
color : theme . palette . text . primary ,
0 commit comments