Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added exit signs to the instruction banner and refactored instruction loader#1195

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
devotaaabel merged 23 commits intomasterfromdevota-add-master-coordinator
Jan 30, 2019

Conversation

@devotaaabel
Copy link
Contributor

@devotaaabeldevotaaabel commentedAug 6, 2018
edited
Loading

Left to do:

  • Add everything to landscape layouts and deal with rotation
  • Deal with issues with sub-text
  • Test that abbreviations are still working
  • Make InstructionLoader public-friendly by replacing InstructionTextView with TextView
  • Add support for left/right exits

Moved style attributes into separate branch. Will make a PR when this one lands. Issue is here:#1705

I wanted to add more tests but it is difficult with the nature of the image spans, and I'm assuming that's why there weren't any tests for the highway signs. If anyone has any advice on how to unit test, it would be helpful. Otherwise I'm going to leave it out.

Closes#972

@devotaaabeldevotaaabel added ⚠️ DO NOT MERGEPR should not be merged! refactor labelsAug 6, 2018
@devotaaabeldevotaaabel self-assigned thisAug 6, 2018
@devotaaabeldevotaaabelforce-pushed thedevota-add-master-coordinator branch 3 times, most recently from87afe0b toad4c8d4CompareAugust 10, 2018 23:32
@danesfederdanesfeder added this to the0.18.0 milestoneAug 14, 2018
@akitchen
Copy link

Related to#972

@danesfeder
Copy link
Contributor

@devotaaabel are the tests updated here? I see some were removed fromInstructionLoaderTest. Please tag when ready and remove theDO NOT MERGE >Ready for Review thanks!

@devotaaabeldevotaaabel added ✓ ready for review ⚠️ DO NOT MERGEPR should not be merged! and removed ⚠️ DO NOT MERGEPR should not be merged! ✓ ready for review labelsAug 22, 2018
@danesfederdanesfeder modified the milestones:0.18.0,0.19.0Sep 4, 2018
@devotaaabeldevotaaabelforce-pushed thedevota-add-master-coordinator branch fromad4c8d4 tof73829cCompareSeptember 19, 2018 16:47
@akitchenakitchen removed this from the0.19.0 milestoneSep 24, 2018
@devotaaabeldevotaaabelforce-pushed thedevota-add-master-coordinator branch 2 times, most recently from75b6294 to0885230CompareDecember 20, 2018 19:09
@codecov-io
Copy link

codecov-io commentedDec 20, 2018
edited
Loading

Codecov Report

Merging#1195 intomaster willdecrease coverage by0.46%.
The diff coverage is28.57%.

@@             Coverage Diff              @@##             master    #1195      +/-   ##============================================- Coverage     29.32%   28.86%   -0.47%+ Complexity      820      815       -5============================================  Files           203      212       +9       Lines          7924     7993      +69       Branches        619      622       +3     ============================================- Hits           2324     2307      -17- Misses         5379     5468      +89+ Partials        221      218       -3

@devotaaabeldevotaaabelforce-pushed thedevota-add-master-coordinator branch 2 times, most recently fromde73fa7 tod4a7864CompareJanuary 2, 2019 21:52
@devotaaabel
Copy link
ContributorAuthor

@Guardiola31337@danesfeder This is ready for review. I still want to do some more thorough testing. I cleaned up the unit tests and made them a little more useful, but I need help understanding the code cov report, I'm not sure how to see the changes that I made that it's complaining about. I could add tests to the Verifiers and Nodes, but that doesn't seem very useful, but I can do it if we need it for code coverage.

@devotaaabeldevotaaabel changed the titleRefactored to make InstructionLoader more modular in preparation for …Refactored InstructionLoader and added exit signs to the instruction bannerJan 3, 2019
@devotaaabel

This comment has been minimized.

@devotaaabeldevotaaabel changed the titleRefactored InstructionLoader and added exit signs to the instruction bannerAdded exit signs to the instruction banner and refactored instruction loaderJan 3, 2019
@devotaaabeldevotaaabelforce-pushed thedevota-add-master-coordinator branch froma571be1 to8ae2926CompareJanuary 7, 2019 15:29
@devotaaabeldevotaaabelforce-pushed thedevota-add-master-coordinator branch from4d88d8c to21ae19bCompareJanuary 24, 2019 20:20
@devotaaabeldevotaaabel removed the ⚠️ DO NOT MERGEPR should not be merged! labelJan 24, 2019
@danesfederdanesfeder added this to thev0.28.0 milestoneJan 28, 2019
danesfeder
danesfeder previously approved these changesJan 28, 2019
Copy link
Contributor

@danesfederdanesfeder left a comment

Choose a reason for hiding this comment

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

@devotaaabel thanks for addressing the feedback, I have no further comments. We should mark this asSEMVER due to the renaming ofImageCoordinator >ImageCreator. Also can we cut a ticket to track the styling of the exits if that's considered out-of-scope for this PR?

@devotaaabeldevotaaabel added the backwards incompatibleRequires a SEMVER major version change. labelJan 28, 2019
@devotaaabel
Copy link
ContributorAuthor

devotaaabel commentedJan 28, 2019
edited
Loading

Created an issue here#1705 will open another PR after this PR lands. Thanks!

Copy link
Contributor

@Guardiola31337Guardiola31337 left a comment

Choose a reason for hiding this comment

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

This is looking great@devotaaabel

While testing this, I've noticed some weird issues that we need to 👀 before landing this 👇

This seems not abbreviated properly

exit_signs_instruction_loader_ellipsized_issue

Left exit icon not drawn

exit_signs_instruction_loader_left_icon_arrow_missing

I also left some minor comments / questions.


AbbreviationCoordinator() {
this(newTextViewUtils());
AbbreviationCreator(AbbreviationVerifierabbreviationVerifier) {
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed internally, should we remove this constructor? IMO it's not adding any value.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@Guardiola31337 What discussion? Are you talking about the discussion about Dan's PR? If you are, you said that you didn't feel strongly about that either way. I think this is adding the value of not making theInstructionLoader instantiate the hashmap and text utils while still making this testable. It's basically acting as a dependency injection utility method

@Override
BannerComponentNodesetupNode(BannerComponentscomponents,intindex,intstartIndex,String
modifier) {
if (components.type().equals("exit")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Have we thought about extracting these magic numbers i.e."exit","exit-number" and"left" into constants?

@danesfederdanesfeder dismissed theirstale reviewJanuary 29, 2019 20:00

Going to hold on the approval until we do some more field testing.

@Guardiola31337
Copy link
Contributor

Guardiola31337 commentedJan 29, 2019
edited
Loading

I kept testing this locally and I found the following 👀

Pixel XL Android 9

Exit sign loaded intermittently

exit_sign_loaded_ intermittently

Abbreviation issue and hidden secondary banner

abbreviation_and_hidden_secondary_banner

Primary text empty

primary_text_empty

Shield not loaded

shield_not_loaded

Saw the following log trace when ☝️ happened

2019-01-29 15:01:28.654 24575-24575/com.mapbox.services.android.navigation.app E/InstructionTarget: com.squareup.picasso.NetworkRequestHandler$ResponseException: HTTP 403        at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:51)        at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:219)        at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:175)        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)        at java.util.concurrent.FutureTask.run(FutureTask.java:266)        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)        at java.lang.Thread.run(Thread.java:764)        at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:354)

cc@devotaaabel

@devotaaabeldevotaaabelforce-pushed thedevota-add-master-coordinator branch fromf41f0fa tode9a31aCompareJanuary 30, 2019 12:41
@devotaaabeldevotaaabelforce-pushed thedevota-add-master-coordinator branch from20a59cb to92bc66aCompareJanuary 30, 2019 15:41
@devotaaabel
Copy link
ContributorAuthor

Maybe to keep the APIs tightly scoped, we can accept an array of enum that defines the types we want to create for the dev? NodeCreator.TEXT, NodeCreater.SHIELD, etc. - idk just a thought.

@danesfeder So I like this idea, but I'm thinking, let's not do that until there's a need for it, either on our side or a customer request, unless there is one that I'm not aware of. Just to keep it simple for now until there's a need. Let me know what you think.

danesfeder reacted with thumbs up emoji

@Guardiola31337
Copy link
Contributor

After rolling back abbreviations fixes7be09d2 I wasn't able to reproduce the issues found in#1195 (comment) so it seems that was the reason. Per internal discussion we're going to keep discussing on a solution for landscape issues and will follow up in a different PR.

I was able to reproduce theLeft exit icon not drawn#1195 (review) though. Apparently, there's some issue with Android 6.0 and rotating the vector to the left. We've tested and we're going to generate a new left asset to workaround this.

@devotaaabel
Copy link
ContributorAuthor

@Guardiola31337 The left exit android 6.0 fix is pushed

@devotaaabel
Copy link
ContributorAuthor

@Guardiola31337@danesfeder This is ready for re-review, I've addressed all relevant issues

Copy link
Contributor

@danesfederdanesfeder left a comment

Choose a reason for hiding this comment

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

@devotaaabel great work here and thanks for addressing the feedback 👍

akitchen reacted with thumbs up emoji
@devotaaabeldevotaaabelforce-pushed thedevota-add-master-coordinator branch fromef9943b to5f477aeCompareJanuary 30, 2019 19:56
@devotaaabeldevotaaabel merged commit82e63fd intomasterJan 30, 2019
@devotaaabeldevotaaabel deleted the devota-add-master-coordinator branchJanuary 30, 2019 20:37
@danesfederdanesfeder mentioned this pull requestJan 30, 2019
12 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@Guardiola31337Guardiola31337Guardiola31337 left review comments

@danesfederdanesfederdanesfeder approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@devotaaabeldevotaaabel

Labels

backwards incompatibleRequires a SEMVER major version change.

Projects

None yet

Milestone

v0.28.0

Development

Successfully merging this pull request may close these issues.

5 participants

@devotaaabel@akitchen@danesfeder@codecov-io@Guardiola31337

[8]ページ先頭

©2009-2025 Movatter.jp