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

Feedback for Drop-In UI #383

Merged
merged 31 commits into from
Oct 28, 2017
Merged

Feedback for Drop-In UI #383

merged 31 commits into from
Oct 28, 2017

Conversation

danesfeder
Copy link
Contributor

@danesfeder danesfeder commented Oct 17, 2017

Adds a bottomsheet fragment for showing feedback UI during navigation:

ezgif com-video-to-gif

Todo:

  • Support drawable colors for < API 21
  • Add actual telem events
  • Add updated icons
  • Route countdown instead of up
  • Add button to show UI
  • javadoc

cc: @ericrwolfe

@danesfeder danesfeder added the feature New feature request. label Oct 17, 2017
@danesfeder danesfeder self-assigned this Oct 17, 2017
@danesfeder danesfeder added this to the v0.7.0 milestone Oct 17, 2017
@danesfeder
Copy link
Contributor Author

danesfeder commented Oct 18, 2017

@cammace Once #392 lands, I can hook up the method to the UI - also blocked by design for new icons

@mapbox mapbox deleted a comment from danesfeder Oct 19, 2017
danesfeder and others added 12 commits October 19, 2017 18:28
…avigation-android into dan-bottomsheet-feedback
…avigation-android into dan-bottomsheet-feedback
* Method Creation

- started method creation for handling feedback events
- need to test reroute solution and move on to update and cancel functionality

* Add feedback types

* Update + Cancel

- added functionality for update and cancel methods
- still needs testing and tweaking

* Tweak code to match reroute

- code now matches how reroute functions
- may add handling of multiple feedback events at once later in the system

* Checkstyle fix from conflict resolution

- fixed sisngle line checkstyle issue

* Fix merge conflict

FeedbackEvent feedbackEvent = new FeedbackEvent(feedbackEventSessionState, feedbackSource);
// TODO set feedback type and description from the parameters based
// TODO - note: these should use default values if the values passed are empty
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Default for feedbackType is FEEDBACK_TYPE_GENERAL and description is just empty String.

- renamed method
- added feedback location collect to onLocation listener
- created new methods to handle updating feedback and reroute queues
- change from using Location in updateFeedbackQueue and updateRerouteQueue to using a Ringbuffer
FeedbackEvent feedbackEvent = iterator.next();
if (feedbackEvent.getSessionState().eventLocation() != null
&& feedbackEvent.getSessionState().eventLocation().equals(locationBuffer.peekFirst())
|| TimeUtils.dateDiff(feedbackEvent.getSessionState().rerouteDate(), new Date(), TimeUnit.SECONDS)
Copy link
Contributor Author

@danesfeder danesfeder Oct 23, 2017

Choose a reason for hiding this comment

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

Should we be checking the rerouteDate() here?

electrostat and others added 7 commits October 23, 2017 18:07
- change sessionstate method name to match variable
- add feedbackevent to queue
- update reroute date when creating sessionstate
- make test data timestamps the current time for the events
- use sessionstate.eventLocation to store location at time fo feedback event trigger
- force set of feedback created to event trigger
- tested multiple events
- send feedbackID to feedbackevent creation
- obtain and send vendorID as User ID for feedbackevents
- set isMocked to appropriate setting based on conditions for feedbackevents
@danesfeder danesfeder merged commit cc9eef8 into master Oct 28, 2017
@danesfeder danesfeder deleted the dan-bottomsheet-feedback branch October 28, 2017 01:42
Grsmto pushed a commit to Grsmto/mapbox-navigation-android that referenced this pull request Oct 30, 2017
…android into fix-build

* 'master' of https://github.com/mapbox/mapbox-navigation-android:
  Fixes issue with bearing values not matching the amount of coordinates passed with the new route request (mapbox#435)
  Feedback for Drop-In UI (mapbox#383)
  Directions List Dropdown (mapbox#415)
  fixed location object in snapToRoute (mapbox#434)
  add location engine class name as parameter of the different nav events builder methods (mapbox#401)
  Dynamic reroute tolerance method (mapbox#428)
  Replace maneuver arrows and lanes (mapbox#362)

# Conflicts:
#	libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationMetricsWrapper.java
@danesfeder danesfeder mentioned this pull request Oct 30, 2017
@danesfeder danesfeder mentioned this pull request Nov 13, 2017
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants