From ecb2322ac6ed5a553e7af93373e6e31de82dfe83 Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Fri, 19 Dec 2025 22:38:36 -0700 Subject: [PATCH] Update memory bank: DNS switchover complete, email notifications enabled, iPad fix deployed --- cline_docs/activeContext.md | 49 ++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/cline_docs/activeContext.md b/cline_docs/activeContext.md index 0d506b3e..2611593f 100644 --- a/cline_docs/activeContext.md +++ b/cline_docs/activeContext.md @@ -1,11 +1,48 @@ # Active Context - Current Work Status -## Current Task: v2.0 POST-DEPLOYMENT ENHANCEMENTS - COMPLETE ✅ -**MAD Lawsuit Website v2.0 - Fully Operational with Latest Improvements**: -- **v1.0 Status**: Fully operational at https://mad-lawsuit.org (Next.js + Express + React) -- **v2.0 Status**: **FULLY OPERATIONAL** at https://v2.mad-lawsuit.org (Laravel + Inertia + Vue) -- **Current Phase**: Post-Deployment Enhancements **COMPLETE** ✅ -- **Status**: All systems operational with latest improvements 🎉 +## Current Task: DNS SWITCHOVER COMPLETE + EMAIL NOTIFICATIONS ENABLED ✅ +**MAD Lawsuit Website v2.0 - NOW LIVE AT MAIN DOMAIN**: +- **v1.0 Status**: DECOMMISSIONED (containers stopped) +- **v2.0 Status**: **LIVE AT https://mad-lawsuit.org** (Laravel + Inertia + Vue) +- **Current Phase**: Phase 5 - DNS Switchover **COMPLETE** ✅ +- **Status**: All systems operational at main domain 🎉 + +### Latest Changes (December 19, 2025) + +**Phase 5.1 - DNS Switchover** ✅ COMPLETE: +- **Old Domain**: v2.mad-lawsuit.org (preview) +- **New Domain**: mad-lawsuit.org (production) +- **Changes Made**: + - Updated `.env`: Changed APP_URL and ASSET_URL to https://mad-lawsuit.org + - Updated `docker-compose.yml`: Changed port from 8080 to 806 (matching v1) + - Updated Caddyfile: Point mad-lawsuit.org → localhost:806 + - Added redirects: v2.mad-lawsuit.org → mad-lawsuit.org + - Stopped old v1.0 containers +- **SSL Certificate**: Automatically issued by Caddy/Let's Encrypt +- **Status**: Website fully accessible at https://mad-lawsuit.org ✅ + +**Phase 5.2 - Email Notifications to All Subscribers** ✅ COMPLETE: +- **Previous**: Only sent test emails to chris@deafgain.org +- **Now**: Sends to all active subscribers in database +- **Implementation**: + - Modified `app/Http/Controllers/Admin/DocketEntryController.php` + - Queries all active subscribers: `Subscription::where('is_active', true)->get()` + - Loops through each subscriber and sends personalized email + - Each email includes unique unsubscribe token + - Added detailed logging (success/failure tracking) + - Handles individual failures gracefully +- **Subscriber Count**: 27 active subscribers (28 total, 1 inactive) +- **Status**: Deployed and ready to use ✅ + +**Phase 5.3 - iPad PDF Viewing Fix** ✅ COMPLETE: +- **Issue**: iPad Safari couldn't scroll PDFs in modal viewer +- **Solution**: Detect iOS devices and open PDFs in new tab (native Safari viewer) +- **Implementation**: + - Updated `resources/js/Pages/Home.vue` + - Added iOS detection: `/iPad|iPhone|iPod/.test(navigator.userAgent)` + - Desktop: Opens PDF in modal viewer + - iOS/Mobile: Opens PDF in new tab +- **Status**: Deployed and working perfectly ✅ ### Latest Enhancements (December 18, 2025)