Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide the remaining steps when user is on final step #3729

Merged
merged 3 commits into from Feb 11, 2022

Conversation

ShanMa1991
Copy link
Contributor

@ShanMa1991 ShanMa1991 commented Feb 8, 2022

Description

This Pr is to fix #2015 to hide the remaining steps when user is on final step.

Implementation

When user arrives on final step, TopBannerViewController would dismiss the stepsViewController and change the instructionsBannerView.showStepIndicator to false. And the step indicator of the instruction banner would be hidden, the swiping and tapping gestures wouldn't work.

And if the mobile is in the previewing mode, the previewing process would stop. If the mobile is displaying the remaining steps in pull-down menu, the pull-down table would be dismissed.

Screenshots or Gifs

When in final step, the indicator view would be hidden, swiping and taping gestures wouldn't trigger the remaining steps displaying.
finalStep

@ShanMa1991 ShanMa1991 added the UI Work related to visual components, Android Auto, Camera, 3D, voice, etc. label Feb 8, 2022
@ShanMa1991 ShanMa1991 added this to the v2.3 milestone Feb 8, 2022
@ShanMa1991 ShanMa1991 self-assigned this Feb 8, 2022
@ShanMa1991 ShanMa1991 requested a review from a team February 8, 2022 21:17
@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxCoreNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxCoreNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxCoreNavigation

@mapbox-github-ci-issues-public-1

Breaking Changes in MapboxNavigation

Breaking API Changes

NextBannerView

  • removed method: update(for:) in NextBannerView

InstructionsCardContainerViewDelegate

  • modified method: secondaryLabel(_:willPresent:as:) in InstructionsCardContainerViewDelegate
    Type of change: key.doc.result_discussion
    From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
    To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
  • modified method: primaryLabel(_:willPresent:as:) in InstructionsCardContainerViewDelegate
    Type of change: key.doc.result_discussion
    From: [["Para": optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]
    To: [["Para": Optionally, a customized NSAttributedString that will be presented instead of the default, or if nil, the default behavior will be used.]]

LanesView

  • removed method: update(for:) in LanesView

Copy link
Contributor

@bamx23 bamx23 left a comment

Choose a reason for hiding this comment

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

It would be great to add a CHANGELOG line

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxCoreNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxCoreNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxCoreNavigation

@mapbox-github-ci-issues-public-1

No breaking changes detected in MapboxNavigation

@ShanMa1991 ShanMa1991 merged commit 5951b69 into main Feb 11, 2022
@ShanMa1991 ShanMa1991 deleted the shan/final-step-2015 branch February 11, 2022 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI Work related to visual components, Android Auto, Camera, 3D, voice, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve StepsViewController table UI when user is on final step
2 participants