Steelhacks-2023 / Lost-At-Pitt

Lost @ Pitt is a multi-platform lost-and-found tracking application, allowing users to return & reclaim lost items. Currently in development!
https://steelhacks-2023.github.io/Lost-At-Pitt/
6 stars 0 forks source link

Updated UI and singleton services #45

Closed tbeidlershenk closed 7 months ago

tbeidlershenk commented 8 months ago

Changes

  1. Updated AuthService by making it singleton and to correctly update Firestore with user documents
  2. Added a new data model AppUser to match a user document in Firestore
  3. Created a singletonFirebaseService where we should put all related Firestore calls
  4. Created a singleton DataService that stores the current lost and found items so we can access from anywhere in the app
  5. Updated the UI to use the google_nav_bar package in a new HomePage class that manages all routes in the app, both existing and to be implemented (chat, profile page) and moved the StreamBuilder listening to this page from MapPage
  6. Updated route.dart and other files as needed
  7. Slightly changed the project folder structure to be more meaningful

Notes

Too many changes bruh please pull and test this Jeff!!! One note I wasn't able to get it to auto update the map when submitting a post which is weird because I think the StreamBuilder should pick up on this but idrk. It does refresh if you physically refresh the page by navigating away then back.

jeffzheng13 commented 8 months ago

Pull request not being accepted at the moment. There seems to be some functionality issues at the moment. (Testing on dev db)

My observations:

My suggestion now is, are we able to take one push at time and test? That way we can pinpoint single issues. Right now there's too many things causing errors that I would like to take it one adjustment at a time.

jeffzheng13 commented 8 months ago

Appreciate all the work you're putting in @tbeidlershenk👏.

Observations:

tbeidlershenk commented 7 months ago

Closing as we won't be merging this but will still be referencing it