SwEnt-Group13 / Unio

The world’s largest campus life platform.
3 stars 1 forks source link

feature: Link Home screen and Explore screen to Firebase (including images) #72

Closed armouldr closed 5 days ago

armouldr commented 1 week ago

The purpose of this PR is to link our Firebase backend with the Home and Explore screens of our app. This includes:

-Linking Home screen to Firestore (Explore screen was linked to Firestore by @Zafouche ) -Linking both screens to our Image storage (Firebase storage).

Also, I renamed EventListOverview.kt to Home.kt

Our image management works as follows:

1:The addEvent or addAssociation function is called. 2:The associated image is uploaded to Firebase Firestore with uploadImage. 3:On success, uploadImage returns the Uri to this image. 4:We then insert this Uri into the "image" field of our Event or Association 5:Finally, we add our Event or Association to Firestore. 6:Using the composable AsyncImage, we can then show our images using their Firebase Storage Uris :)

/!\ This PR does NOT include configuring the caching of said images, I will look into it soon.

sonarcloud[bot] commented 5 days ago

Quality Gate Failed Quality Gate failed

Failed conditions
67.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud