Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
23 lines
1.0 KiB
Markdown
23 lines
1.0 KiB
Markdown
## 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
|