π§© Feature / Task
Implement the logic to fetch and display only those hackathons that were uploaded by the currently logged-in user. This requires filtering the hackathons collection in Firestore based on the creatorId.
β
Acceptance Criteria
π§ Steps To Do
- In
scripts/features/dashboard.js, create a function to fetch user-specific hackathons.
- Get the current user's ID using
firebase.auth().currentUser.uid.
- Query the
hackathons collection in Firestore: firebase.firestore().collection('hackathons').where('creatorId', '==', currentUserId).get().
- Iterate through the fetched documents and dynamically create HTML elements to display each hackathon's details in
public/dashboard.html.
- Implement error handling and loading states.
π Related Files / Areas
public/dashboard.html
scripts/features/dashboard.js
scripts/auth/firebase.js
- Firebase:
Firestore
π§© Priority
Priority: π΄ High
π Dependencies
Depends on: #1, #21, #23
πΌοΈ Reference
π§© Feature / Task
Implement the logic to fetch and display only those hackathons that were uploaded by the currently logged-in user. This requires filtering the
hackathonscollection in Firestore based on thecreatorId.β Acceptance Criteria
public/dashboard.html) accurately displays only hackathons wherecreatorIdmatches thecurrentUserId.π§ Steps To Do
scripts/features/dashboard.js, create a function to fetch user-specific hackathons.firebase.auth().currentUser.uid.hackathonscollection in Firestore:firebase.firestore().collection('hackathons').where('creatorId', '==', currentUserId).get().public/dashboard.html.π Related Files / Areas
public/dashboard.htmlscripts/features/dashboard.jsscripts/auth/firebase.jsFirestoreπ§© Priority
Priority: π΄ High
π Dependencies
Depends on: #1, #21, #23
πΌοΈ Reference
wherequeries