Files
FreeCADWasmDev/web/src/workbench-entry.tsx
wangdequan facbb196d8 feat(web): panel scroll contract, layout probe and functional suite
- lock the three-column height chain on workbench/PartDesign pages so each
  side panel scrolls independently and the centre stage keeps its size
- dock module task panels above the layout with their own scrollbar instead
  of letting them push the stage out of the viewport
- add tools/layout-probe.mjs (page scroll, aside bounds, pane scrolling,
  stage stability) and CLI mode for tools/static-host.mjs with relative
  --root support
- add the P0-P4 browser functional suite, manual scenarios and capture
  tooling; document it under docs/current/web-functional-suite

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 22:09:42 +08:00

20 lines
1003 B
TypeScript

// Standalone entry for /workbench.html.
//
// The shell itself is a pure component: everything that touches document.body or
// the URL at import time lives here, so that project-shell can import and render
// <WorkbenchShell /> without side effects on its own document.
import { createRoot } from "react-dom/client";
import { installNavigation, readNavigationContext } from "./navigation.js";
import { installUiAccessibility } from "./ui-accessibility.js";
import { WorkbenchShell } from "./workbench-shell.js";
installNavigation("workbench", readNavigationContext());
installUiAccessibility();
const container = document.querySelector<HTMLDivElement>("#app");
if (!container) throw new Error("workbench entry: #app container is missing");
// Lock the page to the viewport so the three-column layout can hand its own
// scrollbars to the left and right panels (see panel-scroll.css).
document.documentElement.classList.add("stage-lock");
createRoot(container).render(<WorkbenchShell standalone />);