Files
co-lite/openspec/changes/add-lead-dashboard/specs/event-lead-capture/spec.md
T

1.0 KiB

ADDED Requirements

Requirement: Event lead status history

The system SHALL record every change of an event lead's status with the previous status, the new status, the time and the user who made it. Capturing an event lead SHALL record its first status with no previous status, at the capture time. An edit that leaves the status unchanged SHALL record nothing. The history SHALL never be edited or deleted through the application.

Scenario: Capture records the first status

  • WHEN staff capture a lead at an event with no status chosen
  • THEN the history holds one entry from no status to OPEN at the capture time, by that user

Scenario: Status change recorded

  • GIVEN an OPEN event lead
  • WHEN staff change its status to CONTACTED and later to WON
  • THEN the history holds OPEN to CONTACTED and CONTACTED to WON, each with its time and user

Scenario: Edit without a status change

  • GIVEN a CONTACTED event lead
  • WHEN staff change only its temperature and notes
  • THEN no history entry is added