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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user