- Firebase Service (
lib/services/firebase_service.dart):- Added
TODOcomments to various methods to indicate where backend implementation for data privacy and access control is required. These comments serve as a guide for future Firebase integration to ensure:- Global uniqueness checking for usernames (
signUpWithEmail). - Secure storage of parent-child relationships and proper access control for user profiles (
createUserProfile,getUserProfile). - Correct association of
kidIDandparentIDfor tasks and enforcement of access control for task creation, updates, and deletions (createTask,updateTask,deleteTask). - Filtering of tasks by
kidIDandparentIDfor respective streams (getTasksStream,getParentTasksStream). - Verification of
taskIdownership and parent-child linkage for proof uploads, task approvals, and rejections (uploadTaskProof,approveTask,rejectTask). - Secure establishment and breaking of parent-child links (
linkChildToParent,unlinkChildFromParent). - Controlled access to child usernames and parent's children lists (
getChildIdByUsername,getParentChildrenStream).
- Global uniqueness checking for usernames (
- Added
- Implement the stubbed methods in
lib/services/firebase_service.dartwith actual Firebase functionality, paying close attention to theTODOcomments regarding data privacy and access control. This will involve setting up Firestore security rules and implementing server-side logic to enforce these privacy requirements.