From eea818220925f4fee0b0d934c86711aa9d1b37ce Mon Sep 17 00:00:00 2001
From: Diego Rodrigues de Sa e Souza
<8016841+diegosouzapw@users.noreply.github.com>
Date: Tue, 30 Jun 2026 02:13:33 -0300
Subject: [PATCH] =?UTF-8?q?refactor(dashboard):=20T11=20=E2=80=94=20drop?=
=?UTF-8?q?=20duplicate=20caveman=20on/off=20toggle=20from=20the=20compres?=
=?UTF-8?q?sion=20settings=20tab=20(#5524)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Integrated into release/v3.8.42 (round 3). T11 consolidate duplicate caveman controls; i18n'd the panel hint string (source key).
---
.../components/CompressionSettingsTab.tsx | 45 ++-----
src/i18n/messages/en.json | 1 +
...ession-settings-tab-consolidation.test.tsx | 115 ++++++++++++++++++
3 files changed, 129 insertions(+), 32 deletions(-)
create mode 100644 tests/unit/compression-settings-tab-consolidation.test.tsx
diff --git a/src/app/(dashboard)/dashboard/settings/components/CompressionSettingsTab.tsx b/src/app/(dashboard)/dashboard/settings/components/CompressionSettingsTab.tsx
index 60e3ef473e..a68426f21d 100644
--- a/src/app/(dashboard)/dashboard/settings/components/CompressionSettingsTab.tsx
+++ b/src/app/(dashboard)/dashboard/settings/components/CompressionSettingsTab.tsx
@@ -416,38 +416,20 @@ export default function CompressionSettingsTab() {
config.defaultMode !== "lite" &&
config.cavemanConfig && (
-
-
-
- {t("compressionCavemanConfig")}
-
-
- {t("compressionCavemanConfigDesc")}
-
-
-
+ {/* Engine on/off is owned by the single-source panel (/dashboard/context/settings):
+ the panel's `engines.caveman.enabled` is authoritative (planResolution.ts). This tab
+ keeps only the advanced caveman tuning the panel does not expose. */}
+