# v340 Selected Workspace Admin Entitlement Gating Foundation

## Purpose
v340 begins connecting the database-backed subscription and entitlement model to real Workspace Admin pages without adding clutter to normal user interfaces.

## What changed
- Added a current-workspace entitlement endpoint: `/api/subscription/entitlements`.
- Added `components/subscriptions/plan-feature-gate.tsx` as the first reusable Workspace Admin gating component.
- Wired clean plan-aware locked states into selected pages:
  - Business phone setup in Company Settings
  - Route Planning
  - Load Board
  - Reports and report subpages
  - Billing
  - Documents
  - CORI
- Preserved detailed entitlement review in Super Admin instead of showing technical diagnostics to Workspace Admin users.

## User-facing rule
Workspace Admin should see a simple message only when a feature is not included, paused, or billing-held:

> This feature is not included in this plan. Ask your admin to review the subscription.

## Super Admin rule
Super Admin remains the detailed review surface for:
- allowed features
- locked features
- over-limit states
- billing hold states
- upgrade-ready states
- first recommended fix

## Next recommended step
After v340 passes, review whether the locked-message pattern is clean enough. Then continue with either:
- hardening limit-based create restrictions for users, trucks, and business phone numbers, or
- add-on and usage billing readiness.
