Hermes 284313f908
Some checks are pending
Bidi Control Character Guard / bidi-control-guard (push) Waiting to run
Circular Dependency Check / Check for new circular dependencies (push) Waiting to run
Citus Migration Smoke / Combined migrations on single-node Citus (push) Waiting to run
E2E Fresh Install Tests / fresh-install-e2e (push) Waiting to run
ext-v2 guardrails / Run ext-v2 guard and ESLint (push) Waiting to run
Integration Tests / Check for relevant changes (push) Waiting to run
Integration Tests / ${{ (github.event_name == 'schedule' || github.event.inputs.suite == 'full') && 'Full integration suite' || 'Tier-1 integration subset' }} (push) Blocked by required conditions
Mobile checks / Mobile lint + typecheck (push) Waiting to run
Mobile checks / Mobile unit tests (push) Waiting to run
Mobile checks / Mobile dependency audit (report) (push) Waiting to run
Mobile checks / Mobile reproducibility checks (push) Waiting to run
Secrets guard (env backups) / Ensure no tracked env backup files (push) Waiting to run
Temporal Readiness / fast-readiness (push) Waiting to run
Temporal Readiness / docker-parity (push) Waiting to run
TypeScript Type Check / Nx affected typecheck (push) Waiting to run
Unit Tests / Skipped-test budget (push) Waiting to run
Unit Tests / Nx affected unit tests (push) Waiting to run
Unit Tests / Server unit coverage (informational) (push) Waiting to run
Validate Tenant Management Schema / Check for relevant changes (push) Waiting to run
Validate Tenant Management Schema / Validate Tenant Management Schema (push) Blocked by required conditions
EE Workflows Build Guard / ee-workflows-build-guard (push) Waiting to run
Initial import of AlgaPSA codebase from PSA server
Excluded: .git, node_modules, secrets/, compose.env, assemblyscript tgz

Source: /opt/alga-psa on psa.joliet.tech
2026-06-22 16:12:17 -05:00

2.2 KiB

Recurring Service-Period UI States

F252 defines the first shared UI-affordance contract for future persisted service periods so dashboard and operational views do not invent lifecycle labels independently.

State Affordance Contract

The shared presentation helper now lives in:

  • packages/types/src/interfaces/recurringTiming.interfaces.ts as IRecurringServicePeriodDisplayState
  • shared/billingClients/recurringServicePeriodDisplayState.ts as getRecurringServicePeriodDisplayState(...)

The helper returns:

  • lifecycleState
  • label
  • tone
  • detail
  • optional reasonLabel

That gives later dashboard rows, badges, and drilldowns one stable display contract even before a concrete screen lands.

Required Distinctions

The v1 UI state contract explicitly differentiates:

  • generated -> Generated
  • edited -> Edited
  • skipped -> Skipped
  • locked -> Locked
  • billed -> Billed
  • superseded -> Superseded

archived is also defined for completeness, but ordinary future-ledger views are not expected to show it by default.

Tone And Detail Guidance

The first tone mapping is intentionally simple:

  • generated uses neutral
  • edited uses accent
  • skipped and locked use warning
  • billed uses success
  • superseded and archived use muted

The detail copy explains what the state means operationally:

  • generated rows still follow current cadence rules
  • edited rows are active overrides
  • skipped rows are intentionally excluded from due selection
  • locked rows are frozen for ordinary edits
  • billed rows point at billed history and can mention invoice linkage
  • superseded rows remain audit history after a newer revision replaces them

reasonLabel is additive and comes from provenance. For example:

  • defer -> Deferred to a later invoice window
  • skip -> Skipped by billing staff
  • boundary_adjustment -> Boundary adjusted

Deliberate Boundary

This checkpoint still does not define:

  • role-based visibility or action permissions for those states
  • audit-log policy for when state badges must expose actor identity
  • concrete dashboard layouts or filtering UX for upcoming periods
  • history-heavy archive views that surface archived rows by default

Those remain sequenced behind F253-F259.