trypost/tests/Feature/Ai
Paulo Castellano cca7893e0f Stop persisting instagram_carousel as a content type
Instagram carousels were stored as content_type=instagram_carousel, which the
publisher's match() did not handle — publishing failed with "Unsupported
Instagram content type: instagram_carousel" for any post created via API, MCP,
or template (the AI flow worked only thanks to an inline band-aid that rewrote
carousel to feed before saving).

A carousel is just an Instagram feed post with multiple images: the editor,
preview, and publisher already treat a multi-image feed as a carousel. So
instagram_carousel is a generation format, not a stored content type. Remove it
from the ContentType enum entirely; it now lives only as an AI generation-format
string (wizard card + slide structure + carousel templates are untouched), and
posts always persist as instagram_feed.

- ContentType: drop the InstagramCarousel case; InstagramFeed maxMediaCount 1 -> 10
- StreamPostCreation: resolvedContentType() maps carousel -> feed; band-aid removed
- StartPostCreationRequest: accept instagram_carousel as a generation format
- Frontend: carousel becomes a wizard-local AiFormat; UI/UX unchanged
- API/MCP now reject instagram_carousel as a content_type (Rule::in no longer lists it)
2026-06-04 18:10:39 -03:00
..
AutofillBrandTest.php feat: regenerate AI post images with brand palette in editor 2026-05-21 16:27:55 -03:00
PostAiCreateTest.php Stop persisting instagram_carousel as a content type 2026-06-04 18:10:39 -03:00
PostAiGenerateTest.php refactor(posts): centralize post editing status checks with PostStatusGuard 2026-05-21 19:27:19 -03:00
PostAiRegenerateMediaTest.php feat: regenerate AI post images with brand palette in editor 2026-05-21 16:27:55 -03:00
PostAiReviewTest.php refactor(posts): centralize post editing status checks with PostStatusGuard 2026-05-21 19:27:19 -03:00
RegeneratePostMediaImageJobTest.php feat(posts): introduce change_mode for flexible image and text regeneration 2026-05-21 20:00:41 -03:00
StreamPostContentJobTest.php feat: replace legacy AI assistant with modular post content generation, review, and template management system 2026-05-03 09:36:50 -03:00
StreamPostCreationTest.php Stop persisting instagram_carousel as a content type 2026-06-04 18:10:39 -03:00
UserAiGenerationChannelTest.php refactor: introduce VideoPreview component and standardize media handling across post previews 2026-05-08 18:30:11 -03:00