Repository navigation
feat(studio): Agents canvas opens whole and legible at 1280x800 - #795
Merged
Merged
Conversation
The docked Inspector now folds away while nothing is selected (agents no longer auto-select their LLM node on open), with a Show/Hide inspector toggle on the canvas's top-right edge; an explicit choice is remembered in localStorage forge.inspector.collapsed, and selecting a node opens it as before (panning so the selected node stays in view as the pane narrows). Node cards are 208px with a 248px column pitch (specToGraph, dagre auto layout, palette centring), the automatic fits use a fixed 32px margin, and ports sit level with each card's header so a pipeline draws straight. At 1280x800 the canvas pane goes 540 -> 828px and the default support-bot graph fits whole at zoom 0.80 (titles 10.4px on screen, was 9.75px with tool/output cut off). Tests: narrow.spec measurement guard (all nodes in the pane, titles >= 10px at 1280/1440/1920/860), Inspector toggle/selection e2e, unit tests for useInspectorCollapsed and panIntoView; a11y/docShots steps updated for the collapsed-on-load Inspector, and axe now waits for entrance animations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r, steadier pan, roomier edges - Canvas pan/fit animations (pan-into-view, auto layout, resize refit, Fit view) go through one motionDuration helper: none under prefers-reduced-motion: reduce. - useInspectorCollapsed derives `collapsed` during render (prop-change state adjust, no effect), so a selection opens the Inspector in the same paint; the localStorage write moved out of the state updater. - Keep-selection-in-view re-runs on selection or pane-width changes only, so dragging the drawer splitter no longer snaps the view back. - Column pitch 248 -> 256 (48px edge gap; dagre ranksep 48). 1280x800 still fits whole: zoom 0.783, titles 10.18px. - Collapsed, the Inspector toggle reads "Inspector" beside its icon (accessible name still "Show inspector"); expanded stays icon-only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Agents canvas opened with half the default graph off-screen (or at an unreadable 0.42 zoom) at 1280x800: the Inspector now folds away until a node is selected (Show inspector toggle, remembered), node cards are 208px with a 48px gap, and the on-load fit shows the whole graph at >=10px labels at 1280/1440/1920/860.
Ticket: P1b (Agent Forge Studio redesign, audit/forge-redesign/PLAN.md)
Changes
Verification: focused vitest,
tsc --noEmit, eslint, affected Playwright specs, light + dark screenshots reviewed; full suite and fallow run in CI.🤖 Generated with Claude Code