import { buildMcpConnectVM } from "@hivegrid/view-models"; import { McpConnectDialog } from "./McpConnectDialog"; /** * Deterministic real-component fixture for the VD-MCP interim pixel baseline * (AD-28). Every input is frozen — connector host, product name, token * timestamps — so a diff means the UI moved, not the environment. */ const VM = buildMcpConnectVM({ connectorUrl: "https://mcp.hivegrid.example", tenantName: "HiveGrid Demo", appName: "HiveGrid", canRevoke: true, nowIso: "2026-07-28T12:00:00.000Z", tokens: [ { clientId: "client-claude", clientName: "Claude", scopes: ["mcp:read", "mcp:write"], createdAtIso: "2026-07-20T08:00:00.000Z", expiresAtIso: "2026-07-28T18:00:00.000Z", revoked: false, }, { clientId: "client-cursor", clientName: "Cursor", scopes: ["mcp:read"], // Deliberately in the past: pins the expired state next to the live one. createdAtIso: "2026-07-02T08:00:00.000Z", expiresAtIso: "2026-07-03T08:00:00.000Z", revoked: false, }, ], }); export function McpConnectVisualFixture() { return {}} onRevoke={() => {}} />; } /** Empty state is its own baseline — it is what every new tenant sees first. */ export function McpConnectEmptyVisualFixture() { const vm = buildMcpConnectVM({ connectorUrl: "https://mcp.hivegrid.example", tenantName: "HiveGrid Demo", appName: "HiveGrid", canRevoke: true, nowIso: "2026-07-28T12:00:00.000Z", tokens: [], }); return {}} onRevoke={() => {}} />; }