Adds edit/update endpoints for customer management with admin notes
field, form request validation, status change audit logging, and
8 new tests (171 total, 846 assertions).
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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>
Replaces planned SupportPal integration with a built-in ticket system.
Customer side: create tickets, reply, close. Admin side: manage all
tickets with search/filters, staff replies, status updates. Includes
30 Pest tests (144 total, 775 assertions).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Phase 5 (Admin Panel):
- Admin coupon management: full CRUD with create/edit/deactivate,
auto-generate codes, plan restrictions multi-select, usage tracking,
redemption history on edit page
- Add active flag migration for coupons table
Phase 4 (Customer Dashboard):
- Customer services list page with plan info and status
- Customer service detail page with network info, plan details,
control panel links (VirtFusion/SynergyCP/Enhance), important dates
- Service status/type resolver utilities
Documentation:
- Update TASKS.md with all completed Phase 3/4/5/8 items
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Mark all completed items for Phase 1 (foundation) and Phase 2
(billing & subscriptions). Add remaining Phase 2 items that still
need work (PDF invoices, multi-currency, tax, admin coupon CRUD,
email notifications).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>