Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-Adding Friend Page features after reset #43

Merged
merged 26 commits into from
Apr 7, 2022
Merged

Conversation

bhvrgav
Copy link
Collaborator

@bhvrgav bhvrgav commented Mar 24, 2022

Added navigation, new info page and wrote tests.

Copy link
Collaborator

@leonardopennino leonardopennino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks good, I would consider modifying just the graphics but good job on the code! Dividing model and view was the right decision. But, before we can approve this the code must build on CI and must be tested. PR set aside while waiting for tests.

@leonardopennino
Copy link
Collaborator

Still tests missing, add them and we will be fine. Again really a great job 👍 keep up the good work 💯 !

@panadax
Copy link
Collaborator

panadax commented Mar 31, 2022

This design looks good to me 👍 Don't forget to check to update with the main branch before your development

@bhvrgav bhvrgav dismissed leonardopennino’s stale review April 7, 2022 00:22

Wrote tests, have yet to fix UI

@bhvrgav bhvrgav added the Waiting for review This PR is waiting for review. label Apr 7, 2022
@SilvioMueller SilvioMueller self-requested a review April 7, 2022 08:28
Copy link
Collaborator

@gaetschwartz gaetschwartz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@panadax panadax self-requested a review April 7, 2022 12:59
Copy link
Collaborator

@panadax panadax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well :) 👍

Copy link
Collaborator

@SilvioMueller SilvioMueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general look really good. The UI could need some adjustments to look like the rest of the app. The text in InfoPageFragment is barely readable. Good job on the test coverage!

data class FriendsInfo(
val username : String,
val gamesPlayed : Int,
val gamesWon : Int,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems a bit weird to me to have this class here. But I am not sure. Maybe this could be in models??

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, let me move that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will also work on changing to UI in the next sprint to match the rest of the application. Didn't have enough time for that this week

val friendName : TextView = itemView.findViewById(R.id.friendName)
val winRate : TextView = itemView.findViewById(R.id.winRateText)
val gamesPlayed : TextView = itemView.findViewById(R.id.gamesPlayedText)
val gamesWon : TextView = itemView.findViewById(R.id.gamesWonText)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its best practice to use bindings instead of findViewByID. It reduces the boilerplate code

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will discuss this with your tomorrow, and I will fix it before the next PR! Thank you for the comments :)

@bhvrgav bhvrgav merged commit e377049 into main Apr 7, 2022
@bhvrgav bhvrgav deleted the feat/friendspage branch April 7, 2022 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for review This PR is waiting for review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants