Status: Complete Version: 3.2.1 Built: November 2025
The Visual Interface is a modern, React-based editor that brings DevelopmentTranslation Bridge's Translation Bridge™ into a powerful visual environment. Built with enterprise-grade architecture, this interface provides side-by-side editing, live preview, AI-powered corrections, and intelligent tooltips for seamless page builder translation.
- React 19 - Latest React for optimal performance
- TypeScript 6 - Type-safe development
- Vite 8 - Lightning-fast build tool
- Monaco Editor - VS Code's editor engine
- TailwindCSS v4 - Modern utility-first CSS
- Zustand - Lightweight state management
- React Query - Server state management
- Allotment - Resizable split panes
npm ci
npm run devThe Vite dev server runs on http://localhost:3000 with hot module replacement.
npm ci
npm run lint
npm run buildOutput goes to dist/ directory.
- Side-by-Side Editor - Resizable panels with source and translated code
- Monaco Editor - VS Code-like editing with syntax highlighting for 10 frameworks
- Live Preview - Sandboxed iframe rendering of translated HTML
- Correction Panel - AI-powered corrections with one-click fixes
- Toolbar - Translate, save, export, and theme controls
- Framework Selector - Support for all 10 page builders
- Elementor
- Bricks Builder
- Oxygen Builder
- WPBakery
- Divi Builder
- Beaver Builder
- Gutenberg
- Avada Fusion
- Cornerstone
- Zion Builder
src/
├── components/ # React components
│ ├── SideBySideEditor.tsx
│ ├── Monaco/
│ ├── Preview/
│ ├── Corrections/
│ └── Layout/
├── store/ # Zustand state management
├── types/ # TypeScript definitions
├── services/ # API services (future)
├── features/ # Feature modules (future)
└── hooks/ # Custom React hooks
Uses Zustand for lightweight, performant state:
- Editor state (frameworks, code)
- Corrections and tooltips
- User preferences
- Loading states
- Persistent storage
- Log into WordPress admin
- Navigate to Visual Interface menu
- React app loads in full-screen mode
Development (WP_DEBUG enabled):
- Loads from Vite dev server
- Hot Module Replacement
- Fast refresh
Production:
- Loads from built assets in
dist/ - Optimized bundles
- Code splitting
REST API base: /wp-json/devtb/v2/
Endpoints:
POST /translate- Translate between frameworksPOST /corrections- Get AI corrections (future)
- Bundle: ~303 KB (gzipped: ~95 KB)
- CSS: ~19 KB (gzipped: ~5 KB)
- Build: <1 second
- Load: <500ms
- AI Correction Engine integration
- Intelligent tooltip system
- Real-time collaboration (WebSocket)
- Project management
- Template library
GPL-2.0+ - Same as DevelopmentTranslation Bridge
DevelopmentTranslation Bridge - Translation Bridge™ Visual Interface Phase 1 Complete ✅