trypost/resources/js/composables
Paulo Castellano d336f79059 feat(social): reschedule publish on PlatformUnavailable instead of failing
Before: a scheduled post hitting a platform outage was marked Failed —
user had to manually retry. Now the job reschedules itself for 10
minutes later and the PostPlatform shows status "Retrying". Loops
indefinitely until the platform accepts the post.

- Adds PostPlatformStatus::Retrying (existing string column, no migration)
- PublishToSocialPlatform: PlatformUnavailable catch now calls
  rescheduleForRetry() which (a) updates the row to Retrying with
  retry_count + next_attempt_at in error_context, and (b) dispatches
  itself with a 10-minute delay. updatePostStatus() naturally leaves
  the parent Post in Publishing because Retrying is neither Published
  nor Failed.
- Same treatment for the retry-refresh edge case (publisher throws
  TokenExpired, refresh subsequently fails with PlatformUnavailable).
- i18n + frontend status config updated (en, pt-BR, es) for both
  posts.status.retrying and posts.edit.status.retrying.
- Tests: 3 new tests covering the dispatched job, the edge case path,
  and retry_count increment across attempts.
2026-05-19 10:03:30 -03:00
..
echo fix(ai): wire up streaming generate dialog (event names + JSON extract + loading state) 2026-05-11 21:42:50 -03:00
useActiveUrl.ts refactor: sidebar active states, notification bell, phone mockup, UI polish 2026-03-30 18:51:04 -03:00
useDateMaska.ts chore: first commit 2026-01-15 14:24:39 -03:00
useDragAndDrop.ts feat: improvements on ui 2026-01-21 17:57:15 -03:00
useFeatureAccess.ts refactor: PostHog review polish 2026-05-07 10:41:53 -03:00
useInitials.ts chore: first commit 2026-01-14 22:13:44 -03:00
useMedia.ts refactor: introduce VideoPreview component and standardize media handling across post previews 2026-05-08 18:30:11 -03:00
useMediaRules.ts feat: media gallery picker, custom emoji picker, preview tabs, real platform logos 2026-05-01 14:53:49 -03:00
usePlatformLogo.ts feat: media gallery picker, custom emoji picker, preview tabs, real platform logos 2026-05-01 14:53:49 -03:00
usePostStatus.ts feat(social): reschedule publish on PlatformUnavailable instead of failing 2026-05-19 10:03:30 -03:00
useTracking.ts feat(tracking): push Google Ads conversion data to dataLayer on purchase 2026-05-12 13:31:00 -03:00
useUpgradeDialog.ts feat: implement feature gating with persistent usage tracking and a reactive upgrade dialog for plan management. 2026-05-03 16:52:28 -03:00