Skip to content

refactor: fix website typecheck, update layoutit URLs, guard doc imports, and split 4 monoliths - #97

Merged
alowpoly merged 6 commits into
mainfrom
housekeeping-typecheck-docs-monoliths
Dec 4, 2026
Merged

alowpoly merged 6 commits into
mainfrom
housekeeping-typecheck-docs-monoliths

Conversation

@alowpoly

@alowpoly alowpoly commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Four non-feature housekeeping improvements verified against main:

  1. Fix 9 website TypeScript errors and gate website typecheck (4579a630, 12fdce87):
    • Added missing selfShadow: false in BuilderWorkbench/defaults.ts.
    • Fixed unreachable perspective: false branch in GalleryWorkbench/hooks/useRouteSync.ts (encodeCompactValue), restoring compact URL round-trips (2p0 → 2pn).
    • Replaced React 19 JSX.Element in DropOverlay.tsx and aligned 5 drifted types in website/scripts/gallery-domformat-browser.ts.
    • Added typecheck:website (ASTRO_TELEMETRY_DISABLED=1 astro sync && tsc --noEmit) wired into pnpm verify and build:website (keeping root pnpm typecheck and publish-packages.yml decoupled from the private website).
  2. Update stale LayoutitStudio/polycss URLs to layoutit/polycss (67825f1f):
    • Updated all 33 non-domformat references across 14 manifests, READMEs, Astro pages (including live GitHub star fetches), and docs.
  3. Permanent doc/README/skill import guard (7c3645a6, 12fdce87):
    • Verified 0 drift across all 39 doc/README/skill files against the 0.3.0 exports.
    • Added .github/scripts/check-doc-imports.test.mjs derived from packages/workspace-aliases.mjs with value-vs-type export checking, non-named/dynamic import coverage, comment stripping, and landing-page code-tab coverage.
  4. Decompose 4 remaining 800+ line monoliths (b58065dc, 12fdce87):
    • Split exportPolySceneSnapshot.ts (968 → 81 lines), atlas/plan.ts (963 → 299 lines), renderPolygons.ts (840 → 123 lines), and voxelRenderer.ts (832 → 251 lines) into 23 acyclic internal submodules with 0 byte diffs verified against main.

Verification

  • pnpm verify (all guards incl. check-doc-imports.test.mjs, 8 package test suites, build:packages, typecheck, typecheck:website, check:ir, check:packs, bench:build, examples/*)
  • pnpm test:coverage (8/8 packages)
  • pnpm --filter @layoutit/polycss-website build, test:domformat-tools (2/2), and verify:domformat (304 models, 199,847 leaves)
  • pnpm bench:gate:lifecycle (13/13)
  • pnpm bench:gate:ci vs main (23/23 strict at 0 px, Firefox parity 16/16 at 0 px, Chromium parity 15/16 + rock1 software-backend 3/3 at 0 px)
  • pnpm bench:gate:perf vs main (9/9, exact DOM/leaf counts and 0 descendant mutations)

@alowpoly
alowpoly merged commit 92d2b0b into main Dec 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant