From 744a9ebbf631d09a33b064cdcc0d6c6db5d72435 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Jul 2026 03:47:14 +0000 Subject: [PATCH 01/20] refactor(configurator): de-obfuscate codec.ts internal names (SL-016) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename cryptic 1-2 letter symbols in the persistence/encode/CSS-export module (Wa, Ra, za, Ha, fa, Ga, qa...) to their existing readable export-alias names, and update the four call sites that imported the obfuscated names directly (persistence.ts, App.svelte, PreviewPanel.svelte, ExportPanel.svelte). No behavior change — public export surface (encode/decode/generateCSS/etc.) is unchanged, verified by tsc, svelte-check, and the full codec/css/share unit test suite. --- configurator/src/App.svelte | 4 +- .../src/components/panels/ExportPanel.svelte | 6 +- .../src/components/shell/PreviewPanel.svelte | 8 +- configurator/src/lib/codec.ts | 284 +++++++++--------- configurator/src/lib/persistence.ts | 8 +- 5 files changed, 150 insertions(+), 160 deletions(-) diff --git a/configurator/src/App.svelte b/configurator/src/App.svelte index 6b5d3b7d..3c960c70 100644 --- a/configurator/src/App.svelte +++ b/configurator/src/App.svelte @@ -7,7 +7,7 @@ import StatusBar from './components/shell/StatusBar.svelte'; import PreviewPanel from './components/shell/PreviewPanel.svelte'; import DomainPanel from './components/DomainPanel.svelte'; - import { fa } from './lib/codec'; + import { generateCSS } from './lib/codec'; import { loadInitialOverrides, injectLivePreview, saveOverrides, hasWpBoot } from './lib/persistence'; import { domainOf } from './lib/domains'; import tokensRaw from './data/api-index.generated.json'; @@ -219,7 +219,7 @@ } function handleExport() { - const css = fa(overrides, { mode: "layer", banner: true }); + const css = generateCSS(overrides, { mode: "layer", banner: true }); const blob = new Blob([css], { type: "text/css" }); const url = URL.createObjectURL(blob); const a = document.createElement("a"); diff --git a/configurator/src/components/panels/ExportPanel.svelte b/configurator/src/components/panels/ExportPanel.svelte index 46d8d1dd..ac1a6d39 100644 --- a/configurator/src/components/panels/ExportPanel.svelte +++ b/configurator/src/components/panels/ExportPanel.svelte @@ -1,6 +1,6 @@