# Contributing to ExifCleaner Thanks for helping. Small, focused pull requests are easiest to review and safest for a desktop privacy tool. ## Start here - Read the [engineering guide](docs/README.md) before changing a subsystem. - Open or reference an issue for behavior changes; explain the user outcome, not a proposed refactor alone. - Keep network access, telemetry, and background update checks out of the application. - Do not weaken sender validation, sandboxing, output verification, directory-effect assertions, or packaged smoke tests. ## Local workflow ```bash yarn install yarn dev yarn typecheck yarn test yarn test:e2e ``` Before opening a PR, run `yarn lint`, `yarn check:deps`, and the tests closest to your change. Packaging/release changes also need the relevant packaged-smoke path described in [Build, tests, and releases](docs/subsystems/build-test-release.md). ### Storybook (renderer catalog) Storybook is a development tool only: it is never part of the app bundle and sends nothing over the network (telemetry is off in config and in every script, and a preloaded network guard blocks any non-local connection). ```bash yarn storybook:dev # local dev server on port 6006, no browser opened, telemetry off yarn storybook:build # static build into storybook-static/ yarn test:storybook # Storybook's own vitest projects (separate from yarn test) ``` The repository `.npmrc` skips Playwright browser downloads, so run `npx playwright install chromium` once before the browser-based Storybook tests (Playwright 1.64.1 needs Chromium revision 1248). ## Translation corrections Translations live in `.resources/locales/.json`. English is the canonical key set. A useful correction PR can change one string without touching unrelated translations. 1. Edit only your locale file. Use the existing English key and preserve placeholders such as `{count}` exactly. 2. Update the matching entry in `.resources/translation-provenance.json`: record the current English source hash, use `existing-contribution` as the origin, and label the review accurately. If the translation intentionally equals English, include a concise `sourceIdenticalReason`. A maintainer can help calculate the SHA-256 source hash. 3. Run `yarn i18n:write` to regenerate `.resources/strings.json`, the deterministic translation worklist, and the coverage report. 4. Run `yarn i18n:check` and test the locale with `yarn dev --lang=`. 5. In the PR, say whether you are a native speaker and briefly explain wording that is context-sensitive. AI suggestions are welcome as review notes, but they must be labeled as AI-assisted, independently reviewed, and must not replace an existing human translation without a fluent reviewer. Every supported locale must cover every canonical key with current provenance. Missing, stale, placeholder-invalid, or unjustified source-identical text fails `yarn i18n:check`. Adding or changing English UI copy therefore includes the corresponding reviewed locale updates; unrelated contributions remain unaffected while resources are current. ## Pull-request shape - One user outcome or maintenance concern per PR. - Add a regression test that would have failed before the change. - Update docs when an IPC contract, safety invariant, setting, processing outcome, or release gate changes. - Avoid drive-by formatting, comment removal, dependency churn, or unrelated TODO cleanup.