Skip to content

fix(web): make the window hold still through a twenty-line invoice (0.8.0) - #7

Merged
nodemode-ai merged 31 commits into
mainfrom
feat/window-0.8.0
Nov 27, 2026
Merged

nodemode-ai merged 31 commits into
mainfrom
feat/window-0.8.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(web): make the window hold still through a twenty-line invoice (0.8.0)

Summary

  • The window now meets its exit test: a twenty-line invoice typed and posted, then three ledger screens opened, with no layout shift under a slowed processor and network.
  • Tables with a totals row have a fixed height and scroll inside it; the totals stay at the foot, the header at the top, and rows keep their 30 px height. Cause of the old shift: the totals row sat under the rows and moved when they arrived. A first fix in this branch stretched short tables' rows and was replaced within the branch: a hidden filler now takes the spare height from the row count.
  • The line grid shows eight lines and scrolls after that, and the picker's list keeps its side and size. Cause: each new line pushed the totals, the error line and the buttons down, and the list flipped from above the field to below it while filtering (0.3707 of shift with input over twenty lines, now 0).
  • The payment form loads a party's open invoices once (two overlapping loads used to add, remove and re-add a row) and picks the party with the shared search box.
  • Profit and loss starts on the fiscal year's first day. Setup rows land in code order. Every sidebar screen has an icon.

Commits

31 commits, release commit last. No hashes, since they change when signed. By area: shared table, sidebar and web parts 13 · payments 4 · ledger screens 4 · statements 3 · setup lists 2 · icons 2 · window docs 2 · release 1. By type: fix 14, feat 6, docs 9, refactor 1, chore 1.

Version

v0.8.0 (release commit is last). Moved: internal/app/version.go, Makefile line 1, web/package.json, both fields in web/package-lock.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml and its entry in src-tauri/Cargo.lock, the "Current build version" line in four logs, and a new section in CHANGELOG.md.

Checks

Run by the orchestrator at the head: go build ./..., go vet ./..., gofmt -l cmd internal printing nothing, the web type check. Each of the 30 commits before the release commit was checked out in a copy and built: 30 of 30. Scans over the new commits: one author and committer, offset -0500, no attribution words, no merge commit, no test file, no em dash or emoji in changed markdown, no raw z-index.

Run by the orchestrator once, at the last code commit, in a private built copy served by the binary, processor slowed 4x, 400 ms latency at about 400 kbit/s, cache off, sign-in through the form, hard reload on the new invoice form: customer chosen, twenty lines typed with Enter straight after each item code (twenty of twenty held their item), Post. The server answered SI-2026-000001, posted, subtotal 625.00, tax 50.00, total 675.00. Then trial balance, general ledger and profit and loss were opened from the sidebar. Layout-shift entries: 0 without input and 0 with input at every step. No page error. The only response of 400 or above was the expected 401 before sign-in. The same script run before the grid and picker fixes recorded 0.3707 with input while typing. Row heights measured after the table fix: 30 px on the trial balance and profit and loss, totals at the foot of the box.

Run by agents only, in private built copies under the same throttling: three more twenty-line runs (two sales, one purchase, each posted with twenty lines read back); a payment received and a payment made with allocation and remainder; a goods receipt and a delivery note posted with their journal entries; the six setup lists created and edited, only the edited row written; five ledger screens at 0 with scrolling bodies, columns aligned; statements at 0 (0.0613 before) and the fiscal start with a year that begins in July; document lists paging exactly the new rows; a purchase order entered and confirmed in the form; purchase, stock and receivable flows through the routes with reconciles at zero difference.

Not run: the desktop shell (it has never been compiled); the CI workflow for these commits; a sales order entered in the form in a browser; cancelling from the form in a browser; the allocation box with more than eight rows; viewports other than 1280 to 1400 px wide. One log entry is missing for the grid and picker change; its text: the line grid has a fixed block size (header plus eight rows) so a new line moves nothing below it, and the picker's list uses a 320 px minimum height so it keeps its side and size while filtering.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

A table with totals now has a fixed height, a filler row that takes the spare space, and a totals row and header that stick to the edges, so the totals no longer move when rows arrive.
Each invoice load takes its own sequence number and a late answer is dropped, so choosing a party no longer adds, removes and re-adds a row.
The form now calls grid.setCurrency with the loaded document's currency so line amounts use its decimal places.
Twenty hand-drawn icons in the existing 24 box, 1.75 stroke, round caps.
VIEW_ICONS is typed against IconName so a wrong name fails the check.
The party select becomes the shared picker, as on the document form, in a host of fixed size, and a picked party outside the first page of parties is still loaded.
A screen with no icon of its own takes the one mapped to its id; the sidebar already reserved the icon's column, so labels do not move.
…and hide the filler

The filler row under each statement table shrank as rows arrived and was the only node shifting, 0.061 on profit and loss and 0.060 on the balance sheet; it is now 0.
The count beside a document list's load more button changed width when rows arrived and moved the button. It now has a fixed width, so layout shift without input on the paged lists is zero.
…shift them

The totals list used an auto column that widened as the total grew, moving the amounts sideways on post; a fixed 16ch column keeps them still.
A new setup row is moved to its sorted position by its first column instead of being appended at the end of the list.
The default From is the start of the fiscal year containing the end date, read from the fiscal years route, falling back to January 1 when none contains it.
Notes why the one new row is moved to its sorted position after a create.
… year

Records the new default start and the layout shift trace.
The five screens size their table to the window with --tbl-block and hide the filler row. The totals row sticks as a row so it no longer reports a shift.
Records why the screens size to the window and how the totals row sticks.
…push the form

The allocation box keeps a fixed height of eight rows with the unallocated line sticky at its foot, so rows arriving after a party is picked no longer move the error line and buttons.
Records why the totals amounts use a fixed column and where the form sets the grid currency.
…eens

The shared filler row moved down and shrank as rows arrived, which Chrome counted as a shift of about 0.08, so these screens hide it inside the fixed table box.
Records why the payment form loads invoices once per party and why its boxes are fixed.
Sidebar icons, the count width, the party picker on payments and the fiscal year start of profit and loss are now stated; the moving totals row line is gone.
The filler shrank as rows arrived and counted as a layout shift on every list with totals; it is now hidden, and the totals row itself sticks so it no longer moves off screen on a long list.
Eight lines fit before the body scrolls, so a new line no longer pushes the totals, error line and actions down.
The list kept flipping above the input at full height and dropping below once it shrank; a fixed minimum height keeps its side and size.
Chrome gave the spare height to the data rows, which stretched; the filler now takes box height minus the rows, read from one custom property the table writes, so rows keep their height and the totals stay at the foot.
…covers

The payment and ledger screens each hid or re-pinned the filler locally; with the shared fix those rules left the totals unpinned on payment lists.
The file now ends with a line break.
The entry now says the shared table covers the filler and totals row, with the re-measured figures.
The window page now says the line grid scrolls after eight lines, the picker list keeps a minimum height, tables with totals have a fixed height, and the payment box scrolls.
Why the count beside load more has a fixed width, with the shift figures.
Moves every version site to 0.8.0 and adds the changelog section.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 27, 2026 18:15
@nodemode-ai
nodemode-ai merged commit 88aae17 into main Nov 27, 2026
2 checks passed
@nodemode-ai
nodemode-ai deleted the feat/window-0.8.0 branch November 27, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant