Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -0,0 +1,52 @@
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 <McpConnectDialog open vm={VM} onOpenChange={() => {}} 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 <McpConnectDialog open vm={vm} onOpenChange={() => {}} onRevoke={() => {}} />;
}