diff --git a/site/src/components/Dashboard/DeploymentBanner/DeploymentBannerView.tsx b/site/src/components/Dashboard/DeploymentBanner/DeploymentBannerView.tsx index 847761dceda55..61f68cc5b0f0b 100644 --- a/site/src/components/Dashboard/DeploymentBanner/DeploymentBannerView.tsx +++ b/site/src/components/Dashboard/DeploymentBanner/DeploymentBannerView.tsx @@ -75,13 +75,14 @@ export interface DeploymentBannerViewProps { export const DeploymentBannerView: FC = (props) => { const { health, stats, fetchStats } = props; const theme = useTheme(); + const aggregatedMinutes = useMemo(() => { if (!stats) { return; } return dayjs(stats.collected_at).diff(stats.aggregated_from, "minutes"); }, [stats]); - const displayLatency = stats?.workspaces.connection_latency_ms.P50 || -1; + const [timeUntilRefresh, setTimeUntilRefresh] = useState(0); useEffect(() => { if (!stats || !fetchStats) { @@ -130,7 +131,7 @@ export const DeploymentBannerView: FC = (props) => { justify-content: center; background-color: ${unhealthy ? colors.red[10] : undefined}; padding: 0 12px; - height: ${bannerHeight}px; + height: 100%; color: #fff; & svg { @@ -151,10 +152,13 @@ export const DeploymentBannerView: FC = (props) => { pointer-events: none; `; + const displayLatency = stats?.workspaces.connection_latency_ms.P50 || -1; + return (
= (props) => {
)} +
Workspaces
@@ -245,6 +250,7 @@ export const DeploymentBannerView: FC = (props) => { />
+
Transmission
@@ -279,6 +285,7 @@ export const DeploymentBannerView: FC = (props) => {
+
Active Connections
@@ -317,6 +324,7 @@ export const DeploymentBannerView: FC = (props) => {
+