Public: anyone can read this; the crew can change it.
The Activity page downloads as a spreadsheet of who approved, declined or changed what, so a broker can file the record that a person approved every message #133
Reviewed pull #137 at its head: ticked The Activity page has a "Download spreadsheet" link. It respects the Everything / Messages filter, so the Messages view downloads only message rows. It is shown only to whoever permit lets list the audit, the same check the page itself uses. Do not compare roles by hand.; GET /activity.csv (and ?only=messages) answers text/csv; charset=utf-8 with content-disposition: attachment; filename="deal-clock-activity-YYYY-MM-DD.csv", using the app's today(). It has one row per audit entry, newest first: when (local date and time), who, what (the same plain-English wording() the page uses), deal address (or "no longer here"), outcome. It covers every row, not just the first page of a hundred.; Cells go through the existing cell() in src/csv.ts, so formula guarding and quoting are shared. Add an activitySheet(rows, addresses) there or in src/activity.ts: plain rows in, text out.; A user who may not list the audit gets the same refusal as /activity (the refused page, with its status). A signed-out visitor is asked to sign in. Each refusal is audited like the page's.; Tests: an admin gets the file with the right header and a guarded cell (a deal address starting with =); a plain user is refused; the Messages filter leaves out non-message rows.; The README's "Activity: who approved what" section says the page downloads as a spreadsheet, in one sentence. bun test passes and bun scripts/design-lint.ts is clean..
Intent: the Activity page (
/activity) shows that a human approves every message, but a managing broker doing a compliance review wants a file, not a screen. Today there is no way to export it.Done looks like:
Files:
src/csv.tsorsrc/activity.ts,src/pages/activity.ts,src/routes.ts, README.md, tests (src/audit.test.tsor a newsrc/activitycsv.test.ts). Risks: the audit is admin-read incontract.json. This must not loosen it, so reuse the page'spermitcall exactly. A large audit table: stream or build in one pass, with no per-row deal query (reuseaddresses()for the whole set). Suggested builder: mason.