# Contributing to FieldtypeFlex Thanks for helping improve FieldtypeFlex. Contributions should preserve native ProcessWire form behavior, canonical JSON data and safe media ownership. ## Before changing code Read [README.md](README.md) and the relevant section of [API.md](API.md). For changes to storage, selectors, schema evolution or repeatable/media behavior, read [docs/architecture.md](docs/architecture.md) first. Use the disposable DDEV fixture described in [docs/development.md](docs/development.md). It lives under the ignored .dev/ directory. Do not run fixture seed or test scripts against a production site. ## Changes and review Start features on `feature/` branches from current `main`. Use [Conventional Commits](https://www.conventionalcommits.org/) for commit messages. Record each enhancement and fix under the appropriate [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) category in the `WIP` section of [CHANGELOG.md](CHANGELOG.md). When merging into `main`, increase the version using SemVer (major for breaking changes, minor for compatible features, patch for compatible fixes), keeping module metadata, the documented version and dated changelog entries consistent. Use SemVer prerelease identifiers where applicable. Keep changes focused and use the existing PHP and JavaScript conventions. Add or update integration coverage for behavior changes, including failure paths where data integrity is involved. For admin input changes, verify a real ProcessPageEdit save and inspect browser errors. Before opening a pull request, run the applicable fixture checks and review the diff. Describe the user-visible behavior, the reason for the change and the verification you performed. Do not include private site data, passwords, generated fixtures or local logs. ## Version downloads GitHub generates the ZIP from the version tag. The archive retains documentation and runtime examples; tests, fixture setup and CI are excluded via `.gitattributes`. See [the tagging workflow](docs/development.md#tag-a-version). By contributing, you agree that your changes are provided under the project's [MIT License](LICENSE).