feat: ledger-gui — a read-only, live desktop view of the books
egui/wgpu app for owners and their accountant: Overview, Cash, Profit, Transactions (with rendered receipts and journal history), Reports (statements with interval columns, comparisons, drill-down), Accounts, Documents, Company, Journal; Ctrl+K palette; back/forward; light/dark. Follows the journal live (~30 ms from write to screen). --demo opens a deterministic demo company, also used for screenshot tests. Engine: ledger-store Snapshot (read-only, incremental, tolerant of a half-written tail); ledger-core analysis (intervals, balance series, P&L by interval, cash flows); ledger-config extracted from ledger-mcp with the full company profile and cash_accounts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MtYEaR6M6Ybdhm6X98BWNu
This commit is contained in:
52 files changed
+14050
-113
No files matched your search
+10
-1
@@ -58,7 +58,6 @@ The core is a pure domain library and stays that way.
|
||||
| `ledger-import` | QuickBooks CSV read-only import (bank transactions, chart of accounts) | `ledger-core` |
|
||||
| `ledger-export` | Format renderers: CSV, XLSX, IIF journal entries (QuickBooks Desktop) | `ledger-core` |
|
||||
| `ledger-oracle` | Diff harness: our engine vs GnuCash on fixture books | `ledger-core`, `ledger-import` |
|
||||
| `books-app` | egui UI (native + WASM), command-driven | `ledger-core`, `ledger-store` |
|
||||
|
||||
Dependency direction is always inward toward `ledger-core`. Nothing in the
|
||||
core may depend on a future crate. UI concerns (formatting, locale, widgets)
|
||||
@@ -71,3 +70,13 @@ types, and a type system that makes invalid states (mutable posted entries,
|
||||
float money) unrepresentable. The storytold pipeline this project is modeled
|
||||
on is Rust + egui for the same reasons; when the UI crate arrives it will be
|
||||
one codebase compiling to native and WASM.
|
||||
|
||||
## The GUI (`ledger-gui`)
|
||||
|
||||
Read-only by construction: it opens a `ledger_store::Snapshot` (journal
|
||||
verified and replayed into its own `Ledger`, projected into a private
|
||||
in-memory SQLite, blobs read through the verifying store) and never writes
|
||||
to the data directory. A loader thread watches the directory and applies
|
||||
appended journal lines; the UI renders an immutable view model rebuilt per
|
||||
change. Statements and series come from `ledger-core` (`reports`,
|
||||
`analysis`); the GUI only arranges them. See `plan/gui.md`.
|
||||
Reference in new issue
Block a user