From 78e95bfc17d568ba06baceee61b7f26abac0bcb9 Mon Sep 17 00:00:00 2001 From: Deep Koluguri Date: Sat, 23 May 2026 11:33:35 -0400 Subject: [PATCH] refactor: apply refined 15-60-25 Zen 4.0 layout, move patient banner to center column, update scribe UI states --- dashboard.css | 22 +++++++++++--------- dashboard.html | 55 +++++++++++++++++++++++--------------------------- dashboard.js | 12 ++++++++--- 3 files changed, 47 insertions(+), 42 deletions(-) diff --git a/dashboard.css b/dashboard.css index 4d6ec7c..aa12d40 100644 --- a/dashboard.css +++ b/dashboard.css @@ -1313,7 +1313,7 @@ } /* --- WORLD-CLASS ZEN 4.0 ADD-ONS --- */ -.safety-header { +.patient-banner-inner { background: white; padding: 1.5rem 2.5rem; border-radius: 20px; @@ -1322,10 +1322,7 @@ display: flex; justify-content: space-between; align-items: center; - margin-bottom: 2rem; - position: sticky; - top: 1rem; - z-index: 10; + margin-bottom: 0.5rem; } .patient-identity-row { @@ -1350,14 +1347,14 @@ .zen-layout-3col { display: grid; - grid-template-columns: 15% 55% 30%; - gap: 2rem; + grid-template-columns: 15% 60% 25%; + gap: 1.5rem; align-items: start; transition: grid-template-columns 0.3s ease; } .zen-layout-3col.collapsed-queue { - grid-template-columns: 5% 65% 30%; + grid-template-columns: 5% 70% 25%; } .zen-pipeline { @@ -1367,7 +1364,14 @@ box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid var(--border); transition: all 0.3s ease; - overflow: hidden; + overflow-x: hidden; +} + +.zen-pipeline.full-height { + height: calc(100vh - 5rem); + overflow-y: auto; + position: sticky; + top: 1rem; } .zen-pipeline.collapsed { diff --git a/dashboard.html b/dashboard.html index 7056cc8..7b8a386 100644 --- a/dashboard.html +++ b/dashboard.html @@ -111,30 +111,10 @@ - @@ -537,6 +532,6 @@ - + diff --git a/dashboard.js b/dashboard.js index a2e8b19..508cd1c 100644 --- a/dashboard.js +++ b/dashboard.js @@ -307,12 +307,12 @@ function updateScribeUI() { if (!btn || !status) return; if (isScribing) { - btn.innerHTML = "🛑 Stop Scribe"; + btn.innerHTML = "⏸️ Pause Scribe"; btn.style.background = "#EF4444"; btn.style.color = "white"; status.classList.remove("hidden"); } else { - btn.innerHTML = "🎙️ Scribe"; + btn.innerHTML = "🔴 Start Recording"; btn.style.background = ""; // Resets to CSS default btn.style.color = ""; status.classList.add("hidden"); @@ -345,7 +345,13 @@ async function processWithWhisper(blob) { }); const data = await res.json(); if (data.text) { - document.getElementById("consultationNotes").value += "\n[DEEP SCRIBE]: " + data.text; + const activeField = document.activeElement; + if (activeField && activeField.tagName === 'TEXTAREA' && activeField.id.startsWith('soap-')) { + activeField.value += "\n[DEEP SCRIBE]: " + data.text; + } else { + const defaultField = document.getElementById("soap-s"); + if (defaultField) defaultField.value += "\n[DEEP SCRIBE]: " + data.text; + } generateSummary(true); } } catch (e) {