[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
@@ -219,6 +219,7 @@
|
||||
if (s.containerId) {
|
||||
const logsBtn = el('button', 'logs-btn', '📋');
|
||||
logsBtn.title = 'View container logs';
|
||||
logsBtn.setAttribute('aria-label', `View container logs for ${s.name}`);
|
||||
logsBtn.onclick = (e) => {
|
||||
e.stopPropagation();
|
||||
window.openContainerLogsModal(s.containerId, s.name);
|
||||
@@ -229,6 +230,7 @@
|
||||
const updateBtn = el('button', 'update-btn', '⬆️');
|
||||
updateBtn.title = 'Update container to latest version';
|
||||
updateBtn.id = `update-btn-${s.id}`;
|
||||
updateBtn.setAttribute('aria-label', `Update ${s.name} container`);
|
||||
updateBtn.onclick = (e) => {
|
||||
e.stopPropagation();
|
||||
window.updateContainer(s.containerId, s.name, s.id);
|
||||
@@ -238,6 +240,7 @@
|
||||
// Terminal exec button (subtle — visible on hover)
|
||||
const execBtn = el('button', 'exec-btn', '>_');
|
||||
execBtn.title = 'Open terminal';
|
||||
execBtn.setAttribute('aria-label', `Open terminal for ${s.name}`);
|
||||
execBtn.onclick = (e) => {
|
||||
e.stopPropagation();
|
||||
if (window.openExecModal) window.openExecModal(s.containerId, s.name);
|
||||
@@ -249,6 +252,7 @@
|
||||
if (s.logPath && !s.containerId) {
|
||||
const logsBtn = el('button', 'logs-btn', '📋');
|
||||
logsBtn.title = 'View application logs';
|
||||
logsBtn.setAttribute('aria-label', `View application logs for ${s.name}`);
|
||||
logsBtn.onclick = (e) => {
|
||||
e.stopPropagation();
|
||||
window.openFileLogsModal(s.logPath, s.name);
|
||||
@@ -261,6 +265,7 @@
|
||||
const credsBtn = el('button', 'creds-btn', '🔑');
|
||||
credsBtn.title = 'Auto-login credentials';
|
||||
credsBtn.id = `creds-btn-${s.id}`;
|
||||
credsBtn.setAttribute('aria-label', `Manage auto-login credentials for ${s.name}`);
|
||||
credsBtn.onclick = (e) => {
|
||||
e.stopPropagation();
|
||||
window.openServiceCredsModal(s);
|
||||
@@ -272,6 +277,7 @@
|
||||
if (s.id !== 'internet') {
|
||||
const optBtn = el('button', 'options-btn', '⚙️');
|
||||
optBtn.title = 'Edit service settings';
|
||||
optBtn.setAttribute('aria-label', `Edit settings for ${s.name}`);
|
||||
optBtn.onclick = (e) => {
|
||||
e.stopPropagation();
|
||||
window.openServiceEditModal(s);
|
||||
@@ -287,6 +293,7 @@
|
||||
if (s.id !== 'internet') {
|
||||
const shareBtn = el('button', 'share-btn', '🔗');
|
||||
shareBtn.title = 'Share this service (Pro)';
|
||||
shareBtn.setAttribute('aria-label', `Share ${s.name} (Pro)`);
|
||||
shareBtn.onclick = (e) => {
|
||||
e.stopPropagation();
|
||||
if (typeof window.openShareModal === 'function') {
|
||||
@@ -302,6 +309,7 @@
|
||||
if (s.id !== 'internet') {
|
||||
const delBtn = el('button', 'delete-btn', '🗑️');
|
||||
delBtn.title = 'Delete this service';
|
||||
delBtn.setAttribute('aria-label', `Delete ${s.name}`);
|
||||
delBtn.onclick = (e) => {
|
||||
e.stopPropagation();
|
||||
window.deleteService(s.id, s.name);
|
||||
@@ -310,6 +318,7 @@
|
||||
}
|
||||
|
||||
const btn = el('button', null, 'Open');
|
||||
btn.setAttribute('aria-label', `Open ${s.name}`);
|
||||
btn.setAttribute('data-i18n', 'action.open');
|
||||
btn.onclick = () => window.open(serviceUrl(s.id), '_blank', 'noopener');
|
||||
btnRow.appendChild(btn);
|
||||
|
||||
Reference in new issue
Block a user