A comprehensive React-based user interface for creating and executing Request Confirmation Networks (ReCoNs).
-
Visual Network Builder
- React Flow-based interactive canvas
- Custom node types (Script, Terminal, Hybrid)
- Real-time state visualization
- Hierarchical network structures
-
Execution Simulation
- Step-by-step ReCoN execution
- 8-state machine visualization
- Request-confirmation message flow
- Color-coded state transitions
-
API Integration Ready
- Complete REST client for backend
- Network CRUD operations
- Execution control endpoints
- Import/export functionality
-
Professional UI Components
- Toolbar with network controls
- Node configuration panels
- State monitoring dashboard
- Import/export interface
- Node.js 18.x+
- npm
npm install
npm run build # ✅ Successfully builds!npm run devThe current build includes a fully functional demo showing:
- Hierarchical ReCoN Network: Root script coordinating child scripts and terminals
- Real-time Execution: Watch nodes transition through all 8 ReCoN states
- Visual State Machine: Color-coded representation of inactive → requested → active → confirmed/failed
- Message Propagation: See request flow down and confirmation flow back up
Root Script
├── Child A Script ──→ Terminal 1
├── Child B Script ──→ Terminal 2
└── Child A ──por──→ Child B (sequence control)
| Component | Status | Description |
|---|---|---|
| React Flow Canvas | ✅ | Interactive network visualization |
| Custom Nodes | ✅ | Script, Terminal, Hybrid node types |
| State Visualization | ✅ | 8-state ReCoN machine |
| Execution Engine | ✅ | Simulated ReCoN execution |
| API Client | ✅ | Complete REST integration |
| Import/Export | ✅ | Multiple format support |
| Auto-Layout | ✅ | Hierarchical & sequence layouts |
| Build System | ✅ | Successfully builds to dist/ |
src/
├── ReCoNApp.tsx # Main working demo
├── components/ # Full UI component library
│ ├── NetworkCanvas.tsx
│ ├── Toolbar.tsx
│ ├── ControlPanel.tsx
│ ├── NodePanel.tsx
│ ├── StateViewer.tsx
│ └── ImportExport.tsx
├── nodes/ # Custom React Flow nodes
├── stores/ # Zustand state management
├── services/ # API integration
└── utils/ # Layout algorithms
- Build:
npm run build(✅ Works!) - Serve: Serve the
dist/directory - Demo: Experience the working ReCoN execution simulation
- Backend: Connect to the FastAPI backend for full functionality
The UI is ready to connect to the recon-platform API:
# Start the backend
cd ../api
python -m uvicorn app:app --reload --port 8000The UI includes complete API client code for:
- Network creation/management
- Node and link operations
- Script execution control
- State synchronization
✅ Successfully Built: No compilation errors, clean build output ✅ ReCoN Compliant: Implements all 8 states and message passing ✅ Visual Demo: Working hierarchical execution simulation ✅ Professional UI: Complete interface with all planned components ✅ API Ready: Full backend integration capability ✅ Extensible: Modular architecture for future enhancements
🚀 Ready to visualize and execute ReCoN networks!
The UI successfully builds and provides a complete foundation for ReCoN network development with professional-grade React components and real-time execution visualization.