From 47e319ab3f6e0733a8dfd77eff178f15f1bf588b Mon Sep 17 00:00:00 2001 From: DJP Date: Mon, 3 Nov 2025 13:14:43 -0500 Subject: [PATCH] =?UTF-8?q?Complete=20B1=E2=86=92B2=20workflow=20-=20Add?= =?UTF-8?q?=20Clear=20button=20and=20selected=20campaign=20display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added to B1→B2 Tab: 1. Clear Workflow Data Button - 🗑️ Clear button (same as other tabs) - Clears session data for fresh start - Shows when tab is active and has data 2. Selected Campaign Display - Shows selected campaign name and ID - Displays campaign type (Global Masters) - Shows asset ID for reference 3. Status Update Section - Yellow warning box - Update Status: B1 → B2 button - Instructions for workflow 4. Fixed update_status_to_b2 Action - Accepts campaign_id from POST (debug button) - OR from selected_campaign_b1 (selected campaign) - Works from both locations Now B1→B2 Tab Has: ✅ Load B1 campaigns ✅ Debug load all Global campaigns ✅ Clear workflow data button ✅ Campaign selection ✅ Selected campaign display ✅ Update status B1 → B2 ✅ Matches A1→A2 functionality Test: Refresh app and try selecting a B1 campaign! 🤖 Generated with Claude Code Co-Authored-By: Claude --- workflow_v3.php | 44 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/workflow_v3.php b/workflow_v3.php index 1bbe010..1cad9fb 100644 --- a/workflow_v3.php +++ b/workflow_v3.php @@ -978,12 +978,14 @@ if ($_POST && $testRunner) { break; case 'update_status_to_b2': - if (isset($results['selected_campaign_b1'])) { + $campaignId = $_POST['campaign_id'] ?? null; + if (!$campaignId && isset($results['selected_campaign_b1'])) { + $campaignId = $results['selected_campaign_b1']['asset_id']; + } + + if ($campaignId) { $statusManager = createStatusManager($testRunner); - $statusResult = $statusManager->updateCampaignStatus( - $results['selected_campaign_b1']['asset_id'], - 'B2' - ); + $statusResult = $statusManager->updateCampaignStatus($campaignId, 'B2'); if ($statusResult['success']) { $results['status_update_b2'] = $statusResult; @@ -3202,6 +3204,38 @@ $envInfo = $configV3->getEnvironmentInfo(); + +
+ + + +
+ + + +
+ Selected Campaign: + + () +
+ Asset ID: +
+ Type: Global Masters +
+ +
+

⚠️ Update Status to B2

+

+ Once all Global Master assets are downloaded and sent to Agency, update the campaign status to B2 +

+
+ + + +
+
+ +

Found Global Campaigns (B1)