mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
fix(storybook): repair gateways token fixtures and mask the reasoning ticker
The gateways stories crashed at render because the token fixtures predate the tokenPrefix/clientLabel/allowedActions fields the tab now reads (the 'as unknown as' cast hid it from typecheck). The ux-lab rotating-reasoning ticker animates by design and never settles between capture attempts, so its two line containers join MASKED_SELECTORS. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eb1e341b5d
commit
b8741b4ec5
2 files changed
+17
No files matched your search
@@ -42,6 +42,11 @@ const MASKED_SELECTORS: Record<string, string> = {
|
||||
// paragraph that carries that highlight.
|
||||
"product-documents-annotations--integrated-mobile-bottom-sheet":
|
||||
'p:has-text("Use a sidecar anchor made from")',
|
||||
// The rotating-reasoning ticker demo animates by design and its interval
|
||||
// keeps advancing between capture attempts, so the two ticker rows never
|
||||
// settle. Mask just the ticker line containers.
|
||||
"ux-labs-converted-test-pages--issue-chat-review-surface":
|
||||
"#rotating-text .relative.h-5",
|
||||
};
|
||||
|
||||
async function renderStory(page: Page, storyId: string, theme: (typeof THEMES)[number]) {
|
||||
|
||||
@@ -32,6 +32,9 @@ const POPULATED: ToolMcpGatewayWithTokens[] = [
|
||||
companyId: COMPANY,
|
||||
gatewayId: "gw-1",
|
||||
name: "Dotta's MacBook",
|
||||
tokenPrefix: "pcgw_a1b2c3",
|
||||
clientLabel: "Cursor",
|
||||
allowedActions: ["tools/list", "tools/call"],
|
||||
expiresAt: new Date("2026-09-01T00:00:00Z"),
|
||||
lastUsedAt: new Date("2026-06-16T08:00:00Z"),
|
||||
revokedAt: null,
|
||||
@@ -45,6 +48,9 @@ const POPULATED: ToolMcpGatewayWithTokens[] = [
|
||||
companyId: COMPANY,
|
||||
gatewayId: "gw-1",
|
||||
name: "CI runner",
|
||||
tokenPrefix: "pcgw_d4e5f6",
|
||||
clientLabel: "",
|
||||
allowedActions: ["tools/list"],
|
||||
expiresAt: null,
|
||||
lastUsedAt: null,
|
||||
revokedAt: null,
|
||||
@@ -58,6 +64,9 @@ const POPULATED: ToolMcpGatewayWithTokens[] = [
|
||||
companyId: COMPANY,
|
||||
gatewayId: "gw-1",
|
||||
name: "Old laptop (rotated)",
|
||||
tokenPrefix: "pcgw_g7h8i9",
|
||||
clientLabel: "Claude Desktop",
|
||||
allowedActions: ["tools/list", "tools/call"],
|
||||
expiresAt: null,
|
||||
lastUsedAt: new Date("2026-04-01T10:00:00Z"),
|
||||
revokedAt: new Date("2026-05-15T16:00:00Z"),
|
||||
@@ -168,6 +177,9 @@ const POPULATED: ToolMcpGatewayWithTokens[] = [
|
||||
companyId: COMPANY,
|
||||
gatewayId: "gw-3",
|
||||
name: "Legacy IDE",
|
||||
tokenPrefix: "pcgw_j0k1l2",
|
||||
clientLabel: "VS Code",
|
||||
allowedActions: ["tools/list"],
|
||||
expiresAt: new Date("2026-06-30T00:00:00Z"),
|
||||
lastUsedAt: null,
|
||||
revokedAt: null,
|
||||
|
||||
Reference in new issue
Block a user