Skip to content

Add a browser-only attrition calculator on GitHub Pages - #14

Merged
alihdrndm merged 4 commits into
mainfrom
feat/browser-calculator
Oct 8, 2026
Merged

alihdrndm merged 4 commits into
mainfrom
feat/browser-calculator

Conversation

@alihdrndm

Copy link
Copy Markdown
Owner

What

  • apps/calculator: a static, browser-only attrition calculator built on @alihdrndm/blockpace-core. It shows the cumulative and per-night bases side by side, with a night-by-night breakdown. No server, no API key, and nothing typed leaves the browser.
  • .github/workflows/pages.yml: builds, tests and publishes it to GitHub Pages on pushes to main that touch the calculator or core. Actions are SHA-pinned; only the deploy job gets pages: write and id-token: write.
  • README: calculator link and a demo GIF of the dashboard flow (On track → snapshot → At risk → webhooks delivered).
  • CHANGELOG and DECISIONS entries.

Checks

  • 5 calculator unit tests (worked example 2 gives $975.60 cumulative and $1,528.80 per night).
  • Lint and typecheck clean; build is about 31 KB gzip.
  • Checked in a browser at desktop and mobile widths.

@alihdrndm
alihdrndm enabled auto-merge (rebase) October 8, 2026 09:55
@alihdrndm
alihdrndm merged commit f397346 into main Oct 8, 2026
8 checks passed
@alihdrndm
alihdrndm deleted the feat/browser-calculator branch October 8, 2026 10:03
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