trypost/resources/js/components/posts/previews
Paulo Castellano 7388313f5c feat(linkedin): support PDF document (carousel) posts
Add LinkedIn document posts — the swipeable PDF carousel — for both personal profiles and company pages. This is the format every major competitor exposes via native PDF upload, and the reason a trial user churned.

- New 'document' media type (application/pdf) across the upload pipeline (Type enum, HasMedia, FormRequests incl. chunked, Platform media types)
- New LinkedInDocument / LinkedInPageDocument content types: PDF-only, single-file, with a supportsDocument() flag
- Publisher flow: documents initializeUpload -> PUT -> poll AVAILABLE -> post with content.media.{id,title}; optional document_title meta (falls back to file name)
- PDF is mutually exclusive with image/video, enforced in ContentTypeCompatibleWithMedia
- Frontend: 'Document (PDF)' variant, media rules (100MB cap), composer/gallery/detail PDF cards, real PDF embed in the LinkedIn editor preview, i18n in en/es/pt-BR
- Tests: publishers (personal + page, incl. processing-failure path), enums, compatibility rule, chunked PDF upload, API + MCP document_title round-trip

LinkedIn caps documents at 100MB / 300 pages (Documents API). The page limit is enforced by LinkedIn at publish, not validated client-side.
2026-06-24 16:32:27 -03:00
..
BlueskyPreview.vue refactor(posts): streamline media item handling and improve type definitions 2026-05-21 19:08:46 -03:00
DiscordPreview.vue feat(channels): show channel + mentions in Discord preview, light theme 2026-06-16 16:14:59 -03:00
FacebookPreview.vue Add aspect ratio selection for Facebook posts 2026-06-05 18:01:45 -03:00
index.ts feat: Add Bluesky social media integration 2026-01-18 13:33:54 -03:00
InstagramPreview.vue feat(automations): implement automation features and UI enhancements 2026-05-24 09:17:19 -03:00
LinkedInPreview.vue feat(linkedin): support PDF document (carousel) posts 2026-06-24 16:32:27 -03:00
MastodonPreview.vue refactor(posts): streamline media item handling and improve type definitions 2026-05-21 19:08:46 -03:00
PinterestPreview.vue refactor(posts): streamline media item handling and improve type definitions 2026-05-21 19:08:46 -03:00
PlatformPreview.vue feat(channels): add Discord as a social channel 2026-06-16 14:44:00 -03:00
PostMediaPreview.vue refactor(posts): streamline media item handling and improve type definitions 2026-05-21 19:08:46 -03:00
TelegramPreview.vue Soften Telegram preview bubble shadow (drop trypost ink shadow) 2026-06-14 14:07:36 -03:00
ThreadsPreview.vue refactor(posts): streamline media item handling and improve type definitions 2026-05-21 19:08:46 -03:00
TikTokPreview.vue refactor(posts): streamline media item handling and improve type definitions 2026-05-21 19:08:46 -03:00
VideoPreview.vue refactor: introduce VideoPreview component and standardize media handling across post previews 2026-05-08 18:30:11 -03:00
XPreview.vue refactor(posts): streamline media item handling and improve type definitions 2026-05-21 19:08:46 -03:00
YouTubePreview.vue refactor(posts): streamline media item handling and improve type definitions 2026-05-21 19:08:46 -03:00