Skip to content

Conversation

@cohaaan
Copy link

@cohaaan cohaaan commented Dec 9, 2025

No description provided.

Isaac Cohan and others added 4 commits November 17, 2025 21:58
## Features Added
- Visual editor overlay with style panel
- Live element selection and style editing
- Color pickers for background, text, and border
- Border controls (width, style, color)
- Individual corner radius controls
- Text content editing
- Font weight selector
- Opacity slider
- Message-passing architecture for cross-origin iframe communication

## Architecture
- VisualEditorOverlay component in Preview.tsx
- Injected visual-editor-script.js for iframe-side element interaction
- postMessage communication for VISUAL_EDITOR_* events
- Real-time DOM updates via style property changes

## Technical Implementation
- Fixed Babel imports for browser compatibility
- Added TypeScript type definitions (@types/babel__*)
- Implemented iframe message handler for element selection and updates
- Added comprehensive style editing controls

## Documentation
- Created VISUAL_EDITOR_ROADMAP.md with Figma-like canvas implementation guide
- Analyzed reference Figma clone for drag/resize/multi-select features
- Documented next steps for canvas-based visual editing

## Next Steps (See .claude/VISUAL_EDITOR_ROADMAP.md)
- Add drag & resize handles
- Implement multi-select with selection box
- Add rotation handle
- Canvas state management for element creation

🎨 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Install @ai-sdk/cerebras package
- Create Cerebras provider implementation with 6 models (Llama 3.1 8B, Llama 3.3 70B, Qwen 3 32B, Qwen 3 235B, GPT-OSS 120B, ZAI GLM 4.6)
- Add Cerebras provider to registry
- Hide 15 providers from dropdown: Perplexity, OpenRouter, Moonshot, Mistral, Anthropic, Amazon Bedrock, HuggingFace, Github, Hyperbolic, Deepseek, Ollama, LM Studio, OpenAI-like, Together, Cohere
- Keep only 5 visible providers: Cerebras, OpenAI, Google, Groq, XAI
- Add getVisibleProviders() method to LLMManager for filtering providers
- Update PROVIDER_LIST to use visible providers only
- Fix all linting and TypeScript errors in visual editor components

Also includes user's visual editor changes and environment updates.
- Refactored transform logic to use incremental deltas for smoother tracking
- Added pointer capture for resize handles and element dragging
- Changed to pointer events for better touch/mouse support
- Added iframe scroll synchronization for overlay alignment
- Increased resize handle size and made them circular
- Minor Cerebras provider cleanup and formatting
- Add CEREBRAS_API_KEY to .env.example with setup instructions
- Add Cerebras to CloudProvidersTab UI (type, icon, description)
- Add Cerebras to import/export API keys template
- Add Cerebras completion limits (4096 tokens)

Cerebras is now fully integrated and discoverable in settings UI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants