Appearance
Contributing
How work gets from an idea to main.
Branches and pull requests
- Work happens on
development.mainonly takes reviewed pull requests. - One task, one branch, one pull request, cut from
development. - Conventional commits:
feat(leave): earned leave schedule,fix(web): ...,docs: .... - Every merge is approved by a person. CI must be green.
What a pull request includes
| Changed | Include |
|---|---|
| Behaviour | tests: unit, integration, and Cedar allow and deny |
| Tenant data | a cross-tenant leakage test |
| Migrations | reversible, or an ADR saying why not |
| Commands, queries or tools | updated GraphQL, MCP and CLI snapshots, and module.toml |
| UI | screenshots in light and dark mode, at desktop and phone width |
| Behaviour users see | the user guide page, and the changelog |
Checks
Run the checks for what you touched and report the real output.
bash
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
ORBIT_REQUIRE_DOCKER=1 cargo test --workspace
cd web && pnpm typecheck && pnpm lint && pnpm test && pnpm build
cd docs && pnpm test && pnpm buildDependencies
A new crate or npm package needs a licence check (AGPL-compatible) and a security review. cargo deny runs in CI. Use pnpm, never npm or yarn, and approve dependency build scripts one package at a time (allowBuilds), never all.
Security
Never commit secrets: configuration comes from environment variables, documented in deploy/.env.example. Report a vulnerability as described in SECURITY.md.
Writing docs
- Only what the code does. Read the code, and run it, before documenting it.
- User guide pages follow one shape: a short intro, a screenshot, a "Who can do what" table, numbered steps for the main tasks, and tip or warning callouts.
- Developer docs are concise and link to the module READMEs and ADRs for depth.
- Links between pages are relative (
../security.md), so they also work on GitHub. Links that leavedocs/point at the repository. pnpm buildindocs/fails on a dead link.
Screenshots
The images in docs/public/screenshots/ come from a seeded demo organisation (made-up people and numbers only), captured at 1440×900, light theme, twice the pixel density, and reduced to 256 colours.
Refresh them all with one command from the repository root:
bash
docs/scripts/screenshots.shIt starts Postgres and the auth sidecar as the compose project orbit-smoke-docs, builds and runs orbit and the web app on the host, seeds the demo data over the API (docs/scripts/screenshots.py), signs in as each demo user and captures every screen, then removes the stack. KEEP=1 leaves it running.
It needs Docker, cargo, pnpm, openssl and Python 3 with the playwright package and its Chromium (python3 -m playwright install chromium); Pillow keeps the files small. When a module merges, add its seed steps and its screens to screenshots.py, run the script and commit the images with the guide page.