[DEV] add Code Connect scaffold for FamilyPage (NYM-1199)

Installs @figma/code-connect 1.4.7 as dev dependency. Adds figma.config.json
at nym-wallet root (include: src/**/*.figma.tsx). Creates FamilyPage.figma.tsx
mapping FamilyPage to Figma node 1861:1889 (Node Families composite,
moIK1E6AaXhFz8lI1pZVrI). Publish is Tier-1 gated — run separately with PAT.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
huximaxi
2026-06-04 14:30:33 +02:00
committed by Yana Matrosova
parent eb774da916
commit 1d9215a0c0
4 changed files with 928 additions and 31 deletions
+6
View File
@@ -0,0 +1,6 @@
{
"codeConnect": {
"include": ["src/**/*.figma.tsx"],
"exclude": ["**/*.test.*", "**/*.stories.*"]
}
}
+3 -2
View File
@@ -142,16 +142,17 @@
"@babel/preset-env": "catalog:",
"@babel/preset-react": "catalog:",
"@babel/preset-typescript": "catalog:",
"@figma/code-connect": "^1.4.7",
"@nymproject/eslint-config-react-typescript": "workspace:*",
"@nymproject/webpack": "workspace:*",
"@pmmmwh/react-refresh-webpack-plugin": "catalog:",
"@playwright/test": "^1.49.1",
"@storybook/test-runner": "^0.23.0",
"@pmmmwh/react-refresh-webpack-plugin": "catalog:",
"@storybook/addon-a11y": "^10.4.1",
"@storybook/addon-docs": "^10.4.1",
"@storybook/addon-mcp": "^0.6.0",
"@storybook/addon-webpack5-compiler-swc": "^4.0.3",
"@storybook/react-webpack5": "^10.4.1",
"@storybook/test-runner": "^0.23.0",
"@svgr/webpack": "catalog:",
"@tauri-apps/cli": "catalog:",
"@testing-library/dom": "catalog:",
@@ -0,0 +1,20 @@
import figma from '@figma/code-connect';
import { FamilyPage } from './FamilyPage';
// Wire 2 — Code Connect mapping for FamilyPage (NYM-1199).
// Maps to the Node Families composite frame in Nym 2.0 (2026-05-13).
// FamilyPage takes no props — it reads all state from FamiliesContext.
//
// Node 1861:1889 is the Family-scoped composite. No individual 420px screen
// frame exists in the file yet; update node-id when Yana cuts a production frame.
//
// Publish (Tier-1 gate — Hux approval required before running):
// FIGMA_ACCESS_TOKEN=<pat-with-code-connect-write> npx figma connect publish
figma.connect(
FamilyPage,
'https://www.figma.com/design/moIK1E6AaXhFz8lI1pZVrI/Nym.2.0?node-id=1861-1889',
{
example: () => <FamilyPage />,
},
);
+899 -29
View File
File diff suppressed because it is too large Load Diff