mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-10 22:20:14 +00:00
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:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user