Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Quality Gates & Verification

Static boundary enforcement, isolated component testing, end-to-end journey validation, and production build gates across all frontend surfaces.

ArchitectureReference

Purpose & Scope

This reference defines the mandatory verification pyramid and release quality gates for Storefront, Commerce, Backoffice, and shared workspace layers. It ensures architectural boundaries, type safety, accessibility rules, and end-to-end user journeys are validated before code reaches production.

Verification Pipeline

Every change to frontend surfaces or shared layers progresses through sequential automated gates before merge:

  1. Formatting & Static Boundary Enforcement

    Automated checks verify uniform code formatting, strict workspace tier boundaries (preventing upward or circular imports), strict type checking, and zero-warning linting including static accessibility rules.

  2. Isolated Unit & Component Verification

    Offline component and logic suites execute against deterministic mock service handlers and synthetic data factories, validating business rules, form schemas, and accessible DOM semantics without requiring live backend containers.

  3. Production Bundle & Route Compilation

    Full production builds compile all three Next.js surfaces, validating Server/Client Component boundaries, environment schema completeness, and microfrontend routing manifests.

  4. End-to-End Behavioral & Accessibility Journeys

    Behavior-driven browser suites exercise real customer journeys (catalog discovery, authentication, AI assistant, basket, and checkout across Storefront and Commerce) and staff workflows in Backoffice, alongside automated axe-core contrast and landmark audits.

Zero-Warning Static Gate

Linting and type-checking operate with zero tolerance for warnings. Any static accessibility violation, illegal tier import, or type mismatch blocks pull request integration.

Patterns & Boundaries

Concern / SurfaceArchitectural ApproachResponsibility BoundaryKey Trade-off
Boundary & Type GatesWorkspace-wide tier validation and strict type checking with affected-task cachingShared config tier defines rules; CI enforces across all surfaces and librariesRequires contributors to place shared abstractions in the proper tier upfront
Isolated Component TestsDeterministic mock API handlers with per-worker isolated storageFeature slices own unit/component specs; shared mock layer owns contract parityFast offline feedback, but cannot catch gateway routing or real session-cookie issues
End-to-End BDD SuitesGherkin-backed browser journeys covering Storefront, Commerce, and BackofficeStorefront suite covers cross-zone customer checkout; Backoffice suite covers staff CRUDHigher execution cost; requires running gateway and target surfaces
Unified Quality ReportingAggregated test and defect categorization across all three surfacesShared reporting config normalizes failures across unit and browser runsAdds post-test aggregation step in CI pipelines

Quality & Operational Impact

  • Architectural Integrity: Continuous boundary checks guarantee that the four-tier dependency model does not erode over time.
  • Release Confidence: Combining fast offline mock tests with real cross-zone browser journeys catches both logic regressions and gateway routing/auth integration defects.
  • Accessibility Assurance: Enforcing static accessibility rules alongside browser axe-core checks prevents common UI regressions from reaching production.