feat: отполировать главную панель редакторов (#660)

Issue: #660
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-09-26 08:51:15 +00:00
committed by claude[bot]
parent cff83e43ec
commit d3c88f06f9
14 changed files with 225 additions and 63 deletions
+11
View File
@@ -1,5 +1,6 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { nothing } from 'lit';
import { SUMMARY_PANEL_API_VERSION } from '../test-build/summary-panel-api.js';
import { SUMMARY_PANEL_LEGACY_SCALE_KEY, summaryLocalKey } from '../test-build/summary-panel.js';
@@ -72,6 +73,16 @@ const hostFixture = () => {
};
};
test('#660 desktop summary controls stay available in editors while kiosk controls stay View-only', () => {
const host = hostFixture();
const runtime = new LoadedSummaryPanelRuntime(host);
for (const mode of ['plan', 'devices', 'decor']) {
host._mode = mode;
assert.notEqual(runtime.renderControls(false), nothing, `${mode}: desktop controls`);
assert.equal(runtime.renderControls(true), nothing, `${mode}: kiosk controls`);
}
});
test('#561 unresolved Masonry stays session-only and never imports an old DOM-path preference', () => {
const browser = installBrowserGlobals();
try {