feat: enhance drawing functionality with file support#33
feat: enhance drawing functionality with file support#33macintushar merged 1 commit intomacintushar:mainfrom sedationh:main
Conversation
- Added support for BinaryFiles in ExcalidrawData type. - Updated createNewPage and setDrawData functions to handle files. - Modified drawDataStore to include files in state management. - Enhanced Mermaid and Page components to manage file uploads and updates.
WalkthroughThe changes integrate support for handling and persisting binary files within Excalidraw scenes. Relevant types and function signatures are updated to include an optional Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Excalidraw
participant PageComponent
participant Store
participant DB
User->>Excalidraw: Edits scene (elements, files)
Excalidraw->>PageComponent: getSceneElements(), getFiles()
PageComponent->>Store: setPageData(page_id, elements, name, files)
PageComponent->>DB: setDrawData(id, elements, name, files)
DB-->>PageComponent: Save confirmation
Store-->>PageComponent: State updated
PageComponent->>Excalidraw: addFiles(files) (on load)
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Graph Analysis (2)src/views/Mermaid.tsx (1)
src/db/draw.ts (1)
🔇 Additional comments (19)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@sedationh is attempting to deploy a commit to the Tushar Selvakumar's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@sedationh this is awesome! I'll just test it out and make sure nothing is breaking with previous pages before merging. |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@sedationh just finished testing, seems to work properly. Thank you for contributing! |
support.image.mov
Summary by CodeRabbit
New Features
Bug Fixes