bruin-tennis-consulting / match-manager

A web app for custom tennis match playback, allowing coaches to easily filter and search points by attributes for film review.
https://match-viewing-dashboard.web.app
8 stars 8 forks source link

Combine MatchDataProvider and DatabaseProvider #197

Open Fredenck opened 1 week ago

Fredenck commented 1 week ago

Currently, we are using React Context which pretty much acts as a "Global State" across files.

We have a MatchDataProvider, accessing the Firebase Database (Cloud Firestore) for matches. We also have a DatabaseProvider (poorly named), accessing the Firebase Storage for logos.

Please move logic from DatabaseProvider into MatchDataProvider. Update references towards the Context and layout.js, which currently uses both:

image