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>
1.1 KiB
1.1 KiB
testimonials Specification
Purpose
Define testimonial management, publication, authorization, and featured filtering behavior.
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_atnull - THEN the
published()scope MUST exclude it
Scenario: Published testimonial is queryable
- WHEN an admin sets
published_atwith 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_featuredtrue MUST be retrievable independently of sort order