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

feat: fetch & show notes for client and group, fixes #543 #557

Merged
merged 1 commit into from
Mar 18, 2017

Conversation

rahulbabbar1
Copy link
Contributor

@rahulbabbar1 rahulbabbar1 commented Mar 5, 2017

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the unit tests with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

Added option to show Notes of the Client and group in the toolbar menu for ClientDetailsFragment and GroupDetailsFragment.

1
2
3
4

@@ -54,6 +55,7 @@
private static StaffService staffApi;
private static SurveyService surveyApi;
private static RunReportsService runreportsService;
private static NoteItemService noteItemService;
Copy link
Member

Choose a reason for hiding this comment

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

Use Proper Naming convention. This should be like NoteService

* Created by rahul on 4/3/17.
*/

public class NoteItemAdapter extends RecyclerView.Adapter<NoteItemAdapter.ViewHolder> {
Copy link
Member

Choose a reason for hiding this comment

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

Class name should be NoteAdapter

/**
* Created by rahul on 4/3/17.
*/
public class NoteItemFragment extends MifosBaseFragment implements NoteItemMvpView,
Copy link
Member

Choose a reason for hiding this comment

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

This class name should be NoteFragment

RecyclerView rvNote;

@BindView(R.id.progressbar_note)
ProgressBar pbNote;
Copy link
Member

Choose a reason for hiding this comment

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

No need to add the ProgressBar in UI, Use MifosBaseFragment Dynamic ProgressBar.
You can access using the showMifosProgressBar(); and hide by hideMifosProgressBar();

ImageView ivError;

@BindView(R.id.ll_error)
LinearLayout ll_error;
Copy link
Member

Choose a reason for hiding this comment

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

Failed name should be llError

@Override
public void onDestroyView() {
super.onDestroyView();
noteItemPresenter.detachView();
Copy link
Member

Choose a reason for hiding this comment

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

When you will add MifosBaseFragment Progressbar then do not forget to add hideMifosProgressBar(); here.

*/
public class NoteItem extends MifosBaseModel implements Parcelable {

private int id;
Copy link
Member

Choose a reason for hiding this comment

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

Annotate fields with @SerializedName("") and remove private identifier.


void showUserInterface();

void showNoteItem(List<NoteItem> noteItem);
Copy link
Member

Choose a reason for hiding this comment

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

Method name should be showNote(List<NoteItem> noteItem)

@therajanmaurya
Copy link
Member

@rahulbabbar1 Please make the requested changes.

@rahulbabbar1
Copy link
Contributor Author

@therajanmaurya i will fix them soon.

@rahulbabbar1
Copy link
Contributor Author

@therajanmaurya I have fixed the requested changes. Please check.

@therajanmaurya
Copy link
Member

Good Work 👍

@therajanmaurya therajanmaurya merged commit 2379c32 into openMF:master Mar 18, 2017
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.

2 participants