Skip to content

[NMA-1036] (Explore Dash) Physical search results - #817

Merged
HashEngineering merged 54 commits into
feature-explore-dashfrom
feature-explore-physical
Nov 18, 2021
Merged

HashEngineering merged 54 commits into
feature-explore-dashfrom
feature-explore-physical

Conversation

@Syn-McJ

@Syn-McJ Syn-McJ commented Nov 16, 2021 •

Copy link
Copy Markdown
Member

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?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

Syn-McJ and others added 30 commits October 22, 2021 11:16
Replaced callback based approach in the sync worker with more object oriented one
fix: the issue with BaseDao.clear() method
@Syn-McJ Syn-McJ self-assigned this Nov 16, 2021

if (javaClass.name == destination.className) {
navController.navigate(directions)
if (navController.currentDestination is DialogFragmentNavigator.Destination) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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">

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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">

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

line spacing is included in the text style

// assertEquals(expected, actual)
// }
// }
//} No newline at end of file

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Tests will be restored in NMA-1079

) {
if (configuration.hasExploreDashLocationDialogBeenShown()) {
requestLauncher.launch(arrayOf(
Manifest.permission.ACCESS_COARSE_LOCATION,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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(

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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 ClaudeHangui left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fine by me !
great job

@HashEngineering HashEngineering left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Excellent

@HashEngineering
HashEngineering merged commit 91011ef into feature-explore-dash Nov 18, 2021
@Syn-McJ
Syn-McJ deleted the feature-explore-physical branch November 19, 2021 04:43
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.

4 participants