trypost/database/migrations
Paulo Castellano 148a2f432f feat: AI image generation pipeline and post creation overhaul
Core changes:
- Replace Unsplash slide pipeline with gpt-image-2 via Laravel AI SDK.
  New AiImageClient builds prompts from a Blade template seeded by the
  workspace's ImageStyle enum, content language, brand color (mapped to a
  human-readable name via HexColorName helper) and brand description.
- Drop Template B from TemplateImageGenerator: every slide now renders as
  Template A (full-bleed photo + bottom gradient + white/grey overlay).
  Removes renderTemplateB, roundCorners, blendHex, ensureContrast and the
  closing-slide pipeline.
- StreamPostCreation creates the Post directly and dispatches
  PostCreationReady with post_id; the wizard kills its preview step and
  redirects straight to the post editor on completion. Finalize endpoint
  removed.
- New Workspace.image_style enum field with an 8-option visual picker
  shared by /workspaces/create and /settings/workspace/brand via a single
  BrandForm component (autofill is a prop). 8 sample webp thumbs ship
  under public/images/branding/image-styles/.
- Media items gain optional source ('ai'|'unsplash'|'giphy') and
  source_meta (recipe needed to regenerate AI images later); the gallery
  picker tags Unsplash/Giphy attachments.
- Brand-color autofill: new CssColorFrequencyExtractor parses every
  hex/rgb/hsl value in the homepage CSS, clusters perceptually similar
  shades in CIE LAB (Delta E 76 < 12), filters neutrals and returns the
  most frequent cluster. Solves Tailwind/utility-CSS sites where no
  semantic --primary variable is exposed.
- Credits: gpt-image-2 metered at 15 credits/image (low quality default).
- Layout: AuthSplitLayout right column is sticky/h-svh so the form
  textarea growth no longer stretches the marketing slider.
- i18n cleanup: localized labels follow the no-em-dash convention.
2026-05-08 13:38:30 -03:00
..
0001_01_01_000000_create_users_table.php feat: implement consolidated authentication settings including session management and social provider integration 2026-05-03 17:42:44 -03:00
0001_01_01_000001_create_cache_table.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
0001_01_01_000002_create_jobs_table.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
2026_01_14_231039_create_plans_table.php feat: transition AI usage from feature-based limits to a centralized monthly credit system with token tracking. 2026-05-03 19:36:26 -03:00
2026_01_14_231040_create_accounts_table.php feat: redesign billing, onboarding, sidebar, and settings architecture 2026-04-15 00:33:38 -03:00
2026_01_14_232315_create_workspaces_table.php feat: replace legacy AI assistant with modular post content generation, review, and template management system 2026-05-03 09:36:50 -03:00
2026_01_14_232317_create_subscriptions_table.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
2026_01_14_232318_create_subscription_items_table.php refactor: consolidate billing migrations into original files 2026-04-14 18:59:43 -03:00
2026_01_14_232319_create_user_workspace_table.php refactor: consolidate billing migrations into original files 2026-04-14 18:59:43 -03:00
2026_01_14_232320_create_social_accounts_table.php feat: implement paginated social accounts table with search functionality and updated UI components 2026-05-02 14:15:41 -03:00
2026_01_14_232321_create_posts_table.php feat: add PostCommentCreated broadcast event 2026-04-15 20:11:36 -03:00
2026_01_14_232322_create_post_platforms_table.php feat: add PostCommentCreated broadcast event 2026-04-15 20:11:36 -03:00
2026_01_14_232323_create_medias_table.php refactor: consolidate billing migrations into original files 2026-04-14 18:59:43 -03:00
2026_01_14_233835_create_workspace_invites_table.php feat: @mentions in comments, AI Action layer + MCP tools, settings tabs 2026-05-01 20:59:03 -03:00
2026_01_17_152319_create_workspace_signatures_table.php chore: remove deprecated localization files 2026-05-03 15:23:25 -03:00
2026_01_17_153347_create_workspace_labels_table.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
2026_01_26_173538_create_post_workspace_label_table.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
2026_03_29_233024_create_telescope_entries_table.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
2026_03_30_024008_replace_language_id_with_locale_on_users.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
2026_03_30_115716_drop_locale_from_users.php refactor: auth split layout, subscribe redesign, onboarding, i18n, cookie locale 2026-03-30 11:53:42 -03:00
2026_03_30_120000_add_indexes_to_post_platforms.php feat: PostPlatform enum, failure email, DB indexes, rate limiting, tests 2026-03-30 16:11:38 -03:00
2026_03_30_191151_create_notifications_table.php feat: add PostCommentCreated broadcast event 2026-04-15 20:11:36 -03:00
2026_03_30_202513_create_notification_preferences_table.php feat: @mentions in comments, AI Action layer + MCP tools, settings tabs 2026-05-01 20:59:03 -03:00
2026_03_30_215118_add_is_active_to_social_accounts.php chore: posthog, ui, features and more 2026-03-30 21:18:07 -03:00
2026_04_14_213055_create_features_table.php feat: enforce plan limits via Pennant in policies 2026-04-14 18:31:13 -03:00
2026_04_15_000001_create_post_comments_table.php feat: add post_comments table, model, and factory 2026-04-15 20:08:16 -03:00
2026_04_15_000003_create_workspace_ai_usages_table.php feat: transition AI usage from feature-based limits to a centralized monthly credit system with token tracking. 2026-05-03 19:36:26 -03:00
2026_05_03_210117_create_oauth_auth_codes_table.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
2026_05_03_210118_create_oauth_access_tokens_table.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
2026_05_03_210119_create_oauth_refresh_tokens_table.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
2026_05_03_210120_create_oauth_clients_table.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
2026_05_03_210121_create_oauth_device_codes_table.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
2026_05_04_212145_add_utm_columns_to_users_table.php feat: capture signup UTMs/IP and add GitHub OAuth login 2026-05-04 18:42:25 -03:00
2026_05_04_212935_add_github_id_to_users_table.php feat: capture signup UTMs/IP and add GitHub OAuth login 2026-05-04 18:42:25 -03:00
2026_05_04_212935_add_registration_ip_to_users_table.php feat: capture signup UTMs/IP and add GitHub OAuth login 2026-05-04 18:42:25 -03:00
2026_05_07_231552_add_image_style_to_workspaces_table.php feat: AI image generation pipeline and post creation overhaul 2026-05-08 13:38:30 -03:00