Closed hero101 closed 1 month ago
The changes involve significant updates across multiple files, including the configuration file config.yml
, modifications to the Server
class for room management and socket handling, and the introduction of new types for Excalidraw content and files. New functionalities for saving and fetching data have been added to the WhiteboardIntegrationAdapterService
, along with enhancements to error handling and logging. Additional utility functions for JSON processing have also been introduced, improving the overall structure and capabilities of the application.
File Path | Change Summary |
---|---|
config.yml |
Updated save_interval to 10 seconds; removed save_timeout and save_consecutive_failed_attempts ; updated queue from ${QUEUE}:auth to ${QUEUE}:alkemio-whiteboards . |
src/excalidraw-backend/server.ts |
Introduced throttled save mechanism, snapshot management, updated socket event handling, and removed auto-save logic. |
src/excalidraw-backend/types/excalidraw.content.ts |
Added new type ExcalidrawContent for managing Excalidraw-specific content structure. |
src/excalidraw-backend/types/excalidraw.file.ts |
Introduced types ExcalidrawFile and ExcalidrawFileStore for managing Excalidraw files. |
src/excalidraw-backend/types/in.memory.snapshot.ts |
Added InMemorySnapshot class for managing immutable snapshots of Excalidraw content. |
src/services/whiteboard-integration/outputs/save.output.data.ts |
Introduced SaveOutputData , SaveContentData , and SaveErrorData classes for structured save operations. |
src/services/whiteboard-integration/whiteboard.integration.adapter.service.ts |
Added save and fetch methods, improved error handling and logging. |
src/util/index.ts |
Added exports for json.to.arraybuffer and excalidraw.init.data ; removed array.random.element . |
src/util/json-to-arraybuffer/json.to.arraybuffer.ts |
Introduced jsonToArrayBuffer function for converting JSON objects to ArrayBuffer. |
src/util/json-to-arraybuffer/json.to.arraybuffer.spec.ts |
Added unit tests for jsonToArrayBuffer function covering various JSON scenarios. |
(No sequence diagram is necessary as the changes are primarily structural and do not alter the control flow of the application.)
🐇 In the meadow, changes abound,
New features and fixes, joyfully found.
With saves and fetches, our work's a delight,
Hopping along, everything feels right!
Let's cheer for the code, so clever and bright! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Changes
collaboration
service (formerly alkemio server)Summary by CodeRabbit
Summary by CodeRabbit
New Features
WhiteboardIntegrationAdapterService
.Bug Fixes
Refactor
Documentation