From a915e5a405378839bea2cf79f671e3dd8534e02a Mon Sep 17 00:00:00 2001 From: nearxos Date: Sat, 21 Feb 2026 16:18:07 +0200 Subject: [PATCH] Enhance dashboard UI for EEPROM update functionality Update the home and index templates to include the new EEPROM update action in the device management interface. Modify status handling to reflect the addition of the 'eeprom_update' phase, ensuring proper user feedback during operations. Introduce a clear status button and improve the layout for device actions, enhancing overall user experience and interaction with the dashboard. --- .../dashboard/templates/home.html | 18 +++++++++++------- .../dashboard/templates/index.html | 13 ++++++++++--- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/emmc-provisioning/dashboard/templates/home.html b/emmc-provisioning/dashboard/templates/home.html index 0e80df0..4c876d3 100644 --- a/emmc-provisioning/dashboard/templates/home.html +++ b/emmc-provisioning/dashboard/templates/home.html @@ -43,7 +43,7 @@ .status-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; } .status-pill { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; } .status-pill.idle { background: rgba(0,212,170,0.15); color: var(--accent); } - .status-pill.waiting_choice, .status-pill.rpiboot, .status-pill.flashing, .status-pill.backup { background: rgba(251,191,36,0.15); color: var(--warn); } + .status-pill.waiting_choice, .status-pill.rpiboot, .status-pill.flashing, .status-pill.backup, .status-pill.eeprom_update { background: rgba(251,191,36,0.15); color: var(--warn); } .status-pill.done { background: rgba(0,212,170,0.15); color: var(--success); } .status-pill.error { background: rgba(248,113,113,0.15); color: var(--danger); } .status-msg { flex: 1; min-width: 0; font-size: 0.9rem; } @@ -58,6 +58,8 @@ margin-bottom: 0.4rem; } .device-desc { font-size: 0.85rem; color: var(--text-dim); } + .device-actions-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } + .eeprom-preset { padding: 0.3rem 0.5rem; font-size: 0.75rem; font-family: inherit; background: var(--bg-primary); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); max-width: 11rem; } .btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; font-weight: 500; font-family: inherit; border-radius: var(--radius-sm); cursor: pointer; border: none; transition: background 0.15s, color 0.15s; } .btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); } .btn-outline:hover { border-color: var(--accent); color: var(--accent); } @@ -100,9 +102,9 @@
Idle Waiting for device +
- @@ -158,7 +160,7 @@