Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Kamila/clean code and improve UI #337

Merged
merged 42 commits into from
May 22, 2022
Merged

Kamila/clean code and improve UI #337

merged 42 commits into from
May 22, 2022

Conversation

kamilababayeva
Copy link
Collaborator

@kamilababayeva kamilababayeva commented May 21, 2022

This PR changes:

  • clean strings
  • clean colors
  • improve UI of navigation bar
  • improve UI of scoreboard
  • improve UI of search user

image

image

@kamilababayeva kamilababayeva linked an issue May 21, 2022 that may be closed by this pull request
@kamilababayeva kamilababayeva self-assigned this May 21, 2022
@@ -34,6 +34,17 @@ class AdapterHelper {
itemView.findViewById<ImageView>(imageId).visibility = View.VISIBLE
}

/**
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

@MaximeZmt MaximeZmt self-requested a review May 22, 2022 11:30
Copy link
Owner

@MaximeZmt MaximeZmt left a comment

Choose a reason for hiding this comment

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

Nice work 👍 , some comments below

app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
@jiabaow jiabaow self-requested a review May 22, 2022 12:23
Copy link
Collaborator

@jiabaow jiabaow left a comment

Choose a reason for hiding this comment

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

🤩 I like the new UI!

Is there a way to remove the duplications indicated by code climate?

app/src/main/java/ch/sdp/vibester/helper/AdapterHelper.kt Outdated Show resolved Hide resolved
app/src/main/java/ch/sdp/vibester/helper/AdapterHelper.kt Outdated Show resolved Hide resolved
Copy link
Collaborator

@jiabaow jiabaow left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Owner

@MaximeZmt MaximeZmt left a comment

Choose a reason for hiding this comment

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

Such a nice UI improvement 😍👍

itemView.findViewById<TextView>(R.id.search_user_username).text = user.username
if(position %2 == 0) itemView.setBackgroundColor(itemView.resources.getColor(R.color.darker_floral_white))
Copy link

Choose a reason for hiding this comment

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

Identical blocks of code found in 2 locations. Consider refactoring.

@@ -57,10 +58,13 @@
*/
fun bind(player: User, position: Int) {
val newPosition = position + 1
Copy link

Choose a reason for hiding this comment

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

Identical blocks of code found in 2 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented May 22, 2022

Code Climate has analyzed commit 650a526 and detected 4 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 4

The test coverage on the diff in this pull request is 91.3% (80% is the threshold).

This pull request will bring the total coverage in the repository to 84.3%.

View more on Code Climate.

@kamilababayeva kamilababayeva merged commit a524dff into main May 22, 2022
@kamilababayeva kamilababayeva deleted the kamila/clean_code branch May 22, 2022 17:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugs/UI fixes
3 participants