diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 0000000000..5fb6f5e385 --- /dev/null +++ b/.mcp.json @@ -0,0 +1,24 @@ +{ + "mcpServers": { + "postgres": { + "type": "stdio", + "command": "uv", + "args": ["run", "postgres-mcp", "--access-mode=unrestricted"], + "env": { + "DATABASE_URI": "${PG_DATABASE_URL}" + } + }, + "playwright": { + "type": "stdio", + "command": "npx", + "args": ["@playwright/mcp@latest", "--no-sandbox", "--headless"], + "env": {} + }, + "context7": { + "type": "stdio", + "command": "npx", + "args": ["-y", "@upstash/context7-mcp"], + "env": {} + } + } +} diff --git a/CLAUDE.md b/CLAUDE.md index 4533575cd4..e7a178b810 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -29,6 +29,9 @@ npx nx run twenty-server:test:integration:with-db-reset # Integration tests wit # Storybook npx nx storybook:build twenty-front # Build Storybook npx nx storybook:serve-and-test:static twenty-front # Run Storybook tests + + +When testing the UI end to end, click on "Continue with Email" and use the prefilled credentials. ``` ### Code Quality @@ -122,6 +125,8 @@ packages/ ## Development Workflow +IMPORTANT: Use Context7 for code generation, setup or configuration steps, or library/API documentation. Automatically use the Context7 MCP tools to resolve library IDs and get library docs without waiting for explicit requests. + ### Before Making Changes 1. Always run linting and type checking after code changes 2. Test changes with relevant test suites diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowDiagramCanvasBase.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowDiagramCanvasBase.tsx index 1632f1bf48..7af1551314 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowDiagramCanvasBase.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowDiagramCanvasBase.tsx @@ -496,10 +496,11 @@ export const WorkflowDiagramCanvasBase = ({ nodesDraggable={nodesDraggable} edgesFocusable={isDefined(onDeleteEdge)} panOnDrag={workflowDiagramPanOnDrag} + panOnScroll={true} onPaneContextMenu={onPaneContextMenu} nodesConnectable={nodesConnectable} paneClickDistance={10} // Fix small unwanted user dragging does not select node - preventScrolling={false} + preventScrolling={true} connectionLineComponent={WorkflowDiagramConnection} connectionRadius={0} >