From 40487ac7d3fa25d9755481f5624a1aae2dc8300b Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Thu, 9 Jul 2026 20:37:59 -0700 Subject: [PATCH] fix(studio): retire legacy Style and Grade sections from flat inspector The flat inspector rendered its new Style/Grade groups AND the legacy ColorGradingSection/StyleSections components a second time below them, visibly doubling every control. Remove the now-redundant legacy render call sites (and their now-unused imports) from PropertyPanelFlat.tsx; those components stay intact for the legacy (flag-off) PropertyPanel. --- .../components/editor/PropertyPanel.test.tsx | 39 +++++++++++++++++++ .../components/editor/PropertyPanelFlat.tsx | 37 +----------------- 2 files changed, 41 insertions(+), 35 deletions(-) diff --git a/packages/studio/src/components/editor/PropertyPanel.test.tsx b/packages/studio/src/components/editor/PropertyPanel.test.tsx index d303768545..46223d193b 100644 --- a/packages/studio/src/components/editor/PropertyPanel.test.tsx +++ b/packages/studio/src/components/editor/PropertyPanel.test.tsx @@ -692,6 +692,45 @@ describe("PropertyPanel — Grade group (flag on)", () => { }, RENDER_TIMEOUT_MS, ); + + it( + "does not render the legacy Style/Grade Section duplicates for a style-and-grade-editable element", + async () => { + // A