Architecture: Should the embeddable bridge library support dual interactio...

Documentation for Sessions

🏗️ Architecture: Should the embeddable bridge library support dual interactio...

Date: 2026-01-28
Time: 20:54:16 UTC
Session: editor2-73.11
Agent: angular
Confidence: 95%
Status: ✅ Documented


📋 Decision Context

Question:

Should the embeddable bridge library support dual interaction methods (drag-drop AND click-to-add)?

Task: MVP 0.3 interaction method design


🎯 Decision Made

Chosen:

Yes - support both AI_ADD_TO_CANVAS (click-based, reliable fallback) and AI_DRAG_START/MOVE/END (drag-based, power users). Host adapter emits separate events: onAddToCanvas$ and onDragEnd$.

Options Considered:

  1. Drag-drop only (too risky)
  2. Click-to-add only (limits UX)
  3. Both methods with separate event streams (chosen)

💭 Reasoning

Click-based 'Add to Canvas' is 100% reliable and works instantly. Drag-drop provides better UX for power users but has more complexity. Supporting both gives users choice and provides fallback if drag-drop has issues on certain devices/browsers.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation