cms.c2sgmbh/src/collections
Martin Porwoll 913897c87c feat: add comprehensive video feature with collections, hooks, and tests
Video Feature Implementation:
- Add Videos and VideoCategories collections with multi-tenant support
- Extend VideoBlock with library/upload/embed sources and playback options
- Add featuredVideo group to Posts collection with processed embed URLs

Hooks & Validation:
- Add processFeaturedVideo hook for URL parsing and privacy mode embedding
- Add createSlugValidationHook for tenant-scoped slug uniqueness
- Add video-utils library (parseVideoUrl, generateEmbedUrl, formatDuration)

Testing:
- Add 84 unit tests for video-utils (URL parsing, duration, embed generation)
- Add 14 integration tests for Videos collection CRUD and slug validation

Database:
- Migration for videos, video_categories tables with locales
- Migration for Posts featuredVideo processed fields
- Update payload internal tables for new collections

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 10:48:33 +00:00
..
AuditLogs.ts feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
Authors.ts feat: add comprehensive blogging and team features 2025-12-13 21:49:13 +00:00
Bookings.ts chore: code cleanup, TypeScript fixes, and dependency updates 2025-12-15 09:02:58 +00:00
Categories.ts feat: add content collections for multi-tenant CMS 2025-12-01 08:18:58 +00:00
Certifications.ts feat: add tenant-specific collections and BeforeAfterBlock 2025-12-14 01:40:17 +00:00
ConsentLogs.ts chore: code cleanup, TypeScript fixes, and dependency updates 2025-12-15 09:02:58 +00:00
CookieConfigurations.ts feat: add content collections for multi-tenant CMS 2025-12-01 08:18:58 +00:00
CookieInventory.ts feat: add content collections for multi-tenant CMS 2025-12-01 08:18:58 +00:00
Downloads.ts feat: add priority collections and advanced content blocks 2025-12-14 00:58:30 +00:00
EmailLogs.ts feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
Events.ts feat: add priority collections and advanced content blocks 2025-12-14 00:58:30 +00:00
FAQs.ts feat: add FAQ collection and block 2025-12-10 05:34:41 +00:00
FormSubmissionsOverrides.ts feat: enhance FormSubmissions with workflow and tracking 2025-12-10 09:13:06 +00:00
Jobs.ts feat: add priority collections and advanced content blocks 2025-12-14 00:58:30 +00:00
Locations.ts feat: add priority collections and advanced content blocks 2025-12-14 00:58:30 +00:00
Media.ts feat: add content collections for multi-tenant CMS 2025-12-01 08:18:58 +00:00
NewsletterSubscribers.ts feat: add Newsletter Double Opt-In email system 2025-12-10 16:37:16 +00:00
Pages.ts feat: add tenant-specific collections and BeforeAfterBlock 2025-12-14 01:40:17 +00:00
Partners.ts feat: add priority collections and advanced content blocks 2025-12-14 00:58:30 +00:00
PortfolioCategories.ts feat: add Portfolio and PortfolioCategories collections 2025-12-06 07:19:19 +00:00
Portfolios.ts feat: add Portfolio and PortfolioCategories collections 2025-12-06 07:19:19 +00:00
Posts.ts feat: add comprehensive video feature with collections, hooks, and tests 2025-12-16 10:48:33 +00:00
PrivacyPolicySettings.ts feat: add content collections for multi-tenant CMS 2025-12-01 08:18:58 +00:00
ProductCategories.ts feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
Products.ts feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
Projects.ts feat: add tenant-specific collections and BeforeAfterBlock 2025-12-14 01:40:17 +00:00
ServiceCategories.ts feat: add Services collection and block 2025-12-10 07:39:03 +00:00
Services.ts feat: add Services collection and block 2025-12-10 07:39:03 +00:00
SocialLinks.ts feat: add content collections for multi-tenant CMS 2025-12-01 08:18:58 +00:00
Tags.ts feat: add comprehensive blogging and team features 2025-12-13 21:49:13 +00:00
Team.ts feat: add comprehensive blogging and team features 2025-12-13 21:49:13 +00:00
Tenants.ts feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
Testimonials.ts feat: add content collections for multi-tenant CMS 2025-12-01 08:18:58 +00:00
Timelines.ts feat: add Workflows Collection for complex process management 2025-12-13 10:47:56 +00:00
Users.ts fix: complete auth event audit logging 2025-12-07 21:31:11 +00:00
VideoCategories.ts feat: add comprehensive video feature with collections, hooks, and tests 2025-12-16 10:48:33 +00:00
Videos.ts feat: add comprehensive video feature with collections, hooks, and tests 2025-12-16 10:48:33 +00:00
Workflows.ts feat: add Workflows Collection for complex process management 2025-12-13 10:47:56 +00:00