Commit Graph

13 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
d22803ea66 Fix: Correct import name from NODE_TYPES to WorkflowNodeType
Fixed build error:
- Changed import from NODE_TYPES to WorkflowNodeType (actual export name)
- Matches the enum exported from nodes/constants.ts
- Resolves "No matching export" build error

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 13:45:39 +00:00
copilot-swe-agent[bot]
eccda4da1a Fix: Refactor tools plugin following Flowgram demo patterns
Comprehensive fixes based on feedback:
1. Fixed zoom: use playgroundTools.zoom for reading, playgroundTools.config.updateZoom for setting
2. Created useAddNode hook following Flowgram pattern for proper node addition
3. Added Minimap component to DemoTools (removed from useEditorProps plugin)
4. Fixed createHistoryNodePlugin to accept opts parameter
5. Updated createPanelManagerPlugin to create custom tools panel
6. Created NodePanel component following Flowgram demo pattern
7. Updated createFreeNodePanelPlugin with renderer parameter
8. All components now follow official Flowgram.ai patterns exactly

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 13:40:08 +00:00
copilot-swe-agent[bot]
a1b21e81f6 Add custom tools plugin following Flowgram demo pattern
Created DemoTools plugin with comprehensive toolbar:
- Plugin structure following @flowgram.ai/panel-manager-plugin pattern
- Positioned at top-center matching Flowgram demo screenshot
- Integrated with Flowgram's history, playground, and viewport APIs
- Tools include: fit view, grid view, zoom controls, lock/unlock, comments
- Undo/Redo with real-time state management
- Add Node dropdown with all node types
- Test Run button (green)
- Added 13 new translation keys (zh-CN + en-US)
- Removed old bottom-left tools component
- Plugin automatically renders via layer system

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 11:06:14 +00:00
copilot-swe-agent[bot]
54e2468c7a Refactor: Replace custom toolbar with Flowgram-style tools component
Following Flowgram demo structure:
- Created tools component directory with index, styles, zoom-select, add-node-dropdown
- Implemented FloatingTools positioned at bottom-left (like Flowgram demo)
- Added undo/redo buttons with history integration
- Added zoom selector dropdown (50%, 100%, 150%, 200%)
- Added fit-view button for canvas fitting
- Added Add Node dropdown with all node types
- Updated FlowgramEditor to use new tools component
- Removed old toolbar from editor
- Added 6 new translation keys (zh-CN + en-US)
- Following exact Flowgram UI patterns with styled-components

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 10:57:29 +00:00
copilot-swe-agent[bot]
b356069e6c Add DockedPanelLayer to workflow editor for panel management
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 10:48:13 +00:00
copilot-swe-agent[bot]
47e887cf83 Fix: Add toolbar and fix minimap positioning in workflow editor
- Added toolbar with node creation buttons (HTTP, Script, Condition, Delay, Loop)
- Added zoom controls (Zoom In, Zoom Out, Fit to Canvas)
- Fixed minimap positioning to stay within modal bounds
- Updated CSS to ensure proper containment
- Added 9 new translation keys for toolbar (zh-CN and en-US)

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 10:42:59 +00:00
whyour
81f6f84891 fix scenario style 2025-11-23 18:37:29 +08:00
copilot-swe-agent[bot]
a691951f6d Fix: Update plugin configuration - add history plugin and configure minimap size
- Changed plugins to function returning array
- Added createHistoryNodePlugin for undo/redo support
- Configured minimap with smaller size (150x100px)
- Updated createPanelManagerPlugin with factories and layerProps
- All plugin creation functions now receive proper parameters

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 10:18:38 +00:00
copilot-swe-agent[bot]
829727ad33 Changes before error encountered
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 06:17:47 +00:00
copilot-swe-agent[bot]
a0a70703bc Refactor workflow editor to use Flowgram.ai library
- Installed @flowgram.ai packages (free-layout-editor and plugins)
- Created node registries following Flowgram pattern
- Implemented FlowgramEditor component with proper integration
- Simplified workflowEditorModal to use Flowgram
- Added necessary translations
- All builds succeed

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 06:05:24 +00:00
copilot-swe-agent[bot]
e6b36b0a1b Final i18n fixes: Use consistent translation approach for all user messages
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 05:44:11 +00:00
copilot-swe-agent[bot]
46feac1765 Fix i18n: Replace hardcoded strings with internationalized translations
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 05:38:13 +00:00
copilot-swe-agent[bot]
af88062219 Add Scenario Mode with workflow editor - backend and frontend implementation
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-23 05:32:56 +00:00