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.

+
+
Statement image preview
diff --git a/frontend/src/components/TransactionsTable.vue b/frontend/src/components/TransactionsTable.vue index 218f114..4df5857 100644 --- a/frontend/src/components/TransactionsTable.vue +++ b/frontend/src/components/TransactionsTable.vue @@ -3,7 +3,11 @@ * TransactionsTable.vue * * Opening/closing balance inputs + their calculated readouts, the - * Hide/Show Source Doc toggle, and the transactions table itself. + * Hide/Show Source Doc toggle, and the transactions table itself. Always + * rendered (not gated on an extraction result existing) so the balance + * fields are enterable BEFORE clicking Extract, since they're submitted + * as part of that same request - the table itself shows an empty state + * until there's a result to display. * * The opening-balance readout is deliberately a snapshot of the * ORIGINAL extraction's own opening_balance - the backend never returns @@ -58,8 +62,12 @@ const toggleLabel = computed(() => (uiStore.pdfColHidden ? 'Show Source Doc' : '
This statement format may not print a clean opening/closing balance — enter them here to run the full statement balance check; otherwise it's marked "not available" rather than guessed.
-
Click the pencil on a row to edit it, then Save to commit - edits are saved to this browser as you confirm them, row by row.
-
+
Click the pencil on a row to edit it, then Save to commit - edits are saved to this browser as you confirm them, row by row.
+ +
+

No Transactions to Display.
Upload a source document to get started.

+
+
diff --git a/frontend/src/views/ExtractorView.vue b/frontend/src/views/ExtractorView.vue index b7446fb..d1e6b60 100644 --- a/frontend/src/views/ExtractorView.vue +++ b/frontend/src/views/ExtractorView.vue @@ -62,13 +62,23 @@ onMounted(restoreOnLoad)
- - - -
+ + + + + +