trypost/resources/js/components
Paulo Castellano 0eff22dc0d
Remove the post-templates feature (#296)
* Remove the post-templates feature

Removes the browsable post-templates catalog end to end: routes
(app.post-templates.index/apply), controller, form requests, resource,
Registry/PostTemplateData/TemplateNotFoundException services, the
templates:report console command, the templates/ catalog (36 files
across en/es/pt-BR), the templates Index.vue page, the template card
on the post Create.vue choice screen, and its i18n keys across all 16
locales.

Also removes TemplateContextResolver, which fed catalog examples into
PostContentGenerator's AI prompt. The "examples" block (with its
heading) is removed from generator.blade.php rather than left empty;
AI generation no longer references the templates catalog.

The AI content-template system under app/Ai/Templates (image/tweet
card templates for the AI post wizard) and TemplateImageGenerator are
unrelated and untouched.

* Update FormRequest naming examples after the post-templates removal

CLAUDE.md and the Cursor rules cited ApplyPostTemplateRequest and
IndexPostTemplateRequest as naming examples. Both classes were deleted
with the feature, so the guidance pointed at files that no longer exist.

* Share the AiTemplate type between the create screen and the AI wizard

Create.vue and AiPostWizard.vue each declared their own AiTemplate
interface, and they had drifted: the wizard's carried
applies_brand_visuals, the create screen's did not. TypeScript treated
them as unrelated types with the same name, which surfaced as a TS2719
error where the templates prop is passed between them.

