JOB-EASY

Analytics

Dashboards, reports, and the explicit cross-domain read model.

The analytics slice powers the user dashboards and admin reports. Uniquely, it is the only feature slice that owns no database models.

The Cross-Domain Read Exception

In a strictly vertical slice architecture, domains are usually not allowed to query each other's models directly. However, reporting is cross-model by its very nature. Constructing a funnel metric inherently requires querying Company, Application, and EmailLog models simultaneously.

The Allowlisted Tier Violation

To accommodate this, the analytics slice is explicitly allowlisted as a cross-domain read model. It is permitted to read across all other feature slices (companies, applications, outreach, subscriptions, users) to construct its charts.

Strict Invariants

  • Read-Only: The analytics slice is strictly read-only. It may never issue a database write under any circumstance.
  • Terminal Dependency: Nothing is allowed to import this slice. It sits at the very top of the dependency tree, consuming data but never providing it to other domains.