trypost/resources/js
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
..
components fix(assets): always chunk uploads in GalleryBrowser 2026-05-18 20:03:52 -03:00
composables feat(social): reschedule publish on PlatformUnavailable instead of failing 2026-05-19 10:03:30 -03:00
data feat: media gallery picker, custom emoji picker, preview tabs, real platform logos 2026-05-01 14:53:49 -03:00
enums feat(tiktok): photo carousel support + UX Content Sharing API compliance 2026-05-09 12:47:49 -03:00
layouts feat: AI image generation pipeline and post creation overhaul 2026-05-08 13:38:30 -03:00
lib feat: implement consolidated authentication settings including session management and social provider integration 2026-05-03 17:42:44 -03:00
pages refactor(pinterest): reuse InputError, extract PinterestBoard type 2026-05-15 12:04:01 -03:00
types refactor(pinterest): reuse InputError, extract PinterestBoard type 2026-05-15 12:04:01 -03:00
utils fix(assets): always chunk uploads in GalleryBrowser 2026-05-18 20:03:52 -03:00
app.ts refactor: PostHog review polish 2026-05-07 10:41:53 -03:00
datalayer.ts feat: GTM dataLayer context + checkout/purchase events 2026-05-06 10:14:17 -03:00
date.ts refactor: reorganize billing language keys and implement AccountPolicy for subscription management 2026-05-03 17:26:55 -03:00
dayjs.ts refactor: reorganize billing language keys and implement AccountPolicy for subscription management 2026-05-03 17:26:55 -03:00
debounce.ts fix: resolve all TypeScript errors 2026-03-31 09:34:39 -03:00
posthog.ts fix: PostHog property keys, deletion idempotency and full enabled gate 2026-05-07 13:15:36 -03:00
ssr.ts chore: first commit 2026-01-14 22:13:44 -03:00