[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
@@ -184,13 +184,13 @@
|
||||
if (active) {
|
||||
card.setAttribute('data-status', 'on');
|
||||
pill.className = 'badge on';
|
||||
pill.textContent = translated('card.status.yes', 'YES');
|
||||
pill.textContent = translated('card.status.on', 'ON');
|
||||
dot.className = 'dot ok at-bl';
|
||||
statusText.textContent = 'Session: ' + (DURATION_LABELS[duration] || duration);
|
||||
} else {
|
||||
card.setAttribute('data-status', 'off');
|
||||
pill.className = 'badge off';
|
||||
pill.textContent = translated('card.status.no', 'NO');
|
||||
pill.textContent = translated('card.status.off', 'OFF');
|
||||
dot.className = 'dot bad at-bl';
|
||||
statusText.textContent = translated('card.auth.not_configured', 'Not configured');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user