Skip to content

Commit 6c4ae1a

Browse files
willydouhardTwillclaudeFelixMalfait
authored
Ability to navigate/scroll the workflow canvas with sliding two fingers (#14804)
**Issue**: twentyhq/core-team-issues#1587 ### Changes Made - Modified scroll event handling to detect and limit two-finger scroll gestures to the workflow canvas component - Improved user experience by preventing accidental navigation or zooming outside the intended canvas area --------- Co-authored-by: Twill <[email protected]> Co-authored-by: Claude <[email protected]> Co-authored-by: Félix Malfait <[email protected]>
1 parent 6b46373 commit 6c4ae1a

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.mcp.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"mcpServers": {
3+
"postgres": {
4+
"type": "stdio",
5+
"command": "uv",
6+
"args": ["run", "postgres-mcp", "--access-mode=unrestricted"],
7+
"env": {
8+
"DATABASE_URI": "${PG_DATABASE_URL}"
9+
}
10+
},
11+
"playwright": {
12+
"type": "stdio",
13+
"command": "npx",
14+
"args": ["@playwright/mcp@latest", "--no-sandbox", "--headless"],
15+
"env": {}
16+
},
17+
"context7": {
18+
"type": "stdio",
19+
"command": "npx",
20+
"args": ["-y", "@upstash/context7-mcp"],
21+
"env": {}
22+
}
23+
}
24+
}

CLAUDE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ npx nx run twenty-server:test:integration:with-db-reset # Integration tests wit
2929
# Storybook
3030
npx nx storybook:build twenty-front # Build Storybook
3131
npx nx storybook:serve-and-test:static twenty-front # Run Storybook tests
32+
33+
34+
When testing the UI end to end, click on "Continue with Email" and use the prefilled credentials.
3235
```
3336

3437
### Code Quality
@@ -122,6 +125,8 @@ packages/
122125

123126
## Development Workflow
124127

128+
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.
129+
125130
### Before Making Changes
126131
1. Always run linting and type checking after code changes
127132
2. Test changes with relevant test suites

packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowDiagramCanvasBase.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,11 @@ export const WorkflowDiagramCanvasBase = ({
496496
nodesDraggable={nodesDraggable}
497497
edgesFocusable={isDefined(onDeleteEdge)}
498498
panOnDrag={workflowDiagramPanOnDrag}
499+
panOnScroll={true}
499500
onPaneContextMenu={onPaneContextMenu}
500501
nodesConnectable={nodesConnectable}
501502
paneClickDistance={10} // Fix small unwanted user dragging does not select node
502-
preventScrolling={false}
503+
preventScrolling={true}
503504
connectionLineComponent={WorkflowDiagramConnection}
504505
connectionRadius={0}
505506
>

0 commit comments

Comments
 (0)