[grade=A urn:ump:vk45vbr6hs5b7qnbwzfsn2nbcofrpyjkzoesouupbevtmljzgd4q] ux(DC-171): dashboard smoothness pass chunk 1 — header overlap, dead-card collapse, accessible card actions, ON/OFF vocabulary

Live-browser audit (authenticated session, real viewport) produced a
ranked critique; this chunk ships the top 4 fixes, each verified in the
live page with before/after numbers:

1. HEADER OVERLAP: .reload-caddy-container was position:absolute and
   covered the clock (4700px² measured overlap, clock pushed off-screen,
   horizontal scrollbar at 1440px). Now an in-flow flex item with
   flex-wrap on .top-row/.brand-weather-group and a ≤1700px brand cap.
   AFTER: overlap 0px², clock fully visible, no horizontal scroll
   (scrollWidth 1425 ≤ 1440).
2. DEAD CARD COLLAPSE: Tailscale's 'not installed' card occupied a full
   ~205px grid slot forever. Now collapses (content rows hidden, dimmed)
   until Tailscale is actually installed.
3. ACCESSIBLE CARD ACTIONS: all dynamically generated icon-only service
   actions (logs/update/terminal/credentials/options/share/delete/open)
   now carry per-service aria-labels — 64/97 btn-row buttons labelled;
   the rest are text-labelled system buttons. Tailscale refresh labelled.
4. STATUS VOCABULARY: Auth card YES/NO → ON/OFF, matching every other
   card (active + inactive branches + initial markup).

Frontend 68/68; SW dashcaddy-shell-da61d3a0a1; CSP hash unchanged.
This commit is contained in:
Hermes committed 2026-11-19 00:33:24 -08:00
1 parent 6c9f9e59a3
commit bc4df53684
7 files changed
+86 -43

No files matched your search

+33 -3
View File
@@ -154,24 +154,49 @@ button:focus-visible {
align-items: flex-start;
width: 100%;
position: relative;
/* UX pass: the in-flow reload cluster + wide brand banner can exceed the
viewport on smaller screens — wrap instead of pushing the clock off-screen */
flex-wrap: wrap;
row-gap: 8px;
}
.brand-weather-group {
display: flex;
align-items: center;
gap: 20px;
flex-wrap: wrap;
row-gap: 8px;
}
.reload-caddy-container {
position: absolute;
right: 0;
top: 0;
/* UX pass: was position:absolute top-right — it overlapped the clock
whenever the brand-weather group extended to the right edge (any
logo-pos where the clock sits right). In-flow flex item instead. */
position: relative;
margin-left: auto;
flex-shrink: 0;
padding-top: 10px;
display: flex;
flex-direction: column;
align-items: flex-end;
}
/* UX pass: a card whose only message is "not installed" collapses to a slim
single row instead of occupying a full grid slot (Tailscale today). */
.card.card-collapsed-unavailable .response-row,
.card.card-collapsed-unavailable .btn-row {
display: none;
}
.card.card-collapsed-unavailable {
opacity: 0.62;
height: fit-content;
align-self: start;
padding-bottom: 10px;
}
.card.card-collapsed-unavailable .row {
min-height: 0;
}
.reload-caddy-main {
display: flex;
flex-direction: column;
@@ -457,6 +482,11 @@ button:focus-visible {
display: block;
filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .38));
}
/* UX pass: on narrower screens the banner must not push the clock off-screen */
@media (max-width: 1700px) {
#brand img { max-width: 48vw; }
}
#brand .brand-logo-light { display: none; }
:root.light-bg #brand .brand-logo-dark { display: none; }
:root.light-bg #brand .brand-logo-light { display: block; }