Thanks for wanting to help. This project is kept small and focused, so changes follow one simple flow.
- Open an issue first. Describe the bug or the feature before you write code. Use the bug or feature template.
- Wait for approval. A maintainer adds the
approvedlabel when the change fits the project. Do not start work before that. - One PR per issue. Each pull request does one thing: one feature, one fix, or one edit. No bulk PRs that mix several changes, refactors, or formatting sweeps.
- Link the issue. Put
Closes #<number>in the PR description.
Pull requests without an approved issue, or that bundle unrelated changes, are closed without review. Small typo fixes in docs are the only exception.
pnpm install, thenpnpm testpasses.- Check the change in the app.
pnpm demoruns it with generated data, no Google account needed. - UI changes follow DESIGN.md (colors, type, radii, spacing tokens). Add before and after screenshots taken in demo mode.
- Maps use India's officially approved boundary (Natural Earth 10m India POV). Never default Natural Earth, world-atlas or globe.gl country data.
- No credentials in code or commits. Keys live only in
.env. - Keep the diff small. No new dependency when a few lines of code do the job.
Do not open a public issue for a security problem. Use GitHub's private vulnerability reporting on this repository instead.
Keep business-specific catalogs in .data/imports/ (ignored by Git and Docker). Preview an import with pnpm import:funnels path/to/catalog.json --dry-run, then omit --dry-run to apply it. Without a path, the command reads .data/imports/funnels.json. Imports use cached connected-property metadata and back up existing definitions before adding rules; they preserve saved IDs and edited names.
Catalogs use this structure; optional fields include description, sources and product:
{
"version": 1,
"funnels": [{
"propertyId": "123",
"domain": "example.com",
"name": "Checkout",
"steps": [
{ "type": "event", "value": "page_view" },
{ "type": "event", "value": "purchase" }
]
}]
}The property ID and domain must match a connected property. New properties start with no preset funnels. Keep development previews and source inputs outside public/, since its files are served directly.
By taking part you agree to the Code of Conduct.