feat(dashboard): include zoom-level class on agent-org-chart-canvas

Append `agent-org-chart-canvas--zoom-${percent}` modifier class derived from the current transform scale so consumers can style/inspect by zoom level. Test remains skipped because initial scale in test environment isn't yet normalized to 1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-19 20:11:14 -07:00
parent 43503f2f9e
commit 9c89c44d0a
2 changed files with 4 additions and 4 deletions

View File

@@ -1502,9 +1502,9 @@ describe("AgentsView", () => {
clientWidthSpy.mockRestore();
});
// Skipped: mobile zoom controls expect an agent-org-chart-canvas--zoom-100
// class that isn't yet rendered by AgentsView. Tracked alongside the
// org-chart sizing feature work.
// Skipped: mobile zoom controls expect agent-org-chart-canvas--zoom-100
// initially but the canvas starts at scale != 1 in tests. Re-enable once
// initial scale is normalized.
it.skip("shows mobile zoom controls for org chart and keeps node selection working", async () => {
mockViewportMode.mockReturnValue("mobile");
mockFetchOrgTree.mockResolvedValue(orgTree);