Repository navigation
v0.3.7 — Canvas: Visual Study Board
Canvas: Visual Study Board
AI now generates visual canvases — colored, connected concept cards — alongside notes and chat.
What's New
- Canvas Tool — Ask the AI to "create a canvas", "visualize this", or "draw a flowchart" and it generates a visual board with colored element cards
- 6 Element Types — Definitions (blue), Formulas (green), Flowcharts (orange), Notes (purple), Examples (pink), Headings (gray)
- Connected Elements — Flowchart arrows connect related concepts automatically
- Notes & Canvas Tabs — Side panel now switches between Notes and Canvas views
- Lazy Loading — Messages load 7 at a time with scroll-to-load-more; notes and canvases load content on demand for faster session startup
- Canvas CRUD — Create, rename, and delete canvases from the UI
Performance
- Session loading optimized: only last 7 messages fetched initially, older messages loaded on scroll
- Notes and canvases list endpoints return metadata only; full content fetched when a tab is selected
- Reduces initial session payload by ~60-80% for sessions with long chat history
Bug Fixes
- Fixed voice mode not reflecting canvas changes in the side panel
- Fixed scroll position jumping when loading older messages
Backend
- New
canvasestable with JSON elements storage - New
/api/canvasesCRUD endpoints - New
/api/sessions/{id}/messagespaginated endpoint - Canvas tool call parsing in chat and voice endpoints
- CORS updated for
localhost:3008
Dependencies
- Added
@xyflow/react@^12.11.1for React Flow canvas rendering
