This PR adds the task sharing feature and the commenting feature to the TODO app. Both the backend and frontend have been updated to support these new functionalities.
Database Schema Changes
Two new databases have been added:
comment-db: Stores comments related to different tasks.
Description
This PR adds the task sharing feature and the commenting feature to the TODO app. Both the backend and frontend have been updated to support these new functionalities.
Database Schema Changes
Two new databases have been added:
Changes Overview
Backend
New Endpoints:
POST /tasks/${taskId}/share-task-requests
: Share a task with one or more users.GET /tasks/shared/${accountId}
: Fetch all tasks shared with the current user.POST /tasks/${taskId}/comments
: Create a new comment for a task.GET /tasks/${taskId}/comments
: Get comments corresponding to a task.PUT /tasks/${taskId}/comments/${commentId}
: Update a comment.DELETE /tasks/${taskId}/comments/${commentId}
: Delete a comment.Database Models:
Controllers:
Services:
Utils:
Frontend
Components:
Context:
Services:
Types:
Tests
Automated Test Cases Added