diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css index b0e6bd2..f67ed19 100644 --- a/frontend/src/assets/main.css +++ b/frontend/src/assets/main.css @@ -227,6 +227,17 @@ tr.editing td{ background:rgba(37,99,235,.03); } background:var(--navy-3); overflow:auto; display:block; } .img-preview-wrap img{ display:block; } +/* Both panels are visible from the start (before any file is chosen), + so the opening/closing balance fields in TransactionsTable are + reachable before clicking Extract - each shows one of these until + there's something real to display instead. */ +.empty-panel{ + display:flex; align-items:center; justify-content:center; text-align:center; + color:var(--t4); font-size:13px; line-height:1.6; padding:40px 24px; + border:1px solid var(--border-2); border-radius:10px; background:var(--navy-3); +} +.empty-panel-source{ width:100%; height:82vh; } +.empty-panel-table{ min-height:260px; margin-top:4px; } .resizer{ flex:0 0 28px; align-self:stretch; cursor:col-resize; display:flex; align-items:center; justify-content:center; diff --git a/frontend/src/components/SourceDocumentPanel.vue b/frontend/src/components/SourceDocumentPanel.vue index d099c40..53c1894 100644 --- a/frontend/src/components/SourceDocumentPanel.vue +++ b/frontend/src/components/SourceDocumentPanel.vue @@ -5,6 +5,10 @@ * The Source Document card: a PDF gets the browser's native viewer (with * its own zoom toolbar) in an iframe; an image has no such chrome, so it * gets its own zoomable/scrollable panel instead - see useImageZoom.js. + * Before any file is chosen, shows an empty-state message instead - this + * panel is always visible (not gated on an extraction result existing), + * so the opening/closing balance fields in TransactionsTable are + * reachable before clicking Extract. * * Data flow: * previewUrl (string|null) - blob URL for the chosen file @@ -36,7 +40,10 @@ const pdfSrc = computed(() => (props.previewUrl ? props.previewUrl + '#toolbar=1 - +
No Source Document to Display.
Upload one to get started.
No Transactions to Display.
Upload a source document to get started.