From d98dadec8fd6e974e854e23314e8bf85a5c0bdcd Mon Sep 17 00:00:00 2001 From: Alessandro Benedetti Admin Date: Mon, 16 Mar 2026 14:01:09 +0000 Subject: [PATCH] Fix: Translation/Syndication toggles now override base stage matrix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The base stage matrix for brief types like country_pull_adaptation includes Translation stages by default. In the Brief Advisor, the user's toggles should be authoritative — if Translation is OFF, those stages must be removed regardless of the base matrix. Co-Authored-By: Claude Opus 4.6 --- market-script.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/market-script.js b/market-script.js index 2c24530..1326324 100644 --- a/market-script.js +++ b/market-script.js @@ -224,15 +224,11 @@ function calculateAndRender() { if (sCfg && sCfg.alwaysActive) matrix[i] = true; }); - // Client toggles can activate translation/syndication even if the base - // brief type doesn't include them - if (needsTranslation) { - matrix[3] = true; // Translation (Salsify PDP) - matrix[4] = true; // Translation (Asset) - } - if (needsSyndication && !matrix[7]) { - matrix[7] = true; // Syndication - } + // In the Brief Advisor the user's toggles are the source of truth + // for translation and syndication — override the base matrix + matrix[3] = needsTranslation; // Translation (Salsify PDP) + matrix[4] = needsTranslation; // Translation (Asset) + matrix[7] = needsSyndication; // Syndication // Combined feedback days from production toggles (static/video/html) // Uses the max of the user-supplied feedback values for production stages