EstateHub

Development Standards

Changes should preserve frontend domain boundaries, backend application ownership, role namespaces, service-layer transitions, and auditable financial behavior.

Backend Coverage

  • Serializer validation for accepted and rejected payloads.
  • Role and object-ownership permission tests.
  • Service tests for valid and invalid state transitions.
  • Concurrent reservation and balance checks where rows are locked.
  • Audit and notification side effects for sensitive actions.
  • Route tests for the common success and error envelopes.
  • Migration checks for every model change.

Validation Commands

BASH
python manage.py check
python manage.py makemigrations --check --dry-run
python manage.py test
python manage.py spectacular --validate

Declare request, response, parameter, authentication, and error schemas for new or changed APIViews. Run python manage.py spectacular --validate --fail-on-warn when your CI requires schema validation to pass without warnings.

Frontend Validation

BASH
pnpm lint
pnpm build

Validate frontend changes with linting, a production build, and focused review of the affected route, responsive states, loading/error behavior, and API contract.

Documentation Standard

Endpoint documentation must match URL configuration, permissions, serializers, views, and services. Frontend documentation must match route files, feature modules, shared components, environment variables, and API clients. Validate generated OpenAPI alongside the detailed endpoint reference.