Introduces Filament management for site settings, services, portfolio cases, and testimonials with admin-only policies, validated media uploads, and deterministic seeding. Includes comprehensive design and task documentation for the implementation. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
1001 B
Markdown
26 lines
1001 B
Markdown
## ADDED Requirements
|
|
|
|
### Requirement: Testimonials are managed with publication control
|
|
|
|
The system SHALL allow admins to manage testimonials (SPEC WEB-04) with quote text, author name, optional context, optional photo with alt text, sort order, featured flag, and `published_at`.
|
|
|
|
#### Scenario: Unpublished testimonial is excluded
|
|
|
|
- **WHEN** a testimonial has `published_at` null
|
|
- **THEN** the `published()` scope MUST exclude it
|
|
|
|
#### Scenario: Published testimonial is queryable
|
|
|
|
- **WHEN** an admin sets `published_at` with required quote and author name
|
|
- **THEN** the testimonial MUST be included in the `published()` scope
|
|
|
|
#### Scenario: Assistant cannot manage testimonials
|
|
|
|
- **WHEN** an assistant attempts to access the testimonials Resource
|
|
- **THEN** access MUST be denied with HTTP 403
|
|
|
|
#### Scenario: Featured testimonials are filterable
|
|
|
|
- **WHEN** content is queried with featured filter
|
|
- **THEN** records with `is_featured` true MUST be retrievable independently of sort order
|