Repository navigation
perf(ui): keep config render helpers out of startup - #126754
Conversation
Restore the cross-platform Control UI startup gzip budget by keeping render-only sensitive-path helpers outside the startup config-draft graph. Preserve existing behavior and caller APIs while moving generic schema, search, and path helpers to their existing startup owner.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Land-ready proof for exact head Root cause: startup config-draft and settings-search code imported generic schema/path/search helpers through the rendering-owned shared module, eagerly retaining its sensitive-path classifier and rendering-only runtime in the startup closure. The repair moves those generic helpers into their already-startup Linux Node 24.15 production build, unchanged startup ceiling 348,079 bytes: macOS Node 24 startup gzip: 347,701 -> 347,090 bytes (-611). Exact focused proof: Fresh P1 structured autoreview: clean. Production LOC: +112/-115 (net -3); tests: +0/-0. No startup baselines, budgets, tolerances, dependencies, generated locales, config behavior, or UI appearance changed. Exact-head pull-request CI: GREEN, workflow run 32396337933, event ClawSweeper: its latest exact-head review comment currently reports review started and contains no published findings or Rank-up moves. No actionable move exists to apply or skip; per repository policy, a queued/late review publisher does not block exact-head-green native landing. |
|
Merged via squash.
|
Restore the cross-platform Control UI startup gzip budget by keeping render-only sensitive-path helpers outside the startup config-draft graph. Preserve existing behavior and caller APIs while moving generic schema, search, and path helpers to their existing startup owner.
What Problem This Solves
Resolves a current-main Linux Node 24.15 Control UI build failure: the compressed startup bundle reached 348,350 bytes, exceeding the unchanged 348,079-byte startup limit by 271 bytes and breaking the full production build.
Why This Change Was Made
The startup config-draft and settings-search graphs imported generic schema/path/search helpers from the rendering-owned config shared module, which also imports sensitive-path classification and translation runtime. Move those generic helpers into the already-startup config-form utility owner and keep sensitive rendering helpers lazy; preserve existing imports and caller APIs through the rendering module's re-exports. This removes three net production lines (+112/-115) without changing startup budgets, baselines, tolerances, dependencies, generated locales, or configuration behavior.
User Impact
Control UI production builds pass their existing startup budget on Linux and ship a smaller initial bundle. Settings search, schema coercion, config editing, redaction, localization, and UI appearance are unchanged.
Evidence
pnpm build: passed after the owner-boundary repair.pnpm ui:build: passed.git diff --check: clean.