fabro/apps
Bryan Helmkamp 7e9b020b5d
Simplify graph viewport code across the pan/zoom PRs
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>
2026-07-08 10:06:50 -04:00
..
fabro-web Simplify graph viewport code across the pan/zoom PRs 2026-07-08 10:06:50 -04:00
marketing refactor(workflow): remove retro stage (#230) 2026-05-09 10:18:20 -04:00
remotion Add Remotion video app with Fabro brand intro animation 2026-03-19 11:03:19 -04:00