The backend sends seven fields (PostController::create), so the shared
declaration follows the payload rather than the union of the two copies.
2026-08-19 09:34:26 -03:00
..
accounts Add social connect step to welcome before Stripe (#293) 2026-08-17 19:37:43 -03:00
ai feat(ai): collapsible compact ContentStylePicker for tight panels 2026-06-18 11:50:04 -03:00
analytics feat: proactive connection check for at-risk posts + SocialAccount name centralization (#256) 2026-08-09 11:10:39 -03:00
api-keys feat: complete i18n audit fix, toast system, UI improvements 2026-03-30 14:06:10 -03:00
assets fix: chunked upload session collision + workspace name i18n (#263) 2026-08-09 14:06:47 -03:00
auth feat: fire signup/checkout PostHog events from the backend (#277) 2026-08-12 11:47:47 -03:00
automations feat: proactive connection check for at-risk posts + SocialAccount name centralization (#256) 2026-08-09 11:10:39 -03:00
labels fix(mobile): polish automations, dialogs, workspaces and post views 2026-07-18 10:58:07 -03:00
mcp Activation checklist + MCP OAuth authorize UX (#239) (#250) 2026-08-07 20:34:43 -03:00
members feat(automations): implement automation features and UI enhancements 2026-05-24 09:17:19 -03:00
onboarding Activation checklist + MCP OAuth authorize UX (#239) (#250) 2026-08-07 20:34:43 -03:00
posts Remove the post-templates feature (#296) 2026-08-19 09:34:26 -03:00
settings Activation checklist + MCP OAuth authorize UX (#239) (#250) 2026-08-07 20:34:43 -03:00
signatures chore: remove deprecated localization files 2026-05-03 15:23:25 -03:00
ui Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
AlertError.vue feat: improvements on ui 2026-01-21 18:42:37 -03:00
AppContent.vue chore: first commit 2026-01-14 22:13:44 -03:00
AppHeader.vue refactor: localize analytics metrics and overhaul UI components and dashboard layouts 2026-05-06 15:39:10 -03:00
AppShell.vue chore: first commit 2026-01-14 22:13:44 -03:00
AppSidebar.vue Activation checklist + MCP OAuth authorize UX (#239) (#250) 2026-08-07 20:34:43 -03:00
BrandForm.vue Share a ContentLanguageOption type and close the review's test gaps 2026-07-03 19:28:28 -03:00
Breadcrumbs.vue refactor: unify social analytics, reorganize workspace settings, and implement content validation rules 2026-05-02 12:22:42 -03:00
ChannelConfigurator.vue Surface Pinterest board truncation in the web editors. 2026-07-24 23:02:40 -03:00
CodeEditor.vue Structure brand voice and make generated copy platform-aware 2026-06-12 17:09:39 -03:00
CommentBody.vue fix(ui): mobile fixes from second-pass review 2026-07-17 19:15:58 -03:00
ConfirmDeleteModal.vue refactor: remove unused imports and dead code across frontend components and pages 2026-05-08 20:12:56 -03:00
DatePicker.vue Localize calendar date pickers to the active UI locale (#234) 2026-08-05 21:02:34 -03:00
DeleteUser.vue refactor: standardize UI components, modernize localization structure, and remove legacy appearance management middleware. 2026-05-06 14:26:18 -03:00
EmptyState.vue refactor: standardize UI components, modernize localization structure, and remove legacy appearance management middleware. 2026-05-06 14:26:18 -03:00
FontPicker.vue Make the language and font dropdowns match their trigger width 2026-07-03 19:01:16 -03:00
Heading.vue chore: first commit 2026-01-14 22:13:44 -03:00
HeadingSmall.vue refactor: standardize UI components, modernize localization structure, and remove legacy appearance management middleware. 2026-05-06 14:26:18 -03:00
HexColorInput.vue feat: implement workspace management and update localization strings across multiple languages 2026-05-06 16:41:27 -03:00
Icon.vue feat: improvements on ui 2026-01-21 18:42:37 -03:00
ImageCropperDialog.vue Rewrite the image cropper as a movable/resizable selection box 2026-07-04 09:56:31 -03:00
ImagePreviewDialog.vue refactor(ui): mobile polish and dead-state cleanup from review 2026-07-17 19:15:58 -03:00
InputError.vue chore: first commit 2026-01-14 22:13:44 -03:00
JsonViewer.vue Enhance automation functionality: Introduce workflow variables and improve node validation 2026-06-11 15:47:29 -03:00
LanguagePicker.vue Share a ContentLanguageOption type and close the review's test gaps 2026-07-03 19:28:28 -03:00
MentionTextarea.vue feat: proactive connection check for at-risk posts + SocialAccount name centralization (#256) 2026-08-09 11:10:39 -03:00
NavFooter.vue chore: first commit 2026-01-14 22:13:44 -03:00
NavMain.vue Translate the sidebar Beta badge and place it at the row end for RTL 2026-07-03 18:22:19 -03:00
NavSupport.vue style(sidebar): drop the Support section title, use lifebuoy icon for docs 2026-06-22 17:39:45 -03:00
NotificationBell.vue Unify sidebar workspace and account menus (#240) 2026-08-05 21:33:16 -03:00
PageHeader.vue fix(ui): mobile polish — responsive headings, menu placement, truncation 2026-07-17 18:38:21 -03:00
PhoneMockup.vue fix(posts): scale the preview phone mockup down on mobile for side padding 2026-07-17 19:24:55 -03:00
PhotoUpload.vue Rewrite the image cropper as a movable/resizable selection box 2026-07-04 09:56:31 -03:00
PlaceholderPattern.vue chore: first commit 2026-01-14 22:13:44 -03:00
SearchableSelect.vue feat(discord): implement channel caching and enhance UI for channel selection 2026-06-16 15:53:20 -03:00
SocialAccountsGrid.vue Add social connect step to welcome before Stripe (#293) 2026-08-17 19:37:43 -03:00
TextLink.vue chore: first commit 2026-01-14 22:13:44 -03:00
Toast.vue feat: implement feature gating with persistent usage tracking and a reactive upgrade dialog for plan management. 2026-05-03 16:52:28 -03:00
UserInfo.vue refactor: standardize UI components, modernize localization structure, and remove legacy appearance management middleware. 2026-05-06 14:26:18 -03:00
WorkspaceMenuContent.vue Activation checklist + MCP OAuth authorize UX (#239) (#250) 2026-08-07 20:34:43 -03:00
WorkspaceSwitcher.vue refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00