Add screenshot auth middleware, remove SupportPal references

Screenshot auth: dev-only middleware that authenticates headless Chrome
via ?_screenshot_token= query param. Auto-selects admin/customer user
by subdomain. Only active when APP_ENV=local or explicitly enabled.

SupportPal cleanup: dropped supportpal_ticket_id column, removed env
vars and Phase 7 task tracking. 7 new tests (151 total, 782 assertions).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude Dev
2026-02-09 16:52:15 -05:00
parent 6f39c32270
commit a4cf7026bc
8 changed files with 233 additions and 36 deletions

View File

@@ -15,7 +15,6 @@ class SupportTicket extends Model
protected $fillable = [
'user_id',
'supportpal_ticket_id',
'subject',
'status',
'priority',
@@ -27,7 +26,6 @@ class SupportTicket extends Model
protected function casts(): array
{
return [
'supportpal_ticket_id' => 'integer',
'last_reply_at' => 'datetime',
];
}