Skip to content

feat: implement Narrator collection (Issue #2) - #12

Merged
Ardnived merged 3 commits into
mainfrom
feature/narrator-collection
Jul 2, 2025
Merged

Ardnived merged 3 commits into
mainfrom
feature/narrator-collection

Conversation

@Ardnived

@Ardnived Ardnived commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Implemented the Narrator collection with name, slug, and gender fields
  • Added automatic slug generation from the name field
  • Created comprehensive integration tests for all CRUD operations

Test plan

  • Unit tests for validation logic - Covered by integration tests
  • Integration tests for narrator operations - All 8 tests passing
  • Admin UI functionality - Verified with Puppeteer
  • Full test suite passes - All tests passing (16 integration + 1 E2E)

Implementation Details

  • Created src/collections/Narrators.ts with required fields
  • Implemented slug auto-generation using beforeChange hook
  • Added unique constraint on slug field
  • Integrated collection into payload configuration
  • Generated TypeScript types

Closes #2

🤖 Generated with Claude Code

Ardnived and others added 3 commits July 1, 2025 22:28
- Create Narrators collection with name, slug, and gender fields
- Implement automatic slug generation from name field
- Add collection to payload configuration

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
- Test CRUD operations (create, read, update, delete)
- Test slug auto-generation from name field
- Test special character handling in slugs
- Test unique slug constraint enforcement
- Test finding narrators by slug

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
- Fix incorrect relative import path for AdminProvider component
- Resolves build error caused by module not found

🤖 Generated with Claude Code

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ticket #2: Narrator Collection Implementation

1 participant