-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: interests from the database #139
Conversation
Now interests are fetched from the database rather than written on the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good PR, not much to say except one comment I've left. Everything works on my android device (I've checked the box).
Also don't forget to address sonar cloud issues before merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
How I did it
I've written by hand all interests in the database. I decided to create an Interests object, containing a title, a category and an image URL, which will or not be used to import images.
Then I fetch the interests asynchronously. Therefore I had to change the functions logic so it would work with this new implementation.
I tested the interest object and the Interest Screen
How to verify it
Sign-in in the application and go to InterestsScreen, right after InformationScreen. You should see new interests added in the list
Demo video
No need for video as the functionalities of the screen remain strictly the same. The only difference is the listed interests. For now, we have 50 interests of around 6 categories: Music, Sports, Games, General, Fitness, Cooking
Pre-merge checklist
The changes I have introduced: