Skip to content

feat(web): give the window its first design pass and add export and snapshot (0.9.0) - #8

Merged
nodemode-ai merged 48 commits into
mainfrom
feat/design-and-reports-0.9.0
Nov 27, 2026
Merged

nodemode-ai merged 48 commits into
mainfrom
feat/design-and-reports-0.9.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

feat(web): give the window its first design pass and add export and snapshot (0.9.0)

Summary

  • A design pass over every screen, to one page of rules (docs/window/DESIGN.md) on form.md's tokens, shell and type: lists and ledger screens fill the window, filters sit in one bar, the main button is on the title row, a status is a badge, codes are fixed-width and amounts line up.
  • The document form has one heading with number and status, an aligned header block, totals under the amount column and the main button last; a posted document reads as read-only. A line with a quantity or price but no item is pointed out on save; it used to be dropped silently.
  • Setup screens are a list beside a scrolling form panel with its buttons in view; the form used to cut off its lower fields. Profit and loss and the balance sheet are laid out as statements. Home shows receivables, payables, cash and the last invoices. The top bar and sidebar are put right.
  • New: CSV export of 22 lists and statements by address and by ./formledger cli export, and ./formledger report snapshot, a plain read-only SQLite file with 13 documented tables for a spreadsheet.
  • Not in this pull request: export buttons in the window, PDFs, and a side-by-side comparison with form.md's own screens.

Commits

48 commits, release commit last. No hashes, since they change when signed. By area: document form and grid 11 · shared parts, tables and document lists 8 · shell, Home and views 6 · payments and setup 4 · ledger screens and statements 2 · CSV export 5 · snapshot 5 · docs and logs 6 · release 1. By type: feat 21, fix 14, docs 12, chore 1. The area counts are approximate where one commit touched two areas.

Version

v0.9.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 47 commits before the release commit was checked out in a copy and built: 47 of 47. 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 on the final code, in a private built copy served by the binary, processor slowed 4x, 400 ms latency at about 400 kbit/s, cache off, hard reload on the new invoice form: twenty lines typed with Enter straight after each item code (twenty of twenty held), Post; the server answered SI-2026-000001, posted, 625.00 plus 50.00 tax, 675.00; then trial balance, general ledger and profit and loss opened from the sidebar. Layout-shift entries: 0 without input and 0 with input at every step. The run before it recorded 0.00001 on post, from the status badge growing after the title row moved into the shell's head; that was fixed and the whole run repeated. The orchestrator also looked at screenshots of the integrated build at 1400 by 900: Home, sales invoices, the document form, the trial balance, profit and loss, customers and the chart of accounts.

Run by agents only: before and after screenshots of each screen they changed; lists with 130 invoices (rows 30 px, paging adds exactly the new rows, 0 shift); setup rows created and edited with Enter; a payment received posted with allocation and read back; the seven ledger and statement screens at 0; all 22 exports answering 200 with totals equal to the JSON routes, the command line byte-identical to the route, and the formula guard on a hostile customer name; a snapshot whose debits equal credits and whose trial balance equals the app's, before and after cancelling an invoice, a payment and a journal.

Not run: the desktop shell (it has never been compiled); the CI workflow for these commits; the light theme; windows other than 1400 px wide; the purchase form, payments-out, goods receipt and delivery note forms after the pass; payments-in with rows after the last table change; an export as a role without the permission; a snapshot opened by a spreadsheet app. The orchestrator did not run the exports or the snapshot itself.

Merging

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

One page says how the page, toolbar, tables, forms and shell are laid out with form.md's tokens, so every screen is brought to the same standard.
…sses

Adds the page fill, head, bar, badge, num, field, form actions and tbl--grow classes other screens use by name, and centres the empty table message.
A line with a typed quantity or price but no item now stays on the form, is marked as needing an item, and the error line names it; save stops until it is fixed.
A column tone other than muted or danger now renders a badge written in place, statusTone maps statuses for reuse, and tables gain grow and mono flags.
One writer turns ordered JSON rows into RFC 4180 CSV with snake case headers, major unit amounts, plain dates and a formula guard on text cells.
Adds the snapshot package with its own flat analysis schema, copied inside one read transaction and renamed into place when whole.
GET /api/export/{name}.csv runs the JSON route in process with the caller's own session, so the permission and parameters are that route's, and pages through every cursor.
Each setup field now carries a column span, codes are mono, Active reads as a word for a badge, and helpers give the form title and the account depth.
Wires formledger report snapshot with --out and --force; it refuses while a server holds the data folder.
When a view mounts a page--fill into the shell's page body, the page, body and head share the window height and the actions sit on the title row.
The seven lists fill the window with a growing table, a title row New button, a status bar with a reserved count and load more, badges, mono numbers, a currency column and a real empty message per list.
The top bar now holds the screen name on the leading side and the name, a muted role badge and sign out on the trailing side, with nothing in the middle.
…ccent

