Repository navigation
fix(web): make the window hold still through a twenty-line invoice (0.8.0) - #7
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(web): make the window hold still through a twenty-line invoice (0.8.0)
Summary
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,Makefileline 1,web/package.json, both fields inweb/package-lock.json,src-tauri/tauri.conf.json,src-tauri/Cargo.tomland its entry insrc-tauri/Cargo.lock, the "Current build version" line in four logs, and a new section inCHANGELOG.md.Checks
Run by the orchestrator at the head:
go build ./...,go vet ./...,gofmt -l cmd internalprinting 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.