trypost/app/Enums
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
..
Ai feat: AI image generation pipeline and post creation overhaul 2026-05-08 13:38:30 -03:00
Media feat: AI image generation pipeline and post creation overhaul 2026-05-08 13:38:30 -03:00
Notification refactor: introduce VideoPreview component and standardize media handling across post previews 2026-05-08 18:30:11 -03:00
Plan feat: create plans table, model, and slug enum 2026-04-14 17:53:12 -03:00
Post refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
PostHog refactor: PostHog review polish 2026-05-07 10:41:53 -03:00
PostPlatform feat(social): reschedule publish on PlatformUnavailable instead of failing 2026-05-19 10:03:30 -03:00
SocialAccount refactor(posts): tighten content-length caps and simplify contentOverflow 2026-05-11 20:06:44 -03:00
UserWorkspace feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Workspace feat: AI image generation pipeline and post creation overhaul 2026-05-08 13:38:30 -03:00