The sidebar list now scrolls inside its own box below the brand, groups have even spacing, and the current item takes the accent wash with an accent icon.
formledger cli export NAME fetches /api/export/NAME.csv with the app token, passes other flags as query parameters and writes to stdout or --out.
Each screen's page now opens with a page head holding the title and an actions box, passed to mount as a third argument so a screen can put its one primary action there; screens that ignore it are unchanged.
The trial balance, ledger, ageing and stock screens use the shared page and bar, size the table from its box instead of a guessed height, show codes in mono, and add balance badges and an account prompt.
Lists every snapshot table and column, the schema version rule and five example selects checked against a seeded file.
days1to30 now reads days_1_to_30 instead of days_1to_30 in the ageing headers.
Records why the snapshot copies through Go from one read transaction and why the command refuses a held data folder.
Home now shows what customers owe, what is owed to suppliers and cash, each linking to its screen, and the last five sales and purchase invoices; every tile and row is built at its final size before data arrives.
…actions

The number and a toned status badge sit in the title row, header fields share an eight column grid with the party wide, and actions are trailing aligned through css order with the primary last and cancel document danger on hover. A posted document shows its fields without boxes.
The line grid now takes the height left in the window with a sticky header, shows item, description, quantity, price, tax and amount with a mono item code, a focused cell ring and a quiet remove control. Totals sit under the amount column with the total the largest number, and a posted grid drops its boxes and spare line.
Lists the 22 exports with their JSON route, parameters, permission and columns, and states the encoding, money, date and formula guard rules.
The narrower date column cut ISO dates under the sans face; it now fits them whole.
Setup screens are a full-height list beside a fixed-width form panel that scrolls inside, titled New or Edit with the code and name, with required marks, badges for status and type, and the chart of accounts indented by level.
Records why the export runs the JSON route in process, how money columns are found and why there is no byte order mark.
The missing item outline now rings the item cell alone, and picking an item clears the line's mark and message.
Profit and loss and balance sheet become a sheet with section headings, indented account lines, medium subtotals, one large result line pinned at the foot, a balanced badge, and a bar with the date filters.
The usage text now names the snapshot command and its flags.
Records why cell tones and badge tones split, how a fill page joins the shell title row, the per row currency choice and the measured numbers.
The amount column now shows quantity times price for each line while typing and the saved line subtotal once the server answers, so the column agrees with the subtotal under it.
Records why the ledger table sizes from its container and why the statements became sheets.
Records why the form has a fixed height, how the hidden subtotal columns and the net amount column work, and the measured shift and keyboard entry numbers.
The recent invoice rows now give the number and date columns room for their full text, statuses read in sentence case like the lists, and the tile amount sits under its label.
When a screen opens, its sidebar item scrolls into view inside the sidebar list, so the current mark is never hidden below the fold in a short window.
…erses

A reversed manual entry and its reversal now share one doc_number in ledger_lines, as document reversals already did.
Adds the first pivot a spreadsheet user wants and says a reversal shares the doc_number of what it reverses.
Records where the home figures come from, how the home page reserves its space, the actions slot handed to screens and the measured layout shift.
Payment lists fill the window with a status filter, a count and one primary action, numbers in mono and status as badges; payment and stock forms show status as a badge, a single party label and actions trailing with the primary last.
Records how the setup screens and payment lists fill the window and what was measured.
The receive and make payment buttons move to the page actions in the title row, leaving the bar for the filter and the count.
The lists append New to the actions box the shell passes to mount, and the negative margin lift rule is gone from the shared parts.
A grow table with a foot is wrapped in a size container so its box and filler use the grown height and totals sit at the foot, and badges capitalise their first letter.
The kind and number are written into the shell's title with the status badge beside it and the kind select in the shell's actions box, and the freed row goes to the line box. Header labels and controls now share one baseline and one control height.
The badge is an inline flex box of fixed width so draft and posted take the same room in the title row.
The shared badge rule won over the form's width, so the badge grew from Draft to Posted and pushed the hidden working text 11 px.
…ing text

The title row moved into the shell's head, outside the form's custom properties, so its widths resolved to nothing and the badge still grew on post.
Moves every version site to 0.9.0 and adds the changelog section.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 27, 2026 19:41
@nodemode-ai
nodemode-ai merged commit 5b422ec into main Nov 27, 2026
2 checks passed
@nodemode-ai
nodemode-ai deleted the feat/design-and-reports-0.9.0 branch November 27, 2026 19:47
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