Skip to content

fix(window): column widths the policy allows, a filled first screen, and an account for lines with no item (0.14.0) - #14

Merged
nodemode-ai merged 16 commits into
mainfrom
feat/close-0.14.0
Nov 28, 2026
Merged

nodemode-ai merged 16 commits into
mainfrom
feat/close-0.14.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(window): column widths the policy allows, a filled first screen, and an account for lines with no item (0.14.0)

Summary

  • Column widths on every list and report never applied. Cause: the shared table set them with an inline style attribute, which the server's style-src 'self' policy blocks. They are set through the style object now. The payment allocation table had the same fault in six places and now uses classes.
  • Home in the desktop app showed labels and blank panels. Cause: its loader returned early for an owner who has not claimed the account, which is how the desktop app starts.
  • A document started from a template lost its party and its tax rate, so totals left out tax. Cause: the template answer carries codes and the form treated them as ids.
  • A line with no item was refused on a purchase document with no_expense_account. It now posts to purchase.expense_account or 5100, and a sales line with no item to the new sales.income_account or 4100. The form shows that account on the line. A refusal about one line shows on that line.
  • Numbers in line and total cells no longer record a layout shift while typing. Cause: the text node was replaced on each keystroke, and right-aligned text re-anchored.
  • Delivery notes asked for 500 customers where the server allows 200 and got a 400 on every load.

Commits

16 commits, oldest first, release commit last:

  • 9 fix (allocation columns, template codes, purchase and sales free lines, text node, table widths, Home, customer limit, numeric anchor)
  • 2 feat (hint refresh in the grid, default account shown on free lines)
  • 4 docs (print run, three log commits)
  • 1 chore (release)

Version

v0.14.0 (release commit is last). Bumped: internal/app/version.go, Makefile line 1, web/package.json, two fields in web/package-lock.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml, the formledger-desktop entry in src-tauri/Cargo.lock, the "Current build version" line in the four HASHOUT_LOG.md files, the README badge, and a new CHANGELOG.md section.

Checks

All browser checks for this version ran with the content security policy enforced. Earlier checks had bypassed it.

  • go build ./... passed at each of the 16 commits; go vet ./..., gofmt and npm run check in web/ passed at the head.
  • On the branch before the release commit, in Chrome at CPU 4x with a slowed network and the policy enforced: the exit run typed and posted a twenty-line invoice and opened the three reports with 0 layout shift on all 7 steps. A hard reload of 16 screens (Home, Dashboards, Setup, Templates, three lists, four reports, Payments received, Delivery notes, a template-started sales document and a purchase document) read 0 policy violations, 0 layout shift with and without input, and no console errors.
  • The desktop shell (debug build, Linux, virtual display) with this branch's server on a fresh install: Home showed 0.00 in each card, the two empty-state sentences and the key backup notice.
  • By the slices, same throttling: 36 routes in dark and light read 0 policy violations once the table change was in (242 before it); purchase form 30 pixel lines and 0 shift; error tags 0 shift; a hand-typed free line posted to 5100 on a purchase invoice and to 4100 on a sales invoice, as the hint named; typing a unit price after select-all 0 with and without input (0.00008 before); a template-started purchase invoice kept its supplier and read 120.00, 9.60, 129.60. Through FormTxt 0.38.0 with posted documents: seven kinds with numbered headings at 612 by 792 points, a EUR invoice, quote and order at 595 by 842, and a statement with three rows and a closing balance.

Not run: FormCel's window reading the snapshot. The packaged app, and anything on macOS or Windows. The refusal sentence for a chart with no 5100 or 4100 in a browser. Negative amounts in the form. Light theme for the document form.

Merging

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

…ows them

The six allocation col widths moved from inline style attributes to classes in payments.css.
Every printable kind was posted and printed through FormTxt 0.38.0 from the shipped templates, with numbered headings, A4 pages for EUR and a statement with rows.
The template use answer names the supplier, items and tax rates by code, and the form looked them up as ids, so a template-started document lost its tax rate and its party.
Records why the col widths left the style attribute and what the enforced policy sweep found.
The web log gives the template code fix and the measured form runs; the internal log gives the FormTxt run with posted documents.
… named

A purchase line with no item and no expense account now posts to the purchase.expense_account setting, 5100 by default, and the refusal says what to add when that account is missing.
A sales line with no item and no income account now posts to the sales.income_account setting, 4100 by default, and the refusal says what to add when that account is missing.
The amount, tax and subtotal cells now change the data of their one text node instead of replacing it, so typing a price records no layout shift from a removed node.
Every list and report set its column widths with an inline style attribute, which style-src 'self' blocks, so the widths never applied in the real app. They are set through the style object now.
…unt yet

Home returned early for an unclaimed owner, so the desktop app's first screen showed labels and blank panels. Every call it makes already answers for that owner.
Delivery notes asked for 500 and got a 400 on every load.
The grid now exposes refreshHints so a hint can be written once its account name arrives.
A line with no item shows the account it will post to, 5100 for buying and 4100 for selling, and a refusal that names a line lands on that line's error tag too.
Prices, amounts and totals now lay out right to left with plaintext bidi, so a value that grows a digit keeps its anchor and records no layout shift.
Both logs explain the default account rule, the hint, the text node write and the right edge anchor, with the measured runs.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 28, 2026 04:58
@nodemode-ai
nodemode-ai merged commit 1b25c65 into main Nov 28, 2026
2 checks passed
@nodemode-ai
nodemode-ai deleted the feat/close-0.14.0 branch December 1, 2026 21:17
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