Syncs the event-lead-capture and lead-interests specs into main specs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
1.2 KiB
1.2 KiB
lead-interests Specification
Purpose
Admins with the Interests module maintain the list of products and services that leads are tagged with.
Requirements
Requirement: Interest list
The system SHALL let an admin with BO_INTERESTS list, add, rename, reorder, deactivate and reactivate interests for their company. An interest name SHALL be required, at most 100 characters, and unique within the company ignoring case. Interests SHALL NOT be deletable.
Scenario: Add interest
- WHEN an admin with
BO_INTERESTSaddsKitchen appliances - THEN it is listed as active
Scenario: Duplicate name
- GIVEN an interest
Kitchen appliances - WHEN an admin adds
kitchen APPLIANCES - THEN the save is refused and the name is reported as a duplicate
Scenario: Deactivate
- GIVEN an active interest
Cookware - WHEN an admin deactivates it
- THEN it is still listed, marked inactive
- AND it is no longer offered when capturing a lead
Scenario: No module
- WHEN an admin without
BO_INTERESTSopens the Interests page or calls an interests endpoint - THEN the page shows not-authorised and the endpoint responds 403