AC-625: Check if newly created provider is similar to an existing one#613
AC-625: Check if newly created provider is similar to an existing one#613f4ww4z merged 1 commit intoopenmrs:masterfrom
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.
|
...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.
Go ahead and write this implementation.
There was a problem hiding this comment.
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.
I see, you're right. @deepak140596 file up a new issue for this and ping me there.
There was a problem hiding this comment.
@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. |
f4ww4z
left a comment
There was a problem hiding this comment.
@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.
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. |
f4ww4z
left a comment
There was a problem hiding this comment.
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)