feat(studio): default the flat inspector on

Flip STUDIO_FLAT_INSPECTOR_ENABLED's default from false to true — the
bug-fix pass on the flat inspector is complete (right-aligned values,
Stroke width/style split, promote-badge overlap, Layout/Style section
gating for non-visual elements like audio). VITE_STUDIO_FLAT_INSPECTOR_ENABLED=false
still opts back into the legacy panel.

Updates the two tests that asserted the old false default: the flag's
own default test, and the "classic PropertyPanel input coverage" suite,
which relied on that default to reach the legacy panel and now mocks it
explicitly (mirroring the adjacent "flat" suite's existing pattern).
This commit is contained in:
Vance Ingalls
2026-07-17 00:37:39 -07:00
parent 67696cd8de
commit a4167ede07
3 changed files with 19 additions and 10 deletions
@@ -106,13 +106,13 @@ describe("manual editing availability", () => {
expect(resolveStudioBooleanEnvFlag({ UNKNOWN: "maybe" }, ["UNKNOWN"], false)).toBe(false);
});
it("defaults the flat inspector flag to false and honors an explicit override", async () => {
const off = await loadAvailabilityWithEnv({});
expect(off.STUDIO_FLAT_INSPECTOR_ENABLED).toBe(false);
const on = await loadAvailabilityWithEnv({
VITE_STUDIO_FLAT_INSPECTOR_ENABLED: "true",
});
it("defaults the flat inspector flag to true and honors an explicit override", async () => {
const on = await loadAvailabilityWithEnv({});
expect(on.STUDIO_FLAT_INSPECTOR_ENABLED).toBe(true);
const off = await loadAvailabilityWithEnv({
VITE_STUDIO_FLAT_INSPECTOR_ENABLED: "false",
});
expect(off.STUDIO_FLAT_INSPECTOR_ENABLED).toBe(false);
});
});