Repository navigation
fix(graph): let the graph explorer and canvas zoom in further - #144
Conversation
The graph explorer capped zoom at 8x the fitted view, so dense clusters stayed packed together. Raise the cap to 100x (nodes keep their on-screen size, so zooming spreads them out). The workflow canvas used React Flow's default 2x cap; raise it to 8x. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DdhQ2PsqzCyrKNDV1SJZAA
… the slow collections test The embedded suite took 28 min of its 30 on the runner at 544 tests, and the server suite timed out at 30 with a third left; both now report their slowest tests. The collections dialog test ran five flows in one test and took 36 s against Jest's 20 s; each flow is its own test now. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GSZ2xxfNPjTPbhi8YqoPGm
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DdhQ2PsqzCyrKNDV1SJZAA
|
Update (57feaa9): the same job hit #145's new 75-minute limit with 56% of its 637 tests run and no failures (log). The backend suite against the SurrealDB server is too slow for the runner even with #145's limit. This is still not caused by this PR, and no fix exists yet. I'm not re-running the job, since a re-run would hit the same limit. Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DdhQ2PsqzCyrKNDV1SJZAA
Requested by Adeel · project thread
Description
Before: zooming in on the Graph page stopped at 8x the fitted view, so a dense cluster of nodes stayed packed together. The workflow canvas stopped at React Flow's default 2x.
After: the graph explorer zooms in to 100x the fitted view. Nodes and labels keep their on-screen size, so zooming in spreads a dense cluster apart. The workflow canvas zooms in to 8x. Zoom out limits, fit and reset are unchanged.
How: the graph canvas's two hard-coded
8caps (wheel/buttons/keys and pinch) now shareMIN_ZOOM/MAX_ZOOMconstants;flow-canvas.tsxsetsmaxZoom={8}on<ReactFlow>(fit-to-view still caps at 1x).Motivation and Context
Reported in the project thread: "why can't I keep zooming in?"
Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.## UnreleasedinCHANGELOG.md.Checked locally:
tsc --noEmit, eslint and prettier on both files, and the graph/canvas jest tests pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01DdhQ2PsqzCyrKNDV1SJZAA
Generated by Claude Code