WarUI

Contributing code guide: repo setup, build, coding standards and PR process

GRID-UG-098-F01P1baselinePlanned

A docs page for code contributors, separate from the docs-authoring guide in GRID-A30-F26. It covers cloning and setting up the repo, required Node/package-manager versions, install/build/test/lint/watch commands, and running the docs site locally. It also covers source layout, coding standards (lint config, formatting, naming, public API and typing rules, test requirements, a11y checks), commit message convention,…

Planned. This page shows the specification from issue #211. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

An embedded sandbox loads a minimal reference feature ('highlight-max-in-column') built to the documented standards. The grid shows 20 rows, its unit test file sits beside it, and the test runner panel shows all tests passing.

Expected behavior

Toggling the feature adds or removes the max-value highlight in the grid. 'Run tests' shows pass/fail results inline. 'Introduce lint violation' produces the same lint error contributors would see locally and in CI. The PR checklist tab marks which items the sample satisfies (tests, docs example, changelog entry, a11y note).

Planned API surface

CONTRIBUTING.md (rendered in docs at /docs/contributing/code)Repo scripts: install, build, test, test:watch, lint, format, docs:dev, docs:build.editorconfig, lint and formatter configs referenced from the guidePR template (.github/pull_request_template.md) and CI workflow namesFeature-module skeleton: registerFeature({ id, gridOptions, api, events })

Acceptance criteria

  • Guide states the minimum Node and package-manager versions, and these match the repo's engines field (pending)
  • Every command in the guide exists in the repo scripts and succeeds on a clean clone in CI (doc-test job) (pending)
  • Coding standards section links to the actual lint/format configs and states test coverage expectations (pending)
  • PR process covers branch naming, commit convention, required CI checks, review count, and who merges (pending)
  • Licensing section states Apache-2.0, the header requirement, and DCO/CLA policy (pending)
  • Guide states that every new feature must ship one live docs example and links to GRID-A30-F26 (pending)
  • Reference feature sandbox runs and its tests pass in the docs build (pending)