Contributing¶
Contributions are welcome. By contributing you agree to license your work under the project's license, the GNU AGPL v3.0 or later.
Before you start¶
For anything bigger than a small fix, open an issue first to agree on the approach.
Guidelines¶
- Keep it small and plain.
- The smallest change that fully solves the problem. No new dependency when a few lines will do. Comments explain why, not what.
- Keep the app generic.
- No company names, domains or server details in the code. Anything specific to one installation belongs in
config/brands.jsonor.env. - Use the shared UI building blocks from
src/app/ui.tsx. -
ListRow: one item in a.list(avatar or marker, title, details, actions). Its Edit opens the form inline.AddPanel: "Add …" under a list; opens a titled card with the form.Popover: a page action (a bottom sheet on phones).
Forms inside them call
useCloseOnSave(state)to close after a successful save, and end with a.form-foot(main button left, Remove right). - Make it work on phones.
- Check every screen at 375 px wide. Nothing may stick out past the screen edge.
- Accessible by default.
- Real labels on every field, buttons that say what they do, keyboard reachable.
- Schema changes are additive.
- Add a new file
db/migrations/NNN-what.sql(next number). Each runs once, in its own transaction, and is recorded inschema_migrations. Never edit a migration that has shipped. Prefer additive changes; a drop or rename needs a release where the code no longer uses the old name. - Tests come with the change.
- See Testing.
npx tsc --noEmit,npm run lint,npm testandnpm run e2emust pass.
Pull requests¶
- One topic per pull request, with a short description of what and why.
- Include screenshots for UI changes, desktop and phone.
- Update these docs when behaviour changes.