Tamagotchi-Trainer / tamagotchi_trainer

0 stars 0 forks source link

Setup Freezed and Database #29

Closed D-Nishimura808 closed 10 months ago

D-Nishimura808 commented 10 months ago

Install the relevant dependencies to run Freezed and troubleshoot any issues that arise with the installation.

Create a Data Model class using the Freezed dependency and incorporate it into the rest of the project.

This will also include the goals outlined in issue-30.

D-Nishimura808 commented 10 months ago

This comment is to go along with the 11/17 2:30am push on branch 29.

This is the culmination of the last week and a half or so of work. I've been incrementally working on the issues mentioned above but have run into two major roadblocks that prevent me from going further.

  1. The old friends database used a Map<String, User> whereas the new database uses a List. More work needs to be done to update the database and figure out how to store "friends" in the firebase database. The current thought is to have friends (collection) also implement a sub-collection of a document which tracks all friends for that user. More research needs to be done on how to implement this effectively.
  2. Registration does not work as intended. While the email registration works fine, I have yet to find a good way to implement the registerUserInfo page in the authentication workflow. Multiple hours have been spent on this issue with no luck. Tried adding after email verification but email verification is buggy and will not go through manually. Thus the only way to do this would be to implement directly on the Registration page or somehow figure out how to have first time users go to that specific page.

The edit user page within the settings does work for reading and writing to the database assuming that the account you are using is already set-up correctly.

Also I'm not sure why but the log-out feature does not work as intended. I've been looking into the issue but I am not quite sure what the problem with it is.

D-Nishimura808 commented 10 months ago

Fixed the login issue so now registering and logging in should work as intended.

The users list page was also fixed so it now displays everyone in the users database correctly.

The friends list page is not fixed yet but I'm planning to resolve this issue so that I can move onto UI fixes. The friends list page will be made into a separate issue.