trypost/app/Http/Requests/App
Paulo Castellano 1242cc7384 refactor(posts): centralize inline media validation in PostMediaRules
The media.* rules were duplicated across the web update request and both API
requests (and diverged: web requires hosted id+path and tracks source; the API
accepts a bare external url it downloads). Pull them into one
App\Support\PostMediaRules::rules(hosted:) — same pattern as PostPlatformMetaRules
— parameterized by contract, so there's a single place to add a media key and the
validated()-strips-unlisted-keys footgun can't drift between entry points.

Behavior is unchanged (each ruleset is reproduced exactly). Web store keeps its
loose 'media' => array (no item rules) and is left out on purpose — adding strict
rules there would change the web create contract.
2026-06-28 20:43:09 -03:00
..
Ai feat(ai-templates): ContentStyle enum as the typed source for the 3 styles 2026-06-17 19:52:38 -03:00
ApiKey refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
Asset feat(linkedin): support PDF document (carousel) posts 2026-06-24 16:32:27 -03:00
Auth refactor: organize middleware/requests into App/ subdirs, add Resources, fix auth routes 2026-03-29 21:13:30 -03:00
Automations fix(automations): persist the Generate node content style 2026-06-18 11:50:10 -03:00
Discord feat(channels): add Discord as a social channel 2026-06-16 14:44:00 -03:00
Invite fix(members): preserve invited role on accept and surface viewer in role menu 2026-06-22 14:24:19 -03:00
Label refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
Onboarding test(onboarding): cover the full flow; drop goal exclusivity rule 2026-06-25 21:01:46 -03:00
Post refactor(posts): centralize inline media validation in PostMediaRules 2026-06-28 20:43:09 -03:00
PostComment feat: complete AI assistant with custom services and brand config 2026-04-16 09:25:08 -03:00
PostTemplate feat: pass and persist post dates through AI creation wizard and template application flows 2026-05-06 17:21:30 -03:00
Settings feat: implement consolidated authentication settings including session management and social provider integration 2026-05-03 17:42:44 -03:00
Workspace refactor: address code review for per-workspace pricing 2026-06-21 21:28:47 -03:00