Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c826493
docs(community): bring the code of conduct, contributing and security…
nodemode-ai Dec 1, 2026
db442d6
docs(readme): follow the family README shape with a download table an…
nodemode-ai Dec 1, 2026
420106a
feat(home): a start screen and Preferences in the family's form, with…
nodemode-ai Dec 1, 2026
ae7c901
feat(theme): family token names, a light override layer and one layer…
nodemode-ai Dec 1, 2026
ad60230
feat(glass): glass on the menu and the palette, popovers on the famil…
nodemode-ai Dec 1, 2026
33768be
docs(log): record the family tokens, the layer scale and the glass po…
nodemode-ai Dec 1, 2026
3afe293
feat(menus): the in-window menu bar and the macOS menu from one list,…
nodemode-ai Dec 1, 2026
9898d6b
feat(desktop): let the window build the macOS menu and step the zoom,…
nodemode-ai Dec 1, 2026
df1c2e4
docs(log): record the menu bar port, the system menu list and the she…
nodemode-ai Dec 1, 2026
350153d
build: --config on build_app, the Tauri CLI on demand, ci on compile …
nodemode-ai Dec 1, 2026
adc4462
feat(dock): the family agent dock in the window, with shell, Claude C…
nodemode-ai Dec 1, 2026
195373b
feat(dock): terminals, agent program status and the terminal stream i…
nodemode-ai Dec 1, 2026
8cec646
feat(shell): mount the menu bar and the agent dock from the window's …
nodemode-ai Dec 1, 2026
d6af983
build: ignore the permissions tauri-build writes
nodemode-ai Dec 1, 2026
0c31a30
fix(shell): the bar host carries the menu bar's class from first pain…
nodemode-ai Dec 1, 2026
d15bb12
docs(log): record the Home start screen, Preferences, the theme boot …
nodemode-ai Dec 1, 2026
9b3b48e
fix(menus): the in-window fallback opens the bar row when the macOS m…
nodemode-ai Dec 1, 2026
d1ee0c2
build: lock the Tauri CLI as a dev dependency and drop the install fa…
nodemode-ai Dec 1, 2026
344d2fb
fix(dock): give xterm's styles to constructed sheets so the terminal …
nodemode-ai Dec 1, 2026
ffde49e
docs(readme): describe the 0.15.0 dock, Preferences and Linux needs a…
nodemode-ai Dec 1, 2026
ea4012f
docs(branching): list every version site and drop the SECURITY.md row
nodemode-ai Dec 1, 2026
b4fe793
docs(changelog): 0.15.0 for the person using the app, with known issu…
nodemode-ai Dec 1, 2026
78dca9d
docs(readme): show the app in use, in dark and light, from assets/scr…
nodemode-ai Dec 1, 2026
17a022c
fix(docform): whole dates and one row of buttons down to 1000 px
nodemode-ai Dec 1, 2026
3282806
docs(log): record the date width and the one-row actions
nodemode-ai Dec 1, 2026
d7a446e
feat(templates): 48 document templates for the Templates screen, invo…
nodemode-ai Dec 1, 2026
ff69fa7
feat(demos): three invented companies as data folders with three mont…
nodemode-ai Dec 1, 2026
7ae9162
docs: list the demos and templates in the README and record how they …
nodemode-ai Dec 1, 2026
e668a07
fix(docform): hover titles, a lead line that ends before the actions …
nodemode-ai Dec 1, 2026
7a35cb7
docs(log): record the titles, the lead line and the Description column
nodemode-ai Dec 1, 2026
fe9016d
docs(changelog): the demos, the templates and the document form fixes
nodemode-ai Dec 1, 2026
dfe6320
fix(window): a sidebar that scrolls under the dock, a free line that …
nodemode-ai Dec 1, 2026
b4dce48
docs(log): record the sidebar under the dock, the free line text and …
nodemode-ai Dec 1, 2026
60137ac
docs(changelog): the sidebar under the dock, the free line text, the …
nodemode-ai Dec 1, 2026
64b6dfb
chore(release): 0.15.0
nodemode-ai Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: ci

on:
push:
branches: [main]
branches: [main, "compile_v*"]
pull_request:
workflow_dispatch:

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
.DS_Store
/src-tauri/target/
/src-tauri/gen/
/src-tauri/permissions/autogenerated/
/src-tauri/binaries/*
!/src-tauri/binaries/.gitkeep
7 changes: 5 additions & 2 deletions BRANCHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ This repository has no release workflow and builds no release artifacts: packagi
1. On a `chore/release-vX.Y.Z` branch, bump the version everywhere it is written:
- `VERSION := vX.Y.Z` in `Makefile`
- `"version"` in `web/package.json` and `web/package-lock.json`
- `"version"` in `src-tauri/tauri.conf.json`
- the "latest release" row of the supported-versions table in `SECURITY.md`
- `"version"` in `src-tauri/tauri.conf.json`, `version` in `src-tauri/Cargo.toml` and the `formledger-desktop` entry of `src-tauri/Cargo.lock`
- `Version` in `internal/app/version.go`
- the version badge in `README.md`

The supported-versions table in `SECURITY.md` says "Latest release" and needs no change.
2. Commit it as `chore(release): vX.Y.Z (x.y.z)` and merge it into `main` through a pull request.
3. A maintainer hands the new `main` to FormCompiler, which builds and publishes the release.

Expand Down
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
# Changelog

## 0.15.0

FormLedger gets the family's menu bar, a Home start screen, Preferences and the agent dock, and takes on the family look.

### New
- **A menu bar in the window on Windows and Linux:** FormLedger, File, Edit, View, Go, Window and Help, made from the same list as the commands in the command palette. Alt or F10 opens it; the arrow keys, Home, End and the first letter of an item move through it. A menu opens under the bar and is never taller than three quarters of the window; a long one scrolls and shows a small hint at its foot while more rows lie below.
- **macOS: the system menu,** made from the same list, with Preferences under FormLedger. View > Menus in Window puts the bar in the window instead, from the next start.
- **Home** is a start screen: the FormLedger mark and name, a greeting, six cards for the first things to do (new sales invoice, new quote, new purchase invoice, record a payment, open the general ledger, start from a template), and under them the figures and last invoices that Home showed before.
- **Preferences** (Cmd or Ctrl plus comma, Edit > Preferences on Windows and Linux, FormLedger > Preferences on macOS, or the Preferences button on Home): theme Dark, Light or Match the system, six accent colours, the agent dock switch and the app lock. Theme and accent are in place from the first frame, so the window does not flash.
- **Agent dock** (View > Agent Dock, or Cmd or Ctrl plus J): a terminal panel beside the books with a shell tab and tabs for Claude Code, Codex and Cursor. A program that is not installed shows its install line. Only the owner of the books can open it, and only from this computer.
- **Three demo companies** in `demos/`: Larkspur Lane Cafe, Halftone Field Design Studio and Ironbark Hardware and Supply. Each is a data folder with three months of posted selling, buying, stock and payments. Copy one, start FormLedger with `FORMLEDGER_DATA` set to the copy, and sign in with the email in its `about.json` and the password `formledger-demo`. Every company, person and address in them is invented.
- **48 document templates** in `templates/` for the Templates screen: 20 sales invoices by trade, 8 quotes, 5 sales orders, 6 purchase orders and 9 supplier bills. Each file is posted to `/api/templates` as it is; Use opens a new draft from it.

### Improved
- The window follows the family's colour, spacing and type names, with a light theme built on them, glass on the menus and the command palette, and one stacking order for menus, palette, dock, dialogs and notices. Debit, credit and chart colours are as they were.
- The Agent Dock menu row shows its key (Cmd or Ctrl plus J) and the command palette shows keys for the dock and for Preferences.

### Fixed
- **With the agent dock open,** the links in the sidebar could sit under Reports, Setup and Templates and the user chip, and the list could not scroll. The list now scrolls above them.
- **A line with no item** showed only the first word or two of its description in the line grid. It now shows its text, and the full text is its hover title.
- **A sales or purchase document in a narrow window** cut the year off its date fields and wrapped the buttons along its foot onto a second row. The dates now show whole and the buttons stay on one row down to a window 1000 pixels wide, with their names as hover titles where only an icon fits. The line under the title now ends before the buttons, and the Description column of the lines no longer shrinks to a single letter.

### Changed
- Windows and Linux: the menu bar is drawn by the window. Before, the system drew the native menu as a bar of its own above it.
- The Settings menu item is called Preferences.

### Known issues
- macOS: the system menu and Menus in Window were not run on a Mac.
- Windows: the dock's tabs cannot open a terminal yet; the dock says so.
- Home has no Open or recent ledgers, because FormLedger keeps one company in its data folder and has no import.
- Preferences does not show the company settings (the instance name, negative stock, the goods received account and the purchases account); the server has no route for them yet.
- Still open from 0.14.0: a desktop ledger with no chart of accounts does not point you to Setup from Home; an empty ledger shows 0.00 with no currency code; the account shown on a line with no item is 5100 or 4100 even if the setting names another; reading the snapshot from FormCel's window was not checked.

### Under the hood
- Build: `build_app` takes `--config`, as FormCompiler passes it; the Tauri command line is a pinned dev dependency of `web` (2.12.5); CI also runs on `compile_v*` branches. New dependencies are `@xterm/xterm` 6.0.0, `@xterm/addon-fit` 0.11.0, `@tauri-apps/api` 2.12.5 and `github.com/creack/pty` 1.1.24, each with a row in `NOTICE.md`.
- Checked: gofmt, `go build`, `go vet`, `tsc --noEmit` and `npm run build` pass, and the server answers `/api/health`. There are no Go or window tests in the repository. The Linux desktop build was run on the release tree, before the last window fixes (the sidebar, the free line and the key hints, which change window styles and a few lines of window code, not the Rust, the build scripts or the server): it made `FormLedger_0.15.0_amd64.deb` (10.17 MiB, package version 0.15.0) and `FormLedger_0.15.0_amd64.AppImage` (84.50 MiB). Under a virtual display the AppImage started, and its server answered `/api/health` with v0.15.0. A demo (Larkspur Lane Cafe) was served by the built binary and opened in headless Chrome with the content security policy enforced, with no violations. The window itself was not photographed, so it is not verified. In headless Chrome with the CPU slowed four times, the menus stayed under the bar and under three quarters of the window at four window sizes, Home and Preferences drew with the final theme and accent on the first frame with no layout shift, and the dock opened and closed in one step. The dock's terminal was run against the server's own content security policy with no violations. The sales and purchase forms were looked at under the same slowdown at 1000, 1200, 1440 and 1871 pixels, dark and light, and the sidebar with the dock open was looked at at 1280 by 720, 1000 by 480 and 1440 by 900, with the dock at the bottom and at the right. All 48 templates were loaded with an app token and each made a draft, and the three demo companies were opened on this branch's server and their Home shows their invoices.
- Not run: a Mac (the system menu, Menus in Window, the `.dmg`), Windows (the build, the installer, the in-window bar, the dock), the `.rpm`, a live terminal under the content security policy, the build after the last window fixes, and a look at the installed Linux window. The macOS Cmd+J accelerator was not run.

## 0.14.0

Lists and reports get their column widths back, the first screen of the desktop app is filled in, and a line with no item posts to a named account.
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ for the project elsewhere.
Report anything that breaks this code by opening an
[issue](https://github.com/nodemode-dev/formledger/issues), or by reaching the
maintainers on GitHub: the [nodemode-dev](https://github.com/nodemode-dev)
organization, [@nodemode-ai](https://github.com/nodemode-ai) and
organisation, [@nodemode-ai](https://github.com/nodemode-ai) and
[@gbarnai](https://github.com/gbarnai).

## What happens next
Expand Down
64 changes: 38 additions & 26 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Contributing to FormLedger

Thank you for helping. FormLedger is a local-first business app. It is a scaffold for
now: a Go server and a web client that start, and a desktop shell around them. It grows
through real use and real contributions.
Thank you for helping. FormLedger aims to be a free, local-first set of books for a
small company, with sales, purchases, payments and stock in one ledger that stays on your
own computer, and it gets there through real use and real contributions.

## Where to start

Expand All @@ -13,20 +13,22 @@ through real use and real contributions.

## Setting up

Clone the repository and run `./formledger_oc_install`, then `./formledger` (or
`formledger_oc_install.bat` and `formledger.bat` on Windows). The first downloads the
Go modules and installs the web client's packages; the second starts the server on
`127.0.0.1:8340` and the web client's dev server on port 5340. `./formledger --help`
lists the other commands. You need Go and Node 22.
Clone the repository and run `./formledger install`, then `./formledger boot` (or
`formledger_oc_install.bat` and `formledger.bat` on Windows). The first downloads the Go
modules and installs the web client's packages; the second starts the server on
`127.0.0.1:8340` and the web client's dev server on port 5340. `./formledger help` lists
every command, and the README's "Run it from source" section has the details and the
requirements.

The code lives in:

| Folder | What is there |
| --- | --- |
| `cmd/formledger` | the server binary |
| `internal` | the server's packages (Go) |
| `web` | the client (TypeScript and Vite), embedded into the server when built |
| `cmd/formledger` | the server binary and the `cli` commands |
| `internal` | the engine (Go): ledger, selling, buying, stock, reports, printing, roles, audit |
| `web` | the window (TypeScript and Vite), embedded into the server when built |
| `src-tauri` | the desktop shell (Rust, Tauri), which starts the server as a sidecar |
| `docs` | what each part does, and the behaviours the app commits to |
| `.github` | the CI workflow and the code owners |

## Before you open a pull request
Expand All @@ -39,13 +41,18 @@ go build ./...
go vet ./...
```

CI also starts the server and waits for `http://127.0.0.1:8340/api/health` to answer.
There are no automated tests yet.
`./formledger check` runs gofmt, go vet and the window's type check in one go. CI also
starts the server and waits for `http://127.0.0.1:8340/api/health` to answer. There are
no automated tests yet.

- Keep each pull request to one change.
- Write commit subjects the way the history does: `feat(web): ...`,
`fix(server): ...`, `docs(...)`, with the scopes listed in [BRANCHING.md](BRANCHING.md).
- Write commit subjects the way the history does, in Conventional Commits:
`feat(web): ...`, `fix(server): ...`, `docs(...)` (see [BRANCHING.md](BRANCHING.md)).
Leave the version alone; a maintainer bumps it when releasing.
- Keep emoji out of every file and em dashes out of Markdown.
- Every new dependency, binary or data file gets a row in `NOTICE.md` before it is used.
- Other vendors' product names appear only to name a file format or compatibility.
Never copy vendor help text, icons, templates or themes.

## Maintainers

Expand All @@ -59,27 +66,32 @@ Reach them through issues and pull requests.

## How changes land

Work reaches `main` only through a pull request from a working branch; nobody pushes to `main` directly. Contributors without write access fork the repository and work on a branch there. A pull request merges when the `web` and `server` checks pass on an up-to-date branch and a maintainer has approved it after its last push. Pull requests are merged with a merge commit, never squashed and never rebased.
Nobody pushes to `main` directly. Everyone forks the repository, or branches from `main` with write access, and opens a pull request into `main`. A pull request merges when the `web` and `server` checks pass on an up-to-date branch and a maintainer has approved it after its last push. Pull requests are merged with a merge commit, never squashed and never rebased.

## Releases

Packaging and releases are done by FormCompiler (`nodemode-dev/formcompiler`), not in
this repository, and only a maintainer starts one. No push from a contributor starts a
release. See [BRANCHING.md](BRANCHING.md).
A release is a version, and only a maintainer makes one: after the version is bumped on
`main`, a maintainer hands it to formcompiler (`nodemode-dev/formcompiler`), which builds
every platform and publishes them together. Packaging is not done in this repository. No
push from a contributor starts a release. See [BRANCHING.md](BRANCHING.md).

## Licensing

FormLedger is licensed under the Apache License 2.0 ([LICENSE](LICENSE), SPDX
`Apache-2.0`). By contributing, you agree that your contribution is licensed under the
same terms. Only add code you have the right to contribute, and name any third-party
code and its license in the pull request.
FormLedger is licensed under the Apache License, Version 2.0 ([LICENSE](LICENSE), SPDX
`Apache-2.0`). By contributing, you agree that your contribution is licensed under
the same terms. Only add code you have the right to contribute, and name any
third-party code and its licence in the pull request.

## Patents and other people's IP

Some features are deliberately not built, or are taken out, because they come too close to someone else's patent, trademark, copyright or design. The maintainers hold that line with counsel; contributors do not decide it, and nobody here redesigns a feature on their own reading of a patent. This is engineering diligence, not legal advice.

### Rules for every contribution

- Patents: do not add a feature, or a dependency that provides one, that reproduces a method you know to be patented. If you are unsure, open an issue that describes what the feature does, not which patent it resembles. Patent numbers stay out of code, commits, comments, logs and changelogs.
- Trademarks: other vendors' product and feature names appear only to name a file format or compatibility ("opens <format> files", "for use with"). No command, menu, panel or tool takes another product's feature name, and no text says "like X" or "the way X does it". Describe what the feature does.
- Copyright: never copy another product's help, tooltip, dialog or documentation text (link to it instead); never trace or import vendor icons; never bundle vendor templates, themes, sample files, stock media or fonts.
- Licenses: every new dependency, binary or data file gets a row in `NOTICE.md` before it is used. GPL stays outside the distributed bundle, AGPL nowhere, LGPL dynamically linked and replaceable, MPL files unedited. CC BY credited, CC BY-SA only unmodified, CC NC and ND never.
- Trademarks: other vendors' product and feature names appear only to name a file format or compatibility ("opens <format> files", "for use with"). No command, menu, panel, tool, template, theme or agent tool takes another product's feature name, and no text says "like X" or "the way X does it". Describe what the feature does.
- Copyright: never copy another product's help, tooltip, dialog or documentation text (link to it instead); never trace or import vendor icons; never bundle vendor templates, themes, presets, sample files, stock media or fonts. Compatibility layers carry names and signatures only.
- Licences: every new dependency, binary, font or data file gets a row in `NOTICE.md` before it is used. GPL stays outside the distributed bundle, AGPL nowhere, LGPL dynamically linked and replaceable, MPL files unedited. CC BY credited, CC BY-SA only unmodified, CC NC and ND never.

## Conduct

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := v0.14.0
VERSION := v0.15.0
GO_BUILD := CGO_ENABLED=0 go build -trimpath -ldflags "-s -w"

.PHONY: build web server check clean
Expand Down
Loading
Loading