-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Tracks folder listing is mixed up (Configure map>tracks>menu) #19634
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
Comments
Sotty, double! |
It's a regressiion, and seems separate from and in addition to #19333. |
Apparently, the function "Sort subfolders" on the MyTracks screen also successfully sorts all tracks of 'folder' "Visible on map" and on its associated screen, but not the folder list itself on that screen (neither the folder tabs nor the folder list). |
The folder list on the 'Visible on map' screen and list menu seems always by the folders' time stamp, I find no way currently to sort it alphabetically. |
To fix: The order on Configure Map should be identical to My places screen |
It looks like now we 'reversed' the issue: The function "Sort subfolders" on the MyTracks screen now successfully also sorts all folders on "Visible on map", but now all tracks in the folders on "Visible on map" are always sorted by 'Last modified". |
Technical note
|
Merged to #19683 |
EDIT: Here's a more complete TODO analysis: #19333 (comment). The issue is the sort mode for the "root" ("Tracks") folder in the MyPlaces>Tracks screen: That very sort mode should be also used
In
and when there is no track directly in the root folder (all in subfolders), no sort mode is saved for the Tracks folder (as there is no corresponding tab), and that causes #19333. Also we need to add/correct code to use that sort mode for the tabs and the tab selection dialog to fix this issue. |
@Chumva The connected issue #19333 of sort modes not syncing between the 2 track screens is fixed with PR #19814. To fix this issue here, we now just need to add code to sort the 'Configrue map>Tracks' tabs (and in a separate block the smart folder tabs) according to |
Yes, also we need to make it a universal code, for my places & configure tracks |
PS: Perhaps we can even consider this issue solved for now, I am not sure it makes much sense in practice to offer more tab orders than A-Z and Z-A. The hotfix uses the root folder's sorting also for the tab order, but is currently limited to A-Z and Z-A, defaulting to A-Z for all other root folder sort modes. |
Sorting filter does not work at the Subfolder level (Last modified is always displayed) For example, sorting tracks inside a folder works correctly 2024-11-28.19.09.31.mp4 |
"3dots > sorting subfolders" still shows up as set to "A-Z" (it's "blue", selected), but actual sorting is "last modified" |
Minor issue, we shouldn't highlight item |
Yes, the highlighting in the "Switch folders" list is a mere "suggestion", not the current value.
|
Sorry, poorly expressed. |
To fix:
|
@sonora, It seems, I can't reproduce the second problem (#19634 (comment)).
Maybe you have a different sorting mode selected for the root folder and this caused the problem? |
How sorting works currentlyI decided to describe in a little more detail the principles of track sorting at the moment, to clarify certain points for this feature testing, support and further development. My Places -> TracksOn the
To simplify the process of setting sorting modes for subfolders, you can use the Sort subfolders feature:
Key details:
Smart folders features related to sortingSmart Folders have specific features:
Sorting Smart Folders
Configure Map -> TracksThe Key Features:
Display tabs as a bottom sheetIt is also possible to view tabs as a dialog:
Automatically update tabs order after new sort mode selected for "Tracks" tabIt is important to note that the order of tabs on the |
Further TasksDuring working on fixes for this issue and related, several another issues were discovered that are not critical for the current task but require separate consideration and, potentially, fixes within other tasks. These notes are documented here to avoid losing them: Saving sort mode in "Selection mode" (My Places -> Tracks)On the Temporary sorting on the track selection screenOn the track selection screen (e.g., when choosing "Follow Track"), it is possible to select a sorting mode for specific folders. Duplicate folder names in "Configure Map -> Tracks"Due to the possibility of overlapping names for subfolders and their parent folders, duplicate items may appear in the top tab menu and in the "Switch folder" dialog. Potential Solution:
|
@nazar-kutz , @Chumva , @vshcherb Thanks for the explanation and actions! But something is still not right, let me summarize once again and demonstrate with screenshots. I have highlighted the issues in yellow. I have set "A-Z" for all folders and all subfolders on the My Tracks screen! Case 1, actual folder structure:
results in
Case 2, actual folder structure:
results in:
Notes:
|
@sonora, thank you for your comments. It appears that the first case is functioning as intended, since the Regarding the second case, I agree that it would be better to display the full relative path, at least in the "Switch folder" dialog. This issue is also mentioned here under the heading "Duplicate folder names in |
@nazar-kutz Let's re-open this to fix
ok? I seen no reason why we would not use the full sub-path from the tracks root folder for the "A-Z" sorting, I guess everything else produces weird effects. |
@sonora please open separate issue, this was fixed in 4.9 and will be no more fixes in 4.9 related to this issue |
Also it's hard to follow already this issue |
When moving a track (my places > any track folder > 3dots of the track > move) the appearing folder list still is mixed up ("tracks" is the first folder in this list, "imported" and "rec" are the last ones all the way down) Osmand +4.9.10, Android 13 |
Description
The track folders are not listed aphabetical anymore, but mixed up
Steps to reproduce
go to "configure map / tracks / folder menue"
Actual result
after changing some folders names the track folders are not in alphabetical order anymore
(but in "my places / tracks" the listing is correct)
Expected result
keep them in order
Your Environment (required)
OsmAnd Version: +4.7.10
Android/iOS version: 13
Device model: S20+
The text was updated successfully, but these errors were encountered: