Skip to content

Replace Pulley with a dropdown - #785

Merged
frederoni merged 40 commits into
masterfrom
fred-replace-pulley
Nov 8, 2017
Merged

frederoni merged 40 commits into
masterfrom
fred-replace-pulley

Conversation

@frederoni

@frederoni frederoni commented Nov 2, 2017 •

Copy link
Copy Markdown
Contributor
  • Remove dependency on Pulley
  • Replace the RouteTableViewController with a bottom banner
  • Dropdown list of steps from the top banner
  • Show highway direction next to highway shield
  • Multiple waypoints
  • Show upcoming steps only
  • Show map arrow when previewing step
  • Shift distance in list of steps by -1
  • Preview banner

@bsudekum @ericrwolfe 👀

@frederoni frederoni self-assigned this Nov 2, 2017
@frederoni
frederoni force-pushed the fred-replace-pulley branch from 204134d to a66494b Compare November 3, 2017 21:38
@frederoni

Copy link
Copy Markdown
Contributor Author

Simplifies the storyboard a bit:

screenshot 2017-11-03 23 55 40

@frederoni
frederoni force-pushed the fred-replace-pulley branch from a9d7569 to d2a079e Compare November 6, 2017 17:09
@frederoni

frederoni commented Nov 6, 2017 •

Copy link
Copy Markdown
Contributor Author

Current progress:

Comment thread Cartfile Outdated

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.

Can you also update the podspec?

Comment thread MapboxNavigation/BottomBannerView.swift Outdated

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.

I assume these are placeholders?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, prepareForInterfaceBuilder() is only called when rendering through IB.

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.

Can we add this timer functionality back? It's there for when the user starts a navigation session and then does not move for some time.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The timer just moved to RouteMapViewController. Should be the exact same functionality.

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.

Oh I see it here now.

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.

Is this configurable?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch, will add a separate view for this.

@frederoni

frederoni commented Nov 6, 2017 •

Copy link
Copy Markdown
Contributor Author

There are a few breaking changes here. Stylable components that were being used by RouteTableViewController do not exist anymore.

The NavigationViewController.navigationDelegate has been renamed to just delegate (previously clashed with Pulley.delegate).

@frederoni

Copy link
Copy Markdown
Contributor Author

Looks like the iPhone X changes regressed here. Probably in c3324c7

@bsudekum how did you solve the excessive margin for logo and attribution?
screenshot 2017-11-06 21 46 11

@bsudekum

bsudekum commented Nov 6, 2017

Copy link
Copy Markdown
Contributor

@frederoni hmmm I'm not seeing that:

image

@frederoni

Copy link
Copy Markdown
Contributor Author

👆 looks like a commit from yesterday. A merge conflict in the storyboard resulted in the floating buttons moving back to the left side.

Comment thread MapboxNavigation.podspec Outdated

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.

@frederoni
frederoni force-pushed the fred-replace-pulley branch 2 times, most recently from 8dcf857 to d0717de Compare November 7, 2017 10:12
@bsudekum

bsudekum commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

@frederoni can we remove past and current steps from the dropdown list?

Includes current step:

simulator screen shot - iphone x - 2017-11-07 at 09 51 52

Includes past steps:
simulator screen shot - iphone x - 2017-11-07 at 09 52 12

@bsudekum

bsudekum commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

@frederoni did we remove the ability to swipe with this change?

@bsudekum

bsudekum commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

@frederoni what do you think about some indicator on how to close this view? Two examples here: arrow in upper right, Close button at bottom.
simulator_screen_shot_-iphone_x-_2017-11-07_at_09_52_12

@ericrwolfe

ericrwolfe commented Nov 7, 2017 •

Copy link
Copy Markdown
Contributor

@frederoni what do you think about some indicator on how to close this view? Two examples here: arrow in upper right, Close button at bottom.

Would love to test this with @v8c3 once the UI lands. I imagine most people who find this with a tap will also be able to find their way out (everything on this screen would be a tap target and close it out).

Tapping on a list item should take you to the maneuver preview, and would show the "Resume" button as we show with overview to quickly jump back to turn-by-turn. However, we could revisit this in a second pass.

Discoverability of this menu in the first place is a different issue we should user test, but would at least be a significant improvement over swiping left/right and swiping the summary view from the bottom. @v8c3 tagging you as something we should user test :).

cc @danesfeder

@frederoni

Copy link
Copy Markdown
Contributor Author

can we remove past and current steps from the dropdown list?

👍

did we remove the ability to swipe with this change?

Yes

Tapping on a list item should take you to the maneuver preview, and would show the "Resume" button as we show with overview to quickly jump back to turn-by-turn.

This is already the case.

@bsudekum

bsudekum commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

Would love to test this with @v8c3 once the UI lands. I imagine most people who find this with a tap will also be able to find their way out (everything on this screen would be a tap target and close it out).

Per voice with @ericrwolfe, this is not an acceptable answer. We know we need some sort of indicator right now since it's a very confining UI once in it. We need to have some sort of exit button before merging this.

Tapping on a list item should take you to the maneuver preview, and would show the "Resume" button as we show with overview to quickly jump back to turn-by-turn.

I'm not actually seeing this.

@frederoni

Copy link
Copy Markdown
Contributor Author

Tapping on a list item should take you to the maneuver preview, and would show the "Resume" button as we show with overview to quickly jump back to turn-by-turn.

I'm not actually seeing this.

Landed in the second last commit today a8a4a54 though it only moves the camera to the maneuver. The banner still shows the current step. Is this the correct behavior?

@ericrwolfe

Copy link
Copy Markdown
Contributor

Landed in the second last commit today a8a4a54 though it only moves the camera to the maneuver. The banner still shows the current step. Is this the correct behavior?

@frederoni The banner should also change to the future maneuver, with a darkened background that matches the list item as a subtle reminder this is a future maneuver.

@ericrwolfe

Copy link
Copy Markdown
Contributor

@frederoni The distances for each of the list items should also be the distance up to the maneuver, rather than the distance after the maneuver. Basically the distances should all be shifted up by one.

So, for example, in this screenshot, the arrival at Linda Ann Place should show "150ft" instead of "0ft":
list

@bsudekum

bsudekum commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

Landed in the second last commit today a8a4a54 though it only moves the camera to the maneuver. The banner still shows the current step. Is this the correct behavior?

👍, I forgot to pull, seeing it now. Can you call the showArrow() function after selecting? Hitting resume should then update the arrow back to the current step.

@bsudekum

bsudekum commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

@frederoni looking good. Now that we have safe areas in, would it be possible to have the close button respect them? It's a little close to the iphone x home button thing

image

@bsudekum

bsudekum commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

Perhaps for the final item it could read:

turn icon | primary text = You have arrived 
no distance if zero | secondary text = waypoint name || step.name

image

@frederoni
frederoni force-pushed the fred-replace-pulley branch from 8acbaf9 to 175937e Compare November 8, 2017 14:24
@frederoni

Copy link
Copy Markdown
Contributor Author

this PR is ready for another review 👀

@frederoni
frederoni force-pushed the fred-replace-pulley branch from 59f5309 to 6f612ea Compare November 8, 2017 15:36
@bsudekum

bsudekum commented Nov 8, 2017

Copy link
Copy Markdown
Contributor

@frederoni I'm seeing something strange, it looks like overlapping views?

gif3

@bsudekum

bsudekum commented Nov 8, 2017

Copy link
Copy Markdown
Contributor

If the dropdown is down, and the user is rerouted, we should dismiss the view.

@bsudekum

bsudekum commented Nov 8, 2017 •

Copy link
Copy Markdown
Contributor

It looks like we're showing the current step name instead of the upcoming step name after pressing resume, actually this happens on start:

simulator screen shot - iphone x - 2017-11-08 at 12 07 59

@bsudekum bsudekum 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.

🚢

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.

3 participants