feat(FN-4551): complete Step 6 — finalize transform controls and changeset
Fusion-Task-Id: FN-4551 Fusion-Task-Lineage: 1e34e4ba-25a3-4ad8-b68c-3323ae458ba2
This commit is contained in:
5
.changeset/FN-4551-orgchart-pan-zoom.md
Normal file
5
.changeset/FN-4551-orgchart-pan-zoom.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@runfusion/fusion": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Dashboard: Agents → Org Chart now supports drag-to-pan, wheel/pinch zoom, and a unified zoom toolbar on desktop and mobile. Parent→child connectors are drawn via a measurement-based SVG overlay so they always stay attached, including asymmetric subtrees and single-child chains.
|
||||||
@@ -868,7 +868,6 @@ export function AgentsView({ addToast, projectId, onOpenTaskLogs, agentOnboardin
|
|||||||
}, [handleCloseDetail, isMobileViewport, selectedAgentId]);
|
}, [handleCloseDetail, isMobileViewport, selectedAgentId]);
|
||||||
|
|
||||||
const getRoleLabel = (role: AgentCapability) => AGENT_ROLES.find(r => r.value === role)?.label ?? role;
|
const getRoleLabel = (role: AgentCapability) => AGENT_ROLES.find(r => r.value === role)?.label ?? role;
|
||||||
const getRoleIcon = (role: AgentCapability) => AGENT_ROLES.find(r => r.value === role)?.icon ?? "◆";
|
|
||||||
const orgChartLayoutMode: OrgChartLayoutMode = useMemo(() => resolveOrgChartLayoutMode({
|
const orgChartLayoutMode: OrgChartLayoutMode = useMemo(() => resolveOrgChartLayoutMode({
|
||||||
tree: displayOrgTree,
|
tree: displayOrgTree,
|
||||||
availableWidth: orgChartViewportWidth,
|
availableWidth: orgChartViewportWidth,
|
||||||
|
|||||||
Reference in New Issue
Block a user