mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-12-02 00:37:18 +00:00
Review cleanup spanning #555 and #561: - Delete the wheel handler's toolbar guard: the toolbar is a sibling of the wheel container, so the closest('[role="toolbar"]') check could never match. - Drop the `as HTMLElement` casts in run-overview; the pointer-down guard now narrows with instanceof. - GraphToolbar zoom surface shrinks from four props to zoom + onZoomBy; the toolbar owns its step factor and disabled logic. - Move remaining viewport math into lib/graph-viewport: wheelZoomFactor (now unit-tested) and a center default for zoomAtPoint's cursor; inline the redundant GRAPH_DEFAULT_ZOOM export. - Collapse the triplicated listener-hook bodies in hooks/effects.ts into one private useEventTargetEvent helper; document useElementEvent's element-lifetime and stable-options requirements. - Make loadGraphView's undefined-run branch explicit instead of a "" sentinel key. - run-overview tests use the shared setupReactTestEnv helper and note the unique-run-id requirement for viewport tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fabro-web | ||
| marketing | ||
| remotion | ||