Add Gateway connectivity diagnostics and traffic chart improvements
This commit is contained in:
+344
-136
@@ -945,7 +945,7 @@ p {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 8px;
|
||||
gap: 2px;
|
||||
padding-top: 11px;
|
||||
}
|
||||
|
||||
@@ -1002,15 +1002,15 @@ p {
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
.client-device-name:hover .client-device-name-primary,
|
||||
.client-device-name:focus-visible .client-device-name-primary {
|
||||
.client-device-name:not(.is-address-only):hover .client-device-name-primary,
|
||||
.client-device-name:not(.is-address-only):focus-visible .client-device-name-primary {
|
||||
opacity: 0;
|
||||
filter: blur(8px);
|
||||
transform: translateY(-0.18em) scale(1.04);
|
||||
}
|
||||
|
||||
.client-device-name:hover .client-device-name-ip,
|
||||
.client-device-name:focus-visible .client-device-name-ip {
|
||||
.client-device-name:not(.is-address-only):hover .client-device-name-ip,
|
||||
.client-device-name:not(.is-address-only):focus-visible .client-device-name-ip {
|
||||
opacity: 1;
|
||||
filter: blur(0);
|
||||
transform: translateY(0) scale(1);
|
||||
@@ -1062,10 +1062,11 @@ p {
|
||||
|
||||
.client-device-edit-wrap {
|
||||
flex: 0 0 auto;
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
align-self: flex-end;
|
||||
opacity: 0.34;
|
||||
transition: opacity 180ms ease;
|
||||
transition: opacity 180ms ease, filter 240ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.client-device:hover .client-device-edit-wrap,
|
||||
@@ -1073,6 +1074,14 @@ p {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.client-device-name-heading:has(.client-device-name:not(.is-address-only):hover) + .client-device-edit-wrap,
|
||||
.client-device-name-heading:has(.client-device-name:not(.is-address-only):focus-visible) + .client-device-edit-wrap {
|
||||
opacity: 0;
|
||||
filter: blur(5px);
|
||||
pointer-events: none;
|
||||
transform: translateX(-4px);
|
||||
}
|
||||
|
||||
.client-device-pin-wrap {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
@@ -1090,7 +1099,7 @@ p {
|
||||
}
|
||||
|
||||
.client-device-edit {
|
||||
width: 26px;
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
}
|
||||
|
||||
@@ -1363,104 +1372,35 @@ p {
|
||||
height: var(--client-device-chart-height);
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
display: grid;
|
||||
grid-template-columns: 0 minmax(0, 1fr);
|
||||
grid-template-rows: minmax(0, 1fr) 14px;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.client-device-traffic-chart:has(.client-device-traffic-bar:hover) {
|
||||
z-index: 7;
|
||||
}
|
||||
|
||||
.client-device.is-pinned .client-device-traffic-chart {
|
||||
grid-template-columns: 52px minmax(0, 1fr);
|
||||
column-gap: 5px;
|
||||
transform-origin: bottom center;
|
||||
animation: client-device-chart-expand 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
|
||||
}
|
||||
|
||||
.client-device-traffic-chart::after {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 13px;
|
||||
left: 0;
|
||||
height: 1px;
|
||||
background: color-mix(in oklch, var(--client-border) 58%, transparent);
|
||||
content: '';
|
||||
}
|
||||
|
||||
.client-device-traffic-track {
|
||||
position: absolute;
|
||||
inset: 0 3px 14px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--sample-count), minmax(1px, 1fr));
|
||||
align-items: flex-end;
|
||||
gap: 0;
|
||||
animation: client-device-traffic-shift 560ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.client-device-traffic-bar {
|
||||
position: relative;
|
||||
min-height: 2px;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.client-device-traffic-bar:hover {
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.client-device-traffic-time {
|
||||
position: absolute;
|
||||
right: 2px;
|
||||
bottom: 0;
|
||||
left: 2px;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: color-mix(in oklch, var(--client-text) 46%, var(--client-muted));
|
||||
font-size: 8.5px;
|
||||
line-height: 10px;
|
||||
text-shadow: 0 1px 5px var(--client-bg);
|
||||
}
|
||||
|
||||
.client-device-traffic-bar-fill {
|
||||
position: absolute;
|
||||
inset: 0 -2px;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
border-radius: 3px 3px 0 0;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
|
||||
.client-device-traffic-bar.is-new .client-device-traffic-bar-fill {
|
||||
transform-origin: bottom center;
|
||||
animation: client-device-traffic-grow 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
|
||||
}
|
||||
|
||||
.client-device-traffic-axis {
|
||||
position: absolute;
|
||||
inset: 0 auto 14px 2px;
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
width: 1px;
|
||||
color: color-mix(in oklch, var(--client-text) 62%, var(--client-muted));
|
||||
font: 700 7.5px/1 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
pointer-events: none;
|
||||
text-shadow: 0 0 3px var(--client-bg), 0 0 7px var(--client-bg);
|
||||
}
|
||||
|
||||
.client-device-traffic-axis > span {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
right: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.client-device-traffic-axis > span::before {
|
||||
width: 5px;
|
||||
height: 1px;
|
||||
flex: 0 0 5px;
|
||||
background: currentColor;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.client-device-traffic-axis > .is-max {
|
||||
top: 0;
|
||||
}
|
||||
@@ -1474,24 +1414,96 @@ p {
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.client-device-traffic-bar-fill > span {
|
||||
.client-device-traffic-plot {
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 1;
|
||||
min-width: 0;
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.client-device.is-pinned .client-device-traffic-plot {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.client-device-traffic-plot svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.client-device-traffic-bar-fill > .is-gateway {
|
||||
background: color-mix(in oklch, var(--client-text) 58%, var(--client-muted));
|
||||
.client-device-traffic-grid line {
|
||||
stroke: color-mix(in oklch, var(--client-border) 60%, transparent);
|
||||
stroke-width: 1;
|
||||
vector-effect: non-scaling-stroke;
|
||||
}
|
||||
|
||||
.client-device-traffic-bar-fill > .is-proxy {
|
||||
background: var(--client-accent);
|
||||
.client-device-traffic-lines {
|
||||
transform-box: view-box;
|
||||
animation: client-device-traffic-shift 560ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.client-device-traffic-bar-tooltip {
|
||||
position: absolute;
|
||||
bottom: calc(100% + 7px);
|
||||
left: 50%;
|
||||
z-index: 20;
|
||||
.client-device-traffic-lines polyline,
|
||||
.client-device-traffic-lines line {
|
||||
fill: none;
|
||||
stroke: color-mix(in oklch, var(--client-text) 72%, var(--client-muted));
|
||||
stroke-width: 1.8;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
vector-effect: non-scaling-stroke;
|
||||
}
|
||||
|
||||
.client-device-traffic-lines .is-proxy {
|
||||
stroke: var(--client-accent);
|
||||
}
|
||||
|
||||
.client-device-traffic-lines line.is-new {
|
||||
stroke-dasharray: 1;
|
||||
stroke-dashoffset: 1;
|
||||
animation: client-device-traffic-line-draw 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
||||
}
|
||||
|
||||
.client-device-traffic-lines circle {
|
||||
fill: color-mix(in oklch, var(--client-text) 72%, var(--client-muted));
|
||||
vector-effect: non-scaling-stroke;
|
||||
}
|
||||
|
||||
.client-device-traffic-cursor line {
|
||||
stroke: color-mix(in oklch, var(--client-text) 38%, transparent);
|
||||
stroke-width: 1;
|
||||
stroke-dasharray: 2 3;
|
||||
vector-effect: non-scaling-stroke;
|
||||
}
|
||||
|
||||
.client-device-traffic-cursor circle {
|
||||
fill: var(--client-bg);
|
||||
stroke: color-mix(in oklch, var(--client-text) 82%, var(--client-muted));
|
||||
stroke-width: 1.5;
|
||||
vector-effect: non-scaling-stroke;
|
||||
}
|
||||
|
||||
.client-device-traffic-cursor circle.is-proxy {
|
||||
stroke: var(--client-accent);
|
||||
}
|
||||
|
||||
.client-device-traffic-time {
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 2;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: color-mix(in oklch, var(--client-text) 46%, var(--client-muted));
|
||||
font-size: 8.5px;
|
||||
line-height: 10px;
|
||||
}
|
||||
|
||||
.client-device.is-pinned .client-device-traffic-time {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.client-device-traffic-point-tooltip {
|
||||
position: fixed;
|
||||
z-index: 1002;
|
||||
width: max-content;
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
@@ -1502,63 +1514,35 @@ p {
|
||||
color: oklch(0.92 0.008 145);
|
||||
font: 600 9px/1.25 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
white-space: nowrap;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
filter: blur(3px);
|
||||
pointer-events: none;
|
||||
transform: translate(-50%, 4px);
|
||||
transition: opacity 100ms ease, filter 140ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 180ms;
|
||||
animation: client-device-traffic-tooltip-in 140ms cubic-bezier(0.16, 1, 0.3, 1) both;
|
||||
}
|
||||
|
||||
.client-device-traffic-bar-tooltip time {
|
||||
.client-device-traffic-point-tooltip time {
|
||||
color: oklch(0.68 0.012 145);
|
||||
font-size: 8px;
|
||||
}
|
||||
|
||||
.client-device-traffic-bar-tooltip strong {
|
||||
.client-device-traffic-point-tooltip strong {
|
||||
color: oklch(0.98 0.006 145);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.client-device-traffic-bar-tooltip .is-proxy {
|
||||
.client-device-traffic-point-tooltip .is-proxy {
|
||||
color: var(--client-accent);
|
||||
}
|
||||
|
||||
.client-device-traffic-bar:hover .client-device-traffic-bar-tooltip {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
filter: blur(0);
|
||||
transform: translate(-50%, 0);
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
.client-device-traffic-bar.is-edge-left .client-device-traffic-bar-tooltip {
|
||||
left: 0;
|
||||
transform: translate(0, 4px);
|
||||
}
|
||||
|
||||
.client-device-traffic-bar.is-edge-left:hover .client-device-traffic-bar-tooltip {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
|
||||
.client-device-traffic-bar.is-edge-right .client-device-traffic-bar-tooltip {
|
||||
right: 0;
|
||||
left: auto;
|
||||
transform: translate(0, 4px);
|
||||
}
|
||||
|
||||
.client-device-traffic-bar.is-edge-right:hover .client-device-traffic-bar-tooltip {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
|
||||
@keyframes client-device-traffic-shift {
|
||||
from { opacity: 0.72; transform: translateX(calc(100% / var(--sample-count))); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
|
||||
@keyframes client-device-traffic-grow {
|
||||
from { opacity: 0; transform: scaleY(0); }
|
||||
to { opacity: 1; transform: scaleY(1); }
|
||||
@keyframes client-device-traffic-line-draw {
|
||||
to { stroke-dashoffset: 0; }
|
||||
}
|
||||
|
||||
@keyframes client-device-traffic-tooltip-in {
|
||||
from { opacity: 0; filter: blur(3px); }
|
||||
}
|
||||
|
||||
@keyframes client-device-chart-expand {
|
||||
@@ -4582,6 +4566,224 @@ p {
|
||||
|
||||
}
|
||||
|
||||
.client-instructions.client-diagnostics {
|
||||
width: min(580px, 100vw);
|
||||
}
|
||||
|
||||
.client-diagnostics-header {
|
||||
margin-bottom: 26px;
|
||||
}
|
||||
|
||||
.client-diagnostics-run {
|
||||
min-width: 190px;
|
||||
min-height: 42px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 9px;
|
||||
margin: 0 8px 26px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--client-accent);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: color 220ms ease, filter 320ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.client-diagnostics-run svg {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 1.7;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
|
||||
.client-diagnostics-run:hover:not(:disabled),
|
||||
.client-diagnostics-run:focus-visible {
|
||||
outline: 0;
|
||||
filter: drop-shadow(0 0 8px color-mix(in oklch, var(--client-accent) 48%, transparent));
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.client-diagnostics-run.is-running svg {
|
||||
animation: client-spin 900ms linear infinite;
|
||||
}
|
||||
|
||||
.client-diagnostics-run:disabled {
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
.client-diagnostics-empty,
|
||||
.client-diagnostics-error {
|
||||
min-height: 56px;
|
||||
margin: 0 8px;
|
||||
color: var(--client-muted);
|
||||
font-size: 10px;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.client-diagnostics-error {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
color: oklch(0.68 0.15 28);
|
||||
}
|
||||
|
||||
.client-diagnostics-error button {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.client-diagnostics-results {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin: 0 8px;
|
||||
opacity: 1;
|
||||
transition: opacity 220ms ease, filter 320ms ease;
|
||||
}
|
||||
|
||||
.client-diagnostics-results[aria-busy='true'] {
|
||||
opacity: 0.58;
|
||||
filter: saturate(0.7);
|
||||
}
|
||||
|
||||
.client-diagnostics-grid {
|
||||
min-height: 52px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(96px, 0.75fr) repeat(2, minmax(0, 1fr));
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 7px 10px;
|
||||
border-radius: 12px;
|
||||
background: color-mix(in oklch, var(--client-panel) 48%, transparent);
|
||||
}
|
||||
|
||||
.client-diagnostics-grid-head {
|
||||
min-height: 32px;
|
||||
padding-block: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.client-diagnostics-grid > strong,
|
||||
.client-diagnostics-grid-head > strong {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--client-muted);
|
||||
font-size: 9px;
|
||||
letter-spacing: 0.05em;
|
||||
text-overflow: ellipsis;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.client-diagnostics-grid > code,
|
||||
.client-diagnostics-status {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
color: var(--client-text);
|
||||
font: 600 10px/1.45 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
}
|
||||
|
||||
.client-diagnostics-status.is-good,
|
||||
.client-diagnostics-summary.is-good {
|
||||
color: var(--client-accent);
|
||||
}
|
||||
|
||||
.client-diagnostics-status.is-warning,
|
||||
.client-diagnostics-summary.is-warning {
|
||||
color: oklch(0.68 0.14 72);
|
||||
}
|
||||
|
||||
.client-diagnostics-status.is-error,
|
||||
.client-diagnostics-summary.is-error {
|
||||
color: oklch(0.68 0.15 28);
|
||||
}
|
||||
|
||||
.client-diagnostics-status.is-muted,
|
||||
.client-diagnostics-summary.is-muted {
|
||||
color: var(--client-muted);
|
||||
}
|
||||
|
||||
.client-diagnostics-summary {
|
||||
min-height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.client-diagnostics-time {
|
||||
color: var(--client-muted);
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.client-diagnostics-details {
|
||||
margin-top: 12px;
|
||||
color: var(--client-muted);
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.client-diagnostics-details summary {
|
||||
width: fit-content;
|
||||
padding: 6px 0;
|
||||
color: var(--client-text);
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.client-diagnostics-details summary:focus-visible {
|
||||
outline: 2px solid var(--client-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.client-diagnostics-details > div {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.client-diagnostics-details section {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.client-diagnostics-details p {
|
||||
overflow-wrap: anywhere;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.client-diagnostics-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 6px 12px;
|
||||
}
|
||||
|
||||
.client-diagnostics-grid > strong:first-child,
|
||||
.client-diagnostics-grid-head > span:first-child {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.client-diagnostics-grid-head {
|
||||
min-height: 42px;
|
||||
}
|
||||
|
||||
.client-diagnostics-details > div {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.client-inline-error.is-subscription > *,
|
||||
.client-operation-progress::before,
|
||||
@@ -4637,10 +4839,9 @@ p {
|
||||
.client-device-traffic-value > span,
|
||||
.client-device-traffic-breakdown,
|
||||
.client-device-traffic-breakdown > span,
|
||||
.client-device-traffic-bar-tooltip,
|
||||
.client-device-traffic-bar-fill,
|
||||
.client-device-traffic-lines,
|
||||
.client-device-traffic-point-tooltip,
|
||||
.client-device-traffic-chart,
|
||||
.client-device-traffic-track,
|
||||
.client-device-edit,
|
||||
.client-device-edit svg,
|
||||
.client-device-edit-wrap,
|
||||
@@ -4660,6 +4861,13 @@ p {
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.client-diagnostics-run,
|
||||
.client-diagnostics-run svg,
|
||||
.client-diagnostics-results {
|
||||
transition: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.client-devices-refresh-ring circle {
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user