trypost/tests/Feature
Paulo Castellano 2da15df96c feat: introduce Account entity as billing owner and refactor architecture
- Create Account model as Cashier Billable entity (stripe, plan, subscription)
- Account owns workspaces and has an owner_id (User)
- User belongs to one Account via account_id
- Workspace belongs to Account via account_id, no longer has billing fields
- Remove Brand model entirely (workspaces serve as grouping)
- Rename brand_limit to workspace_limit in plans
- Workspace roles simplified: admin/member/viewer (owner via Account)
- Invites now belong to Account with workspaces JSON array
- Pennant features scope changed from Workspace to Account
- EnsureSubscribed middleware checks Account subscription
- All controllers updated: BillingController, OnboardingController,
  WorkspaceInviteController, SocialController, StripeEventListener
- Frontend: extract GoogleAuthButton component, create WorkspaceRole
  enum for type-safe role checks, fix all views for new architecture
- All 1101 tests passing
2026-04-14 22:22:04 -03:00
..
Api feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Auth chore: tracking, gtm and more 2026-03-30 21:32:43 -03:00
Commands feat: publishing hardening — content sanitization, validation, scopes, stuck recovery 2026-04-01 11:25:25 -03:00
Controllers feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Jobs feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Listeners feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Mcp feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Middleware feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Services/Social fix: overhaul social publishing — validation, uploads, token refresh 2026-03-31 19:25:19 -03:00
Settings feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Social feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
AcceptInviteControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
ApiKeyControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
BillingControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
CreateUserActionTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
ExampleTest.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
GoogleAuthToggleTest.php fix: keep Google OAuth routes always registered and add tests 2026-04-14 14:28:17 -03:00
InstagramFacebookIntegrationTest.php chore: working 2026-04-02 17:57:06 -03:00
LimitEnforcementTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
MediaControllerTest.php feat: social account toggle action, API, MCP + full test coverage 2026-03-31 01:42:39 -03:00
NotificationControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
OnboardingControllerTest.php fix: security audit - IDOR, open redirect, authorization, session fixes 2026-03-30 14:58:25 -03:00
PlanSeederTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
PlanTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
PostControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
PostSearchTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
SendPostHogEventTest.php chore: posthog, ui, features and more 2026-03-30 21:18:07 -03:00
SignupSuccessControllerTest.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
SocialAccountToggleTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
SocialControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
SocialLoginControllerTest.php chore: tracking, gtm and more 2026-03-30 21:32:43 -03:00
StripeEventListenerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
VerifyWorkspaceConnectionsTest.php fix: VerifyWorkspaceConnections uses TokenExpired/Disconnected escalation, eager load workspace 2026-04-01 11:52:03 -03:00
WorkspaceBillingTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
WorkspaceControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
WorkspaceHashtagControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
WorkspaceInviteControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
WorkspaceLabelControllerTest.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
YouTubeAnalyticsTest.php refactor: optimize json parsing and add missing test coverage 2026-04-14 13:36:22 -03:00