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

Kamila/add_user_search #181

Merged
merged 29 commits into from
Apr 17, 2022
Merged

Kamila/add_user_search #181

merged 29 commits into from
Apr 17, 2022

Conversation

kamilababayeva
Copy link
Collaborator

@kamilababayeva kamilababayeva commented Apr 16, 2022

This PR contains UI to search for users by their usernames. I have added the button on welcome screen, but we can move it later.

Changes:

  • new layout to search for users
  • new activity with the logic implemented to search for users

The improvements can be:

  • add function to search for users in UsersRepo, but the problem is to update the view with new users. I am not sure how to handle that.
  • move common method onCancelled to avoid code climate issue

image

@kamilababayeva kamilababayeva changed the title Kamila/refactor shared preferences Kamila/add_user_search Apr 16, 2022
userProfileAdapter = UserProfileAdapter(users!!)
recyclerView!!.adapter = userProfileAdapter
}
override fun onCancelled(error: DatabaseError) {
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.

@kamilababayeva kamilababayeva self-assigned this Apr 17, 2022
@kamilababayeva kamilababayeva marked this pull request as ready for review April 17, 2022 10:54
Copy link
Collaborator

@laurislopata laurislopata left a comment

Choose a reason for hiding this comment

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

Good job, just added some small comments

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 👍 ! Just update the string.xml 😀

app/src/main/res/layout/activity_welcome_screen.xml Outdated Show resolved Hide resolved
app/src/main/res/layout/user_search_item_layout.xml Outdated Show resolved Hide resolved
@laurislopata laurislopata self-requested a review April 17, 2022 15:13
Copy link
Collaborator

@laurislopata laurislopata left a comment

Choose a reason for hiding this comment

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

Thanks for implementing my proposals. LGTM

@codeclimate
Copy link

codeclimate bot commented Apr 17, 2022

Code Climate has analyzed commit 354458c and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

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

This pull request will bring the total coverage in the repository to 88.8% (0.2% change).

View more on Code Climate.

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.

Great 👍

@MaximeZmt MaximeZmt merged commit 4707b9f into main Apr 17, 2022
@MaximeZmt MaximeZmt deleted the kamila/refactor_sharedPreferences branch April 17, 2022 16:45
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.

Add logic to search for the user by handle/username Add UI to search for the user by handle/username
3 participants