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

Fix #777 : Add Profile Picture Edit Dialog #801

Merged
merged 13 commits into from
Mar 17, 2020

Conversation

aggarwalpulkit596
Copy link
Contributor

Explanation

Fixes #777

Shows a pop-up dialog for Changing/Viewing Profile Picture

Mock Link: https://xd.adobe.com/view/e8aa4198-3940-47f9-514a-f41cc54457f6-9e9b/screen/7fcddeef-4d62-4565-b763-81e89f064a5d/UP-O-Forgot-PIN-Dialog-

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 Can you take a look whether the approach is correct or not

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

The approach looks great.

Also, I know that you were just looking for suggestion but I still did a full review so that you fix those things in next PR along with full implementation and test cases. Thanks.

@rt4914 rt4914 assigned aggarwalpulkit596 and unassigned rt4914 Mar 14, 2020
@aggarwalpulkit596
Copy link
Contributor Author

How do i set the presenter for profileprogressheader binding adapter i couldn't any method through which i can achieve this

@rt4914
Copy link
Contributor

rt4914 commented Mar 15, 2020

How do i set the presenter for profileprogressheader binding adapter i couldn't any method through which i can achieve this

@aggarwalpulkit596 I am actually not able to understand what you mean here.

@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 the thing is that right now my onclick functions are not invoking and that's because i've haven't set the presenter to BindingAdapter of RecyclerView

@rt4914
Copy link
Contributor

rt4914 commented Mar 15, 2020

@rt4914 the thing is that right now my onclick functions are not invoking and that's because i've haven't set the presenter to BindingAdapter of RecyclerView

Actually your viewmodel should be responsible for handling the clicks instead of presenter.

Checkout OngoingStoryViewModel and see how the item click function is getting used in xml file. At the same time, after click that function is handling everything using an interface.

@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 i've pushed some more changes can you please take a look at the implementation

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

@aggarwalpulkit596 Great. Now this is perfect implementation. Thanks.

@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 and for the test do I need to create a separate file for ProfileProgressActivity because there are no test written for that activity

@rt4914
Copy link
Contributor

rt4914 commented Mar 16, 2020

@rt4914 and for the test do I need to create a separate file for ProfileProgressActivity because there are no test written for that activity

You can use ProfileProgressFragmentTest but also, please implement those two functionalities also, what will happen when we select one of the options in the pop-up. We need full functionality in this PR.

@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 do i need to open the gallery intent as well ?

@rt4914
Copy link
Contributor

rt4914 commented Mar 16, 2020

@rt4914 do i need to open the gallery intent as well ?

Yes, but I believe it should be present in one of the files already. Check ProfileEditActivity or AddProfileActivity.

@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 i've added one test and added intent to open Gallery do i need to do anything else

@rt4914
Copy link
Contributor

rt4914 commented Mar 16, 2020

@rt4914 i've added one test and added intent to open Gallery do i need to do anything else

Please finish the PR implementation in which ever way you think is correct because going back and forth on a PR on every step is not possible. Please finish the PR completely from your end and then assign it back to me.

@rt4914 rt4914 removed their assignment Mar 16, 2020
@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 should I create an activity as well to display the profile picture in full screen?

@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 also there is no option to update the profile picture inside ProfileManagementController

@aggarwalpulkit596 aggarwalpulkit596 removed their assignment Mar 16, 2020
@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 also there is no option to update the profile picture inside ProfileManagementController

I will create a PR for that.

Done. Merge your branch with latest develop. Also, i have not tested that function in app module so it you face difficulties, please do let me know.

@rt4914 I've checked avatar change part works fine
Thanks

@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 completed the PR
thank you for assigning this issue a lot of things are now crystal clear about the project

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

Overall good great. Suggested some changes.

@rt4914 rt4914 assigned aggarwalpulkit596 and unassigned rt4914 Mar 16, 2020
@aggarwalpulkit596
Copy link
Contributor Author

@rt4914 i guess this should be the final review

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

Suggested few nit changes

@rt4914 rt4914 assigned aggarwalpulkit596 and unassigned rt4914 Mar 17, 2020
Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

Nit Change continuing from previous review.

@rt4914 rt4914 assigned aggarwalpulkit596 and unassigned rt4914 Mar 17, 2020
Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

This looks good. Thanks a lot.

@rt4914 rt4914 merged commit f415961 into oppia:develop Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lowfi: ProfileProgress - profile picture and edit
2 participants