Move document nav into the transactions card; raise panel height 25%

DocumentNavBar no longer sits in its own standalone div above both
panels - it's now rendered inside TransactionsTable.vue, across the
top of the transactions card, above the Hide/Show Source Doc row, with
no border/background box of its own (already inside the card's). Still
disappears via the same v-if once there's nothing to navigate between.

.pdf-col/.txn-col height raised from 82vh to 102.5vh (25% more), both
panels still matching each other exactly.
This commit is contained in:
JasonFraser 2026-10-12 21:19:54 -04:00
parent ec58a956e9
commit 84261c25ef
4 changed files with 26 additions and 13 deletions

View File

@ -748,7 +748,12 @@ restructure; the behavior itself predates it and is unchanged:
there's more than one document) provides ◀/▶ to browse completed results, swapping the there's more than one document) provides ◀/▶ to browse completed results, swapping the
Transactions table, the Source Document preview, and the visible document name together Transactions table, the Source Document preview, and the visible document name together
as one unit - all three read `extractionStore.activeDocument`/`activeIndex`, so as one unit - all three read `extractionStore.activeDocument`/`activeIndex`, so
`DocumentNavBar` is the only component that needs to know navigation exists at all. `DocumentNavBar` is the only component that needs to know navigation exists at all. Lives
INSIDE `TransactionsTable.vue` now (moved there 2026-10-13, per explicit request - it
started as its own standalone bar above `ResizablePanels`, spanning the whole page) -
rendered first, across the top of the transactions card, above the Hide/Show Source Doc
row, with no border/background box of its own since it's already inside the card's (just
a bottom border separating it from the "Transactions" title beneath).
Picking/dropping ADDS to the staged list (`useFileUpload.js`'s `chosenFiles`) rather Picking/dropping ADDS to the staged list (`useFileUpload.js`'s `chosenFiles`) rather
than replacing it (fixed 2026-10-13 - the first version replaced it, so picking a than replacing it (fixed 2026-10-13 - the first version replaced it, so picking a
second file after a first lost the first entirely, reported by the user as "I select second file after a first lost the first entirely, reported by the user as "I select
@ -783,6 +788,9 @@ restructure; the behavior itself predates it and is unchanged:
504px; 160px is a legible floor for Description) — below that, `.table-wrap`'s own 504px; 160px is a legible floor for Description) — below that, `.table-wrap`'s own
`overflow-x:auto` takes over and the table scrolls horizontally instead of compressing `overflow-x:auto` takes over and the table scrolls horizontally instead of compressing
further, while at or above 664px `width:100%` still governs exactly as before. further, while at or above 664px `width:100%` still governs exactly as before.
Both panels' own fixed height (`.pdf-col`/`.txn-col`) is `102.5vh` (raised 25% from the
original `82vh` per request, 2026-10-13) - both still track each other exactly, same
"fixed total card height, same pattern" relationship documented where each rule lives.
- A Hide/Show toggle in the Transactions header (`TransactionsTable.vue`, driven by - A Hide/Show toggle in the Transactions header (`TransactionsTable.vue`, driven by
`uiStore.pdfColHidden`, labeled "Hide Source Doc"/"Show Source Doc") collapses the `uiStore.pdfColHidden`, labeled "Hide Source Doc"/"Show Source Doc") collapses the
source-doc column so Transactions fills the row. source-doc column so Transactions fills the row.

View File

@ -268,10 +268,14 @@ tr.editing td{ background:rgba(37,99,235,.03); }
} }
.restore-banner button:hover{ color:var(--t1); border-color:var(--border-b); } .restore-banner button:hover{ color:var(--t1); border-color:var(--border-b); }
/* Sits across the top of the transactions card, above the Hide Source
Doc row (TransactionsTable.vue renders it first) - no border/
background box of its own since it's already inside the card's; a
bottom border is enough to separate it from the title row beneath. */
.doc-nav{ .doc-nav{
display:flex; align-items:center; justify-content:center; gap:14px; display:flex; align-items:center; justify-content:center; gap:14px;
margin-bottom:16px; padding:8px 14px; background:var(--navy-2); border:1px solid var(--border-2); padding-bottom:12px; margin-bottom:14px; border-bottom:1px solid var(--border-2);
border-radius:10px; flex-shrink:0;
} }
.doc-nav-arrow{ .doc-nav-arrow{
background:transparent; border:1px solid var(--border-2); color:var(--t2); width:28px; height:28px; background:transparent; border:1px solid var(--border-2); color:var(--t2); width:28px; height:28px;
@ -292,10 +296,11 @@ tr.editing td{ background:rgba(37,99,235,.03); }
.review-grid{ display:flex; align-items:start; position:sticky; top:24px; } .review-grid{ display:flex; align-items:start; position:sticky; top:24px; }
/* Fixed total card height, same pattern .txn-col uses (see its own /* Fixed total card height, same pattern .txn-col uses (see its own
comment) - previously only the CHILD (iframe/img-preview-wrap/ comment) - previously only the CHILD (iframe/img-preview-wrap/
empty-panel-source) was pinned to 82vh, leaving the card's own total empty-panel-source) was pinned to a fixed height, leaving the card's
height as 82vh PLUS pdf-col-head's height and the card's own padding, own total height as that PLUS pdf-col-head's height and the card's
taller than .txn-col's flat 82vh and visibly mismatched. */ own padding, taller than .txn-col's own flat height and visibly
.pdf-col{ flex:0 0 40%; min-width:260px; display:flex; flex-direction:column; height:82vh; } mismatched. 102.5vh = the original 82vh increased 25% per request. */
.pdf-col{ flex:0 0 40%; min-width:260px; display:flex; flex-direction:column; height:102.5vh; }
.pdf-col-head{ .pdf-col-head{
display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; flex-shrink:0; display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; flex-shrink:0;
} }
@ -365,7 +370,7 @@ tr.editing td{ background:rgba(37,99,235,.03); }
.resizer:hover::after, .resizer.dragging::after{ .resizer:hover::after, .resizer.dragging::after{
background:var(--blue); box-shadow: -4px 0 0 var(--blue), 4px 0 0 var(--blue); background:var(--blue); box-shadow: -4px 0 0 var(--blue), 4px 0 0 var(--blue);
} }
/* Fixed to the same 82vh the source-document side's own child (iframe/ /* Fixed to the same height the source-document side's own child (iframe/
img-preview-wrap/empty-panel-source) is - flex-column so the table img-preview-wrap/empty-panel-source) is - flex-column so the table
area (the one piece whose content height varies) absorbs whatever area (the one piece whose content height varies) absorbs whatever
space is left after the header/fields/notes above it, rather than the space is left after the header/fields/notes above it, rather than the
@ -376,7 +381,7 @@ tr.editing td{ background:rgba(37,99,235,.03); }
viewport's - needed because the resizer can narrow this column on an viewport's - needed because the resizer can narrow this column on an
otherwise-wide screen, which a @media viewport breakpoint never sees. */ otherwise-wide screen, which a @media viewport breakpoint never sees. */
.txn-col{ .txn-col{
flex:1 1 auto; min-width:260px; display:flex; flex-direction:column; height:82vh; flex:1 1 auto; min-width:260px; display:flex; flex-direction:column; height:102.5vh;
container-type:inline-size; container-name:txncol; container-type:inline-size; container-name:txncol;
} }
.txn-col-head{ .txn-col-head{

View File

@ -26,6 +26,7 @@ import { fmtMoney } from '../services/formatService'
import * as extractionService from '../services/extractionService' import * as extractionService from '../services/extractionService'
import { useTransactionFilters } from '../composables/useTransactionFilters' import { useTransactionFilters } from '../composables/useTransactionFilters'
import TransactionRow from './TransactionRow.vue' import TransactionRow from './TransactionRow.vue'
import DocumentNavBar from './DocumentNavBar.vue'
const extractionStore = useExtractionStore() const extractionStore = useExtractionStore()
const uiStore = useUiStore() const uiStore = useUiStore()
@ -112,6 +113,7 @@ async function handleRecheck() {
</script> </script>
<template> <template>
<DocumentNavBar />
<div class="txn-col-head"> <div class="txn-col-head">
<h2>Transactions</h2> <h2>Transactions</h2>
<button class="btn-toggle" type="button" @click="uiStore.togglePdfCol">{{ toggleLabel }}</button> <button class="btn-toggle" type="button" @click="uiStore.togglePdfCol">{{ toggleLabel }}</button>

View File

@ -15,7 +15,6 @@ import { useBatchExtraction } from '../composables/useBatchExtraction'
import FileUploadZone from '../components/FileUploadZone.vue' import FileUploadZone from '../components/FileUploadZone.vue'
import RestoreBanner from '../components/RestoreBanner.vue' import RestoreBanner from '../components/RestoreBanner.vue'
import ResultCard from '../components/ResultCard.vue' import ResultCard from '../components/ResultCard.vue'
import DocumentNavBar from '../components/DocumentNavBar.vue'
import ResizablePanels from '../components/ResizablePanels.vue' import ResizablePanels from '../components/ResizablePanels.vue'
import SourceDocumentPanel from '../components/SourceDocumentPanel.vue' import SourceDocumentPanel from '../components/SourceDocumentPanel.vue'
import TransactionsTable from '../components/TransactionsTable.vue' import TransactionsTable from '../components/TransactionsTable.vue'
@ -78,8 +77,6 @@ onMounted(restoreOnLoad)
<ResultCard /> <ResultCard />
</div> </div>
<DocumentNavBar />
<!-- <!--
Source Document and Transactions (and the opening/closing balance Source Document and Transactions (and the opening/closing balance
fields that live in the latter) are always visible, even before a fields that live in the latter) are always visible, even before a
@ -89,7 +86,8 @@ onMounted(restoreOnLoad)
something to display - see SourceDocumentPanel.vue/ something to display - see SourceDocumentPanel.vue/
TransactionsTable.vue. Both read the ACTIVE document TransactionsTable.vue. Both read the ACTIVE document
(extractionStore.activeDocument), not the staged-but-unprocessed (extractionStore.activeDocument), not the staged-but-unprocessed
chosenFiles. chosenFiles. DocumentNavBar lives INSIDE TransactionsTable now
(across its own top, above the Hide Source Doc button), not here.
--> -->
<ResizablePanels> <ResizablePanels>
<template #source> <template #source>