Repository navigation
[NMA-1036] (Explore Dash) Physical search results - #817
Conversation
Replaced callback based approach in the sync worker with more object oriented one
fix: the issue with BaseDao.clear() method
|
|
||
| if (javaClass.name == destination.className) { | ||
| navController.navigate(directions) | ||
| if (navController.currentDestination is DialogFragmentNavigator.Destination) { |
There was a problem hiding this comment.
Here we need to check that currentDestination is of the correct type, otherwise might cause a crash for the same reason.
| <item name="android:textSize">14sp</item> | ||
| </style> | ||
|
|
||
| <style name="MontserratRegular.MG.15"> |
There was a problem hiding this comment.
Not needed anymore. Some of the screens I did (like "see passphrase" screen) can use the new styles, but there are small inconsistencies with the design system because Ros did them earlier.
| <item name="fontFamily">@font/montserrat_medium</item> | ||
| </style> | ||
|
|
||
| <style name="Body2.SemiBold"> |
There was a problem hiding this comment.
We don't actually have a semibold or bold Body2 in the design system.
| // Maps & Location | ||
| implementation 'com.google.android.gms:play-services-location:18.0.0' | ||
| implementation 'com.google.android.gms:play-services-maps:17.0.1' | ||
| implementation 'com.google.android.gms:play-services-maps:18.0.0' |
There was a problem hiding this comment.
We now use the legacy map renderer, might want to check out the new one.
| android:gravity="center" | ||
| android:text="@string/buy_card_header_text" | ||
| style="@style/Body2.Bold" | ||
| style="@style/Headline4.Bold" |
There was a problem hiding this comment.
We don't actually have Body2.Bold style in the design system. There is no 28sp text style either because Ros did this screen before finishing the typography system, but it's closer to Headline4. We can ask him to fix font sizes on this screen.
| style="@style/Body2" | ||
| android:layout_marginTop="10dp" | ||
| android:paddingTop="2dp" | ||
| android:lineSpacingMultiplier="1.3" |
There was a problem hiding this comment.
line spacing is included in the text style
| // assertEquals(expected, actual) | ||
| // } | ||
| // } | ||
| //} No newline at end of file |
There was a problem hiding this comment.
Tests will be restored in NMA-1079
| ) { | ||
| if (configuration.hasExploreDashLocationDialogBeenShown()) { | ||
| requestLauncher.launch(arrayOf( | ||
| Manifest.permission.ACCESS_COARSE_LOCATION, |
There was a problem hiding this comment.
On Android 12, the user can choose which type of location to provide - coarse or exact (even if we don't target it). If the user chooses coarse location, our app won't work with fine-only request, so we need to consider both options.
| } | ||
| } | ||
|
|
||
| suspend fun getPhysicalResultsCount( |
There was a problem hiding this comment.
As much as I wanted to avoid that, there seems to be no good way to count pagination results without doing another request. The overhead is 10-100 ms depending on the density of the area, so it's not critical.
ClaudeHangui
left a comment
There was a problem hiding this comment.
Fine by me !
great job
Search/filters for the physical results in the Explore Dash feature.
Issue being fixed or feature implemented
Re-design of the existing functionality and the new one such as filters (payment method, radius, etc) and location permission request flow.
Related PR's and Dependencies
Screenshots / Videos
How Has This Been Tested?
Checklist: