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

ui/MapSettings: sort destinations by recent activity #29079

Merged
merged 8 commits into from Aug 27, 2023

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Jul 21, 2023

  1. related ui: sort non-favorite nav destinations by max of api time, device time #29074 . sort by last used time descending.
  2. refactor NavigationRequest to NavManager. Move all params/nav related operations into NavManager. MapSettings is only responsible for UI stuffs. this will also reduce some IO operations.
  3. fix syc issue with param NavDestination

common/params.cc Outdated Show resolved Hide resolved
selfdrive/ui/qt/maps/map_settings.cc Outdated Show resolved Hide resolved
@deanlee deanlee marked this pull request as draft July 21, 2023 20:43
@deanlee deanlee marked this pull request as ready for review July 21, 2023 21:09
@deanlee deanlee force-pushed the ui_map_sort_by_recent branch 4 times, most recently from 4c2278e to d75027c Compare July 23, 2023 21:52
@incognitojam incognitojam merged commit 12073c0 into commaai:master Aug 27, 2023
20 checks passed
@incognitojam
Copy link
Contributor

thanks!

incognitojam added a commit that referenced this pull request Aug 27, 2023
The API now includes "modified" timestamps for saved locations. This is
the time the location was "last modified", and is useful for determining
when the device navigated to a "recent" location.

https://api.comma.ai/#retrieve-saved-locations

Parse and combine this timestamp with the local "last activity" time to
improve location sorting.

Related: #29079
Closes: #29074
@deanlee deanlee deleted the ui_map_sort_by_recent branch August 27, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants