Comprehensive WebUI review: 41 UX/feature/CSS improvements
Safety & Correctness: - Add confirmation dialogs to Stop All, turnOffDevice - i18n confirm dialog (title, yes, no buttons) - Fix duplicate tutorial-overlay ID - Define missing CSS variables (--radius, --text-primary, --hover-bg, --input-bg) - Fix toast z-index conflict with confirm dialog (2500 → 3000) UX Consistency: - Add backdrop-close to test modals - Add device clone feature (only entity without it) - Add sync clocks to command palette - Replace 20+ hardcoded accent colors with CSS vars/color-mix() - Remove dead .badge duplicate from components.css - Make calibration elements keyboard-accessible (div → button) - Add aria-labels to color picker swatches - Fix pattern canvas mobile horizontal scroll - Fix graph editor mobile bottom clipping Polish: - Add empty-state messages to all CardSection instances - Convert 21 px font-sizes to rem - Add scroll-behavior: smooth with reduced-motion override - Add @media print styles - Add :focus-visible to 4 missing interactive elements - Fix settings modal close label (Cancel → Close) - Fix api-key submit button i18n New Features: - Command palette actions: start/stop targets, activate scenes, enable/disable - Bulk start/stop API endpoints (POST /output-targets/bulk/start|stop) - OS notification history viewer modal - Scene "used by" automation reference count on cards - Clock elapsed time display on Streams tab cards - Device "last seen" relative timestamp on cards - Audio device refresh button in edit modal - Composite layer drag-to-reorder - MQTT settings panel (broker config with JSON persistence) - WebSocket log viewer with level filtering and ring buffer - Runtime log-level adjustment (GET/PUT endpoints + settings UI) - Animated value source waveform canvas preview - Gradient custom preset save/delete (localStorage) - API key read-only display in settings - Backup metadata (file size, auto/manual badges) - Server restart button with confirm + overlay - Partial config export/import per entity type - Progressive disclosure in target editor (Advanced section) CSS Architecture: - Define radius scale tokens (--radius-sm/md/lg/pill) - Scope .cs-filter selectors to remove 7 !important overrides - Consolidate duplicate toggle switch (filter-list → settings-toggle) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
|
||||
.vs-test-value-large {
|
||||
font-size: 1.3em;
|
||||
color: #4caf50;
|
||||
color: var(--primary-text-color);
|
||||
}
|
||||
|
||||
.vs-test-status {
|
||||
@@ -149,7 +149,7 @@
|
||||
border-radius: 6px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -333,6 +333,38 @@
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* ── Log viewer ─────────────────────────────────────────────── */
|
||||
|
||||
.log-viewer-output {
|
||||
background: #0d0d0d;
|
||||
color: #d4d4d4;
|
||||
font-family: var(--font-mono, 'Consolas', 'Courier New', monospace);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.45;
|
||||
padding: 0.6rem 0.75rem;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border-color);
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
overflow-x: auto;
|
||||
white-space: pre;
|
||||
margin: 0;
|
||||
/* Scroll performance */
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
.log-viewer-output .log-line-error {
|
||||
color: #f48771;
|
||||
}
|
||||
|
||||
.log-viewer-output .log-line-warning {
|
||||
color: #ce9178;
|
||||
}
|
||||
|
||||
.log-viewer-output .log-line-debug {
|
||||
color: #6a9955;
|
||||
}
|
||||
|
||||
/* LED count control */
|
||||
.css-test-led-control {
|
||||
display: flex;
|
||||
@@ -391,7 +423,7 @@
|
||||
.modal-content {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 12px;
|
||||
border-radius: var(--radius-lg);
|
||||
max-width: 500px;
|
||||
width: 90%;
|
||||
max-height: calc(100vh - 40px);
|
||||
@@ -562,8 +594,8 @@
|
||||
|
||||
.hint-toggle.active {
|
||||
opacity: 1;
|
||||
color: var(--primary-text-color, #4CAF50);
|
||||
border-color: var(--primary-color, #4CAF50);
|
||||
color: var(--primary-text-color);
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.input-hint {
|
||||
@@ -695,6 +727,17 @@
|
||||
min-width: auto;
|
||||
}
|
||||
|
||||
.select-with-action {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.select-with-action select {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.fps-hint {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
@@ -767,7 +810,7 @@
|
||||
}
|
||||
|
||||
.error-message {
|
||||
background: rgba(244, 67, 54, 0.1);
|
||||
background: color-mix(in srgb, var(--danger-color) 10%, transparent); /* --danger-color tint */
|
||||
border: 1px solid var(--danger-color);
|
||||
color: var(--danger-color);
|
||||
padding: 12px;
|
||||
@@ -805,7 +848,7 @@
|
||||
|
||||
.btn-display-picker:hover {
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 15%, transparent); /* --primary-color tint */
|
||||
}
|
||||
|
||||
.modal-content-wide {
|
||||
@@ -983,14 +1026,14 @@
|
||||
}
|
||||
|
||||
.layout-display-pickable:hover {
|
||||
box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
|
||||
box-shadow: 0 0 20px color-mix(in srgb, var(--primary-color) 40%, transparent); /* --primary-color glow */
|
||||
border-color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.layout-display-pickable.selected {
|
||||
border-color: var(--primary-color) !important;
|
||||
box-shadow: 0 0 16px rgba(76, 175, 80, 0.5);
|
||||
background: rgba(76, 175, 80, 0.12) !important;
|
||||
box-shadow: 0 0 16px color-mix(in srgb, var(--primary-color) 50%, transparent); /* --primary-color glow */
|
||||
background: color-mix(in srgb, var(--primary-color) 12%, transparent) !important; /* --primary-color tint */
|
||||
}
|
||||
|
||||
/* ── Device picker list (cameras, scrcpy) ─────────────────────── */
|
||||
@@ -1133,6 +1176,33 @@
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* ── Custom gradient presets list ───────────────────────────── */
|
||||
|
||||
.custom-presets-list {
|
||||
margin-top: 6px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.custom-preset-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 6px;
|
||||
border-radius: 6px;
|
||||
background: var(--surface-2, rgba(255,255,255,0.04));
|
||||
border: 1px solid var(--border-color, rgba(255,255,255,0.1));
|
||||
}
|
||||
|
||||
.custom-preset-name {
|
||||
flex: 1;
|
||||
font-size: 0.85rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ── Color Cycle editor ──────────────────────────────────────── */
|
||||
|
||||
#color-cycle-colors-list {
|
||||
@@ -1211,6 +1281,71 @@
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* ── Notification history list ─────────────────────────────────── */
|
||||
|
||||
.notif-history-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.35rem 0.6rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.notif-history-row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.notif-history-app {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.notif-history-time {
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
font-size: 0.78rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.notif-history-badges {
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.notif-history-badge {
|
||||
display: inline-block;
|
||||
min-width: 18px;
|
||||
padding: 0 4px;
|
||||
border-radius: 10px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.notif-history-badge--fired {
|
||||
background: var(--primary-color);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.notif-history-badge--filtered {
|
||||
background: var(--border-color);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.notif-history-empty {
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* ── Composite layer editor ────────────────────────────────────── */
|
||||
|
||||
#composite-layers-list {
|
||||
@@ -1269,3 +1404,58 @@
|
||||
flex: 0 0 26px;
|
||||
}
|
||||
|
||||
/* ── Composite layer drag-to-reorder ── */
|
||||
|
||||
.composite-layer-drag-handle {
|
||||
cursor: grab;
|
||||
opacity: 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1;
|
||||
padding: 2px 4px;
|
||||
border-radius: 3px;
|
||||
transition: opacity 0.2s ease;
|
||||
user-select: none;
|
||||
touch-action: none;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.composite-layer-item:hover .composite-layer-drag-handle {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.composite-layer-drag-handle:hover {
|
||||
opacity: 1 !important;
|
||||
background: var(--border-color);
|
||||
}
|
||||
|
||||
.composite-layer-drag-handle:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.composite-layer-drag-clone {
|
||||
position: fixed;
|
||||
z-index: 9999;
|
||||
pointer-events: none;
|
||||
opacity: 0.92;
|
||||
transform: scale(1.02);
|
||||
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
|
||||
will-change: top;
|
||||
}
|
||||
|
||||
.composite-layer-drag-placeholder {
|
||||
border: 2px dashed var(--primary-color);
|
||||
border-radius: 4px;
|
||||
background: rgba(33, 150, 243, 0.04);
|
||||
min-height: 42px;
|
||||
transition: height 0.15s ease;
|
||||
}
|
||||
|
||||
body.composite-layer-dragging .composite-layer-item {
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
body.composite-layer-dragging .composite-layer-drag-handle {
|
||||
opacity: 0 !important;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user