-
Notifications
You must be signed in to change notification settings - Fork 425
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
AC-625: Check if newly created provider is similar to an existing one #613
Conversation
Codecov Report
@@ Coverage Diff @@
## master #613 +/- ##
=========================================
- Coverage 14.31% 14.3% -0.01%
=========================================
Files 194 195 +1
Lines 9028 9093 +65
Branches 785 790 +5
=========================================
+ Hits 1292 1301 +9
- Misses 7657 7713 +56
Partials 79 79
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @deepak140596 . Can you add a box for each provider row item in this dialog? Use a background color from color.xml
res.
Also, address my other comments.
...org/openmrs/mobile/activities/providermanagerdashboard/addprovider/AddProviderPresenter.java
Show resolved
Hide resolved
...org/openmrs/mobile/activities/providermanagerdashboard/ProviderManagerDashboardFragment.java
Show resolved
Hide resolved
...org/openmrs/mobile/activities/providermanagerdashboard/ProviderManagerDashboardFragment.java
Outdated
Show resolved
Hide resolved
.../mobile/activities/providermanagerdashboard/ProviderManagerDashboardRecyclerViewAdapter.java
Outdated
Show resolved
Hide resolved
.../mobile/activities/providermanagerdashboard/ProviderManagerDashboardRecyclerViewAdapter.java
Outdated
Show resolved
Hide resolved
.../org/openmrs/mobile/activities/providermanagerdashboard/addprovider/AddProviderFragment.java
Outdated
Show resolved
Hide resolved
.../org/openmrs/mobile/activities/providermanagerdashboard/addprovider/AddProviderFragment.java
Outdated
Show resolved
Hide resolved
|
||
// TODO open provider dashboard for clicked provider | ||
holder.providerDetailsCL.setOnClickListener(v -> { | ||
// Action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Go ahead and write this implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will open the Provider-Patient relationship dashboard which will be implemented next. Currently we don't have provider dashboard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, you're right. @deepak140596 file up a new issue for this and ping me there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually AC-624 addresses this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deepak140596 I was referring to creating the provider dashboard. I went ahead and created the issue, now it's ready for work :)
...ile/activities/providermanagerdashboard/addprovider/MatchingProviderRecyclerViewAdapter.java
Outdated
Show resolved
Hide resolved
@f4ww4z , please review the changes. Also the builds have passed. |
@deepak140596 that kind of stroked outline is used for input fields in the app, so we can't use it here. @deepak140596 See the list view here. Please change the similar providers dialog to be like that. Make sure to center the view in the box. |
@f4ww4z , as both the CardView and AlertDialog have the same white background as default, I changed the CardView's background as light shade of grey to distinguish between background and foreground. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deepak140596 The weight of the card view is too much. A white color is fine, no need to change it. Follow this style, it will look much better.
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="#EBEAEA"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you see color.xml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed this part of the code as we are using the default color. Also do I need to remove the Card View?
@f4ww4z ,with white color, the look will be like this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @deepak140596 , now the dialog looks materialized.
Description of what I changed
Issue I worked on
JIRA Issue: https://issues.openmrs.org/browse/AC-625
Checklist: I completed these to help reviewers :)
(the number above, next to the 'Commits' tab is 1).
existing code that was well tested you do not have to add tests)