Contributing
Branch, change, check and open a pull request the way this repository expects, with the right extra steps for rules and UI changes.
Day-to-day work merges into dev. main is production: CI builds it, and pull requests into it, with the production rules channel, and it may only be promoted once every rules release is published. Keep changes small and finish each one, including the tests, docs and generated files it touches.
Before you start
- Read Architecture and Conventions.
- For Next code, read the matching guide in
apps/web/node_modules/next/dist/docs/first. - Check whether the design system or
@workspace/uialready has what you need before you write a component. - Commit or stash your work before you run tools that rewrite many files.
Make the change
- Branch from
dev.Use a short descriptive name. - Write the change and its tests together.See Testing for what each kind of change needs.
- Run the focused tests while you work.Single files,
--maxWorkers=2, one suite at a time. - Regenerate what the change affects.After a calculation change,
pnpm --filter @workspace/t2 calc-hash. After form or coverage changes,pnpm --filter @workspace/t2 report. Commit the generated files. - Update the reference pages.A user-visible change gets a
lib/changelog.tsentry and, if it changes a workflow, a Help article update. See Reference pages. - Run the full checks once.
pnpm typecheck,pnpm lint, the engine and web suites, andpnpm test:e2e. - Open the pull request into
dev.Say what changed and why, how you tested it, and paste screenshots or arelease diffwhere relevant.
What CI runs
.github/workflows/ci.yml runs, in order: pnpm install --frozen-lockfile, pnpm typecheck, pnpm lint, the engine tests, the web tests, pnpm build, then Playwright (Chromium and WebKit) against the production build. On failure it uploads the Playwright report and traces.
Rules changes
- Never edit a published release. Ship a change as a new release with
release new, and paste therelease diffoutput into the pull request. - Cite the source for every value: the CRA publication in
srcandcite, and the provision inlaw. A change in law needs the amending Act, its assent date and its application provision. - Mark anything you couldn't read as UNVERIFIED. Never infer an assent date, a section or a rate.
- Write release
notesin plain words. They appear on the public changelog as written. - A tax specialist approves a release before
release publish --approved-by. Publishing writes the lock file; commit it with the code.
UI changes
- Every new form or flow ships with a Playwright test.
- Take screenshots at phone and desktop widths, in light and dark, and look at them before you ask for review.
- Look for steps you can remove: a default that saves a click, a label in plain words instead of jargon, a question the product can answer itself.
- Use real labels from the product in docs and tests, and keep captions specific.
Review checklist
Commit messages and pull request descriptions follow the repository's existing style. Look at git log for examples.
Related
- ConventionsFollow the house rules for Next 16 code, the design system, money and ids, user-facing text and finishing UI work.
- TestingRun the engine, web and Playwright suites, know what each covers, and add the right tests for a change without overloading your machine.
- Maintaining the reference pagesKeep /help, /developers, /legal, /changelog, /compliance and /status accurate: where each page's content lives and how it is checked.