Skip to content

Add kit/customers and kit/reports - #17

Merged
mnichols08 merged 3 commits into
mainfrom
feat/customers-and-reports
Nov 15, 2026
Merged

mnichols08 merged 3 commits into
mainfrom
feat/customers-and-reports

Conversation

@mnichols08

Copy link
Copy Markdown
Contributor

Two modules every app needs for its enterprise demo build.

kit/customers: a business's customers, with accounts of their own.

  • Self sign-up, one account per email.
  • Sign in, with the staff module's lockout: per email and device, and per email.
  • Sessions that end, one-time reset links, and the business can turn an account off.
  • Built on staff's scrypt hashing.
  • customers, customer-sessions and customer-tokens are added to SECRET, so pages can never read or write them.

kit/reports:

  • series: counts and totals by calendar day, week (starting Monday) or month in the business's time zone, with empty buckets kept.
  • totals and breakdown.
  • csv: RFC 4180 output, with formula cells defused.

Tests: all 164 pass. Mutations: all 131 caught, 8 of them new.


Generated by Claude Code

…and reset links

Customer accounts, sessions and reset tokens live in their own collections,
added to SECRET so no page can read or write them.
…and CSV

CSV cells that a spreadsheet would run as a formula open as text.
@mnichols08
mnichols08 merged commit fd196d8 into main Nov 15, 2026
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