[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:
7 files changed
+86
-43
No files matched your search
@@ -56,12 +56,16 @@
|
||||
|
||||
if (!installed) {
|
||||
card.setAttribute('data-status', 'off');
|
||||
// DC-171-UX: collapse the dead card to a slim single row — a full grid
|
||||
// slot saying "not installed" is noise on every load
|
||||
card.classList.add('card-collapsed-unavailable');
|
||||
dot.className = 'dot bad at-bl';
|
||||
pill.className = 'badge off';
|
||||
pill.textContent = 'N/A';
|
||||
summary.textContent = 'Tailscale not installed';
|
||||
return;
|
||||
}
|
||||
card.classList.remove('card-collapsed-unavailable');
|
||||
if (!connected) {
|
||||
card.setAttribute('data-status', 'off');
|
||||
dot.className = 'dot bad at-bl';
|
||||
|
||||
Reference in new issue
Block a user