Fix Transactions header layout: Move to project stays left, actions join it below

Previous commit put "Move to project" up into the Transactions title
row - wrong per explicit correction. Transactions is now just the bare
heading (aligning with Source Document). A new row directly above the
balance fields holds "Move to project" at the left and Flagged
only/Next flagged/Hide Source Doc grouped at the right.

Also fixes a duplicate .txn-top-bar block left over from the prior
commit's own edit, caught before this build.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
JasonFraser 2026-10-30 13:23:47 -04:00
parent 4f474fa3ea
commit f7fcec404a
3 changed files with 129 additions and 92 deletions

View File

@ -2643,35 +2643,52 @@ files touched are `TransactionRow.vue` and `main.css`. **Not machine-verified:**
the actual click-through in a real browser - same standing limitation as every the actual click-through in a real browser - same standing limitation as every
other UI-only change this project. other UI-only change this project.
**Transactions column reordered to align with Source Document, and "Move to project" **Transactions column reordered to align with Source Document; "Move to project" and
relocated into the title row's own actions, 2026-10-30.** Explicit layout request: the Flagged/Hide-Source buttons landed in a new row above the balance fields,
the "Transactions" heading sat BELOW two other rows (the Results/DocumentNavBar/ 2026-10-30 (went through two passes - see below for what the first pass got
Accept/Download top bar, then "Move to project" on its own standalone row), while wrong).** Explicit layout request: the "Transactions" heading sat BELOW two other
the sibling panel's "Source Document" heading was the very first thing in ITS column rows (the Results/DocumentNavBar/Accept/Download top bar, then "Move to project" on
- the two headings never lined up horizontally. Fixed by reordering its own standalone row), while the sibling panel's "Source Document" heading was the
`TransactionsTable.vue`'s template, not by adding new CSS: `.txn-col-head` is now the very first thing in ITS column - the two headings never lined up horizontally.
first element (matching `SourceDocumentPanel.vue`'s own `.pdf-col-head`, already the
first child of its column), `.txn-top-bar` moved down to occupy the vertical slot
"Move to project" used to have, and "Move to project" itself moved off its own row
and into `.txn-col-head-actions`, alongside Flagged only/Next flagged/Hide Source
Doc - one horizontal line instead of three stacked rows above the fields.
No new CSS was needed for the alignment itself - `.review-grid`'s existing **First pass** moved `.txn-col-head` to be the column's first element (so it aligns
`align-items:start` already lines up both columns' first child at the same top edge, with `.pdf-col-head`, already first in its own column - both are first children of
so moving `.txn-col-head` to literally be first was sufficient. `.move-to-project`'s sibling columns under `.review-grid`'s `align-items:start`, so no new CSS was needed
own `margin-bottom:14px` (needed when it was a standalone block row) was dropped for the alignment itself) and dropped "Move to project" INTO that same heading row,
since it's now a flex child within `.txn-col-head-actions`'s own row, and the stale alongside Flagged only/Next flagged/Hide Source Doc. **The user corrected this**:
code comments on `.txn-top-bar`/`.doc-nav`/`.move-to-project` (each referencing the "Move to project" was meant to move DOWN, not up - staying at the LEFT, in a new row
old order) were updated to match. of its own directly above the balance fields, with Flagged only/Next flagged/Hide
Source Doc joining it on that SAME row but right-aligned - leaving the Transactions
heading with no actions beside it at all, matching Source Document's own heading
even more closely (just the h2, nothing else).
Verified: `npm run build` passes; the `app` container rebuilt, and the served bundle **Fixed**: `.txn-col-head` is now just `<h2>Transactions</h2>`, nothing else. A new
(hash-matched against the local build output) confirmed to contain both `.txn-actions-row` (`justify-content:space-between`) sits directly above
`txn-col-head-actions` and `move-to-project`. No backend touched - pure template `.fields-row`, with "Move to project" as its left child and a new `.txn-actions-right`
reordering + a CSS trim, so `backend/measure.py` doesn't apply. **Not machine- wrapper (Flagged only/Next flagged/Hide Source Doc) as its right child - replacing
verified:** the actual rendered alignment in a real browser - Claude-in-Chrome still the old `.txn-col-head-actions` class entirely (confirmed removed, not just
did not connect this session (tried again) - same standing limitation as every unreferenced - grepped for it after the edit). `.txn-top-bar` (Results/DocumentNavBar/
other UI-only change in this project; this one in particular is worth the user's Accept/Download) stays second, between the heading and the new actions row, since the
own look since it's a pure visual-alignment request. user's correction didn't ask to move it again. One real slip during the first pass'
own edit, caught and fixed before ever building: moving the `.txn-top-bar` block up
left a stale, now-duplicate copy of that exact block still sitting further down the
file (right after the move ConfirmModal) - caught by grepping the file for
`class="txn-top-bar"` and `DownloadChoiceModal` after the edit and finding 2 and 4
hits respectively where exactly 1 and 2 (1 real + 1 import/usage) were expected;
removed the duplicate before it ever reached a build.
Verified: `npm run build` passes both passes; after the correction, grepped the
component for `txn-top-bar`/`DownloadChoiceModal`/`move-to-project`/`txn-col-head`/
`txn-actions-row` to confirm exactly one real occurrence of each (catching the
duplicate above); the `app` container rebuilt each time, and the served bundle
hash-matched against the local build output and confirmed to contain `txn-actions-row`/
`txn-actions-right` while `txn-col-head-actions` no longer appears anywhere. No
backend touched - pure template reordering + CSS, so `backend/measure.py` doesn't
apply. **Not machine-verified:** the actual rendered alignment/spacing in a real
browser - Claude-in-Chrome still did not connect (tried again both passes) - same
standing limitation as every other UI-only change in this project; this one in
particular needs the user's own look, since it's a pure visual-alignment request and
the first pass already shipped a misread of it once.
**Governing rule: never silently correct or exclude data.** This shows up in several **Governing rule: never silently correct or exclude data.** This shows up in several
concrete places, not just as an abstract principle: concrete places, not just as an abstract principle:
@ -2941,17 +2958,18 @@ restructure; the behavior itself predates it and is unchanged:
`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.
- **The Transactions column's own vertical order, as of 2026-10-30:** `.txn-col-head` - **The Transactions column's own vertical order, as of 2026-10-30:** `.txn-col-head`
(the "Transactions" h2 + its actions row - Flagged only/Next flagged, "Move to (JUST the "Transactions" h2, no actions beside it) is the FIRST thing in the
project," Hide/Show Source Doc) is the FIRST thing in the column, so it aligns column, so it aligns horizontally with `SourceDocumentPanel.vue`'s own "Source
horizontally with `SourceDocumentPanel.vue`'s own "Source Document" heading on the Document" heading on the sibling panel - both are simply the first child of a
sibling panel - both are simply the first child of a sibling flex column under sibling flex column under `.review-grid`'s `align-items:start`, so no extra CSS was
`.review-grid`'s `align-items:start`, so no extra CSS was needed once each was needed once each was literally first. Second is the former top bar (Results
literally first. The former top bar (Results dropdown/`DocumentNavBar`/Accept/ dropdown/`DocumentNavBar`/Accept/Download, `.txn-top-bar` - see the next bullet for
Download, `.txn-top-bar`) moved down to sit second, in the vertical slot "Move to what it contains). Third is a new `.txn-actions-row`, directly above the balance
project" used to occupy on its own standalone row - see the next bullet for what it fields: "Move to project" at the LEFT, and a `.txn-actions-right` group (Flagged
contains. "Move to project" itself moved FROM that standalone row INTO only/Next flagged/Hide Source Doc) at the RIGHT, one space-between row rather than
`.txn-col-head-actions`, same horizontal line as Flagged only/Next flagged/Hide three things stacked across two different rows the way an earlier same-day pass
Source Doc, rather than its own row. had it (that pass put "Move to project" up in the title row instead - corrected per
explicit feedback once it shipped wrong).
- `TransactionsTable.vue`'s own top bar (replacing the old standalone `ResultCard.vue`, - `TransactionsTable.vue`'s own top bar (replacing the old standalone `ResultCard.vue`,
deleted 2026-10-13) is a 3-part row: a "Results" toggle on the left opens a deleted 2026-10-13) is a 3-part row: a "Results" toggle on the left opens a
hover-sticky dropdown (click to open; closes automatically once the mouse leaves the hover-sticky dropdown (click to open; closes automatically once the mouse leaves the

View File

@ -86,9 +86,10 @@ h1{ font-family:var(--fd); font-weight:800; font-size:30px; letter-spacing:-.01e
/* .fields-row pairs the balance inputs with the Recheck Balance button - /* .fields-row pairs the balance inputs with the Recheck Balance button -
the button sits at the row's own right edge, lining up under the the button sits at the row's own right edge, lining up under the
Hide/Show Source Doc toggle above it (txn-col-head is also a full-width Hide/Show Source Doc toggle above it (.txn-actions-row is also a
row with its own button at the right). Drops below the closing-balance full-width row with its own buttons at the right). Drops below the
field on narrow viewports - see the mobile breakpoint below. */ closing-balance field on narrow viewports - see the mobile breakpoint
below. */
.fields-row{ display:flex; align-items:flex-start; gap:16px; margin-bottom:16px; } .fields-row{ display:flex; align-items:flex-start; gap:16px; margin-bottom:16px; }
.fields-row .fields{ flex:1 1 auto; min-width:0; margin-bottom:0; } .fields-row .fields{ flex:1 1 auto; min-width:0; margin-bottom:0; }
/* .recheck-spacer mirrors .fields label's own box (same font-size/ /* .recheck-spacer mirrors .fields label's own box (same font-size/
@ -571,10 +572,19 @@ tr.editing td{ background:rgba(37,99,235,.03); }
container-type:inline-size; container-name:txncol; container-type:inline-size; container-name:txncol;
} }
.txn-col-head{ .txn-col-head{
display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; flex-shrink:0; display:flex; align-items:center; margin-bottom:18px; flex-shrink:0;
} }
.txn-col-head h2{ margin-bottom:0; } .txn-col-head h2{ margin-bottom:0; }
.txn-col-head-actions{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; } /* Move to project (left) / Flagged only, Next flagged, Hide Source Doc
(right, .txn-actions-right) - one row, sitting right above the
balance fields rather than beside the Transactions heading, so that
heading can align horizontally with Source Document's own (see
.txn-col-head above and .pdf-col-head). */
.txn-actions-row{
display:flex; align-items:center; justify-content:space-between; gap:12px;
margin-bottom:14px; flex-wrap:wrap;
}
.txn-actions-right{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.btn-toggle-active{ background:var(--amber); box-shadow:0 2px 10px rgba(217,119,6,.25); } .btn-toggle-active{ background:var(--amber); box-shadow:0 2px 10px rgba(217,119,6,.25); }
.btn-toggle-active:hover{ background:var(--amber); } .btn-toggle-active:hover{ background:var(--amber); }
.txn-col .fields, .txn-col .note{ flex-shrink:0; } .txn-col .fields, .txn-col .note{ flex-shrink:0; }
@ -853,11 +863,10 @@ tr.editing td{ background:rgba(37,99,235,.03); }
/* Lets the active document be reassigned to a different project even /* Lets the active document be reassigned to a different project even
with just one document loaded (independent of DocumentNavBar's own with just one document loaded (independent of DocumentNavBar's own
>1-document visibility gate). Lives inside .txn-col-head-actions >1-document visibility gate). Sits at the LEFT of .txn-actions-row,
(2026-10-30, moved there from its own standalone row) - same with Flagged only/Next flagged/Hide Source Doc grouped at the right
horizontal line as Flagged only/Next flagged/Hide Source Doc, so no (2026-10-30) - no margin-bottom of its own, that row's parent handles
margin-bottom of its own anymore (that row's parent already handles spacing via its own margin-bottom. */
spacing via .txn-col-head's own margin-bottom). */
.move-to-project{ display:flex; align-items:center; gap:8px; } .move-to-project{ display:flex; align-items:center; gap:8px; }
.move-to-project label{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; color:var(--t3); flex-shrink:0; } .move-to-project label{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; color:var(--t3); flex-shrink:0; }
.move-to-project select{ .move-to-project select{

View File

@ -382,54 +382,14 @@ async function handleAccept() {
horizontally with SourceDocumentPanel.vue's own "Source Document" horizontally with SourceDocumentPanel.vue's own "Source Document"
heading - both are the first child of a sibling column under heading - both are the first child of a sibling column under
.review-grid's align-items:start, so they land on the same line for .review-grid's align-items:start, so they land on the same line for
free once each is literally first, no extra CSS needed. "Move to free once each is literally first, no extra CSS needed. Carries no
project" moved INTO this row's own actions (same horizontal line as actions of its own anymore (corrected same day - see .txn-actions-row
Flagged only/Next flagged/Hide Source Doc), vacating the row below below for where Flagged only/Next flagged/Hide Source Doc/Move to
the heading - which is exactly where the former top bar (Results/ project actually live now).
DocumentNavBar/Accept/Download) now sits instead, see below.
--> -->
<div class="txn-col-head"> <div class="txn-col-head">
<h2>Transactions</h2> <h2>Transactions</h2>
<div class="txn-col-head-actions">
<template v-if="extractionStore.flaggedIndexes.size > 0">
<button
type="button"
class="btn-toggle"
:class="{ 'btn-toggle-active': flaggedOnly }"
title="Show only flagged rows"
@click="toggleFlaggedOnly"
>
<i class="fa-solid fa-triangle-exclamation"></i>
Flagged only
</button>
<button type="button" class="btn-toggle" title="Jump to the next flagged row" @click="jumpToNextFlagged">
<i class="fa-solid fa-forward-step"></i>
Next flagged
</button>
</template>
<div v-if="result" class="move-to-project">
<label><i class="fa-solid fa-folder-open"></i>Move to project</label>
<select v-model="selectedProjectId" :disabled="movingProject" @change="handleSelectChange">
<option v-for="p in projectsStore.projects" :key="p.id" :value="p.id">{{ p.name }}</option>
</select>
<span v-if="moveConfirmNote" class="move-confirm-note"><i class="fa-solid fa-circle-check"></i>{{ moveConfirmNote }}</span>
</div>
<button class="btn-toggle" type="button" @click="uiStore.togglePdfCol">
<i class="fa-solid" :class="uiStore.pdfColHidden ? 'fa-eye' : 'fa-eye-slash'"></i>
{{ toggleLabel }}
</button>
</div>
</div> </div>
<ConfirmModal
:visible="showMoveConfirm"
title="Move document?"
title-icon="fa-folder-open"
:message="`Move “${extractionStore.activeDocument?.fileName}” to “${pendingProjectName}”?`"
confirm-label="Move"
confirm-icon="fa-folder-open"
@confirm="confirmMove"
@cancel="cancelMove"
/>
<!-- <!--
The former ResultCard.vue, merged into this top bar: a Results The former ResultCard.vue, merged into this top bar: a Results
@ -490,6 +450,56 @@ async function handleAccept() {
@all="handleDownloadChoiceAll" @all="handleDownloadChoiceAll"
@cancel="showDownloadChoice = false" @cancel="showDownloadChoice = false"
/> />
<!--
Move to project (left) / Flagged only, Next flagged, Hide Source Doc
(right) - one space-between row, sitting right above the balance
fields (corrected same day - these previously lived split across the
Transactions title row and their own separate rows; the user asked
for Move to project to stay left and move down here, with the other
three buttons joining it on this same row but right-aligned).
-->
<div class="txn-actions-row">
<div v-if="result" class="move-to-project">
<label><i class="fa-solid fa-folder-open"></i>Move to project</label>
<select v-model="selectedProjectId" :disabled="movingProject" @change="handleSelectChange">
<option v-for="p in projectsStore.projects" :key="p.id" :value="p.id">{{ p.name }}</option>
</select>
<span v-if="moveConfirmNote" class="move-confirm-note"><i class="fa-solid fa-circle-check"></i>{{ moveConfirmNote }}</span>
</div>
<div class="txn-actions-right">
<template v-if="extractionStore.flaggedIndexes.size > 0">
<button
type="button"
class="btn-toggle"
:class="{ 'btn-toggle-active': flaggedOnly }"
title="Show only flagged rows"
@click="toggleFlaggedOnly"
>
<i class="fa-solid fa-triangle-exclamation"></i>
Flagged only
</button>
<button type="button" class="btn-toggle" title="Jump to the next flagged row" @click="jumpToNextFlagged">
<i class="fa-solid fa-forward-step"></i>
Next flagged
</button>
</template>
<button class="btn-toggle" type="button" @click="uiStore.togglePdfCol">
<i class="fa-solid" :class="uiStore.pdfColHidden ? 'fa-eye' : 'fa-eye-slash'"></i>
{{ toggleLabel }}
</button>
</div>
</div>
<ConfirmModal
:visible="showMoveConfirm"
title="Move document?"
title-icon="fa-folder-open"
:message="`Move “${extractionStore.activeDocument?.fileName}” to “${pendingProjectName}”?`"
confirm-label="Move"
confirm-icon="fa-folder-open"
@confirm="confirmMove"
@cancel="cancelMove"
/>
<div class="fields-row"> <div class="fields-row">
<div class="fields"> <div class="fields">
<div> <div>