diff --git a/docs/TODO.md b/docs/TODO.md index 6c03e7e..cc3cc66 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -35,6 +35,18 @@ finished step, with the commit message it used where the spec left a choice. - decision: a leg carries one currency only (the CHECK of §4), so a buy keeps the NOK paid on `leg_out_ore`. §5.1 says `leg_in_ore`, which that CHECK forbids; `ledger.create_lots_for()` accepts either, and the form maps the given side to `leg_out_ore`. - fix: `ledger._sats_to_consume()` returns 0 when `leg_out_sats` is NULL, so a buy with a sats fee consumes nothing — the fee lowers the sats that arrive instead (§3.2). Found by the fee case of `tests/test_tax.py`. - next: run `python3 -m unittest discover -s tests -v`, then Phase B (`static/`). +- 17 `static/style.css` — one stylesheet, no external fonts; the class contract for the pages is in the header comment. +- 18 `static/session.js` — adds `X-CSRF-Token` from the `skuld_csrf` cookie and redirects to `/login` on 401. +- 19 `static/app.js` — `api()`, Norwegian formatting, the sheet row renderers, the type labels, the form helpers and the `document.body.dataset.page` dispatcher. +- 20 `static/login.html`, `static/login.js` — sign in and the create-admin form; on success `/` when accounts exist, else `/marknader`. +- 21 `static/index.html`, `static/index.js` — the main sheet of §7.2 with the year selector and the empty state. +- 22 `static/transactions.html`, `static/transactions.js` — the filterable list; generated `transfer_in` rows are marked and read-only. +- 23 `static/transaction.html`, `static/transaction.js` — the form of §7.3 with the Parti section and "Bruk automatisk". +- 24 `static/markets.html`, `static/markets.js` — the account admin. +- 25 `static/report.html`, `static/report.js` — the year report, the tax return block and the CSV button. +- 26 `static/settings.html`, `static/settings.js` — settings, the rate table and the password form. +- fix: `app.py` `ASSETS` now names every page script, and `validation.validate_settings()` accepts a wealth tax threshold of `0`. +- next: Phase C (`startos/`, `Dockerfile`, `Makefile`, `package.json`). ## Not in this plan