Skip to content

Preserve POI type search until attribute editor closes#1

Closed
tordans wants to merge 2800 commits into
masterfrom
cursor/preserve-feature-search-until-dismiss-6778
Closed

Preserve POI type search until attribute editor closes#1
tordans wants to merge 2800 commits into
masterfrom
cursor/preserve-feature-search-until-dismiss-6778

Conversation

@tordans
Copy link
Copy Markdown
Owner

@tordans tordans commented May 15, 2026

Summary

When choosing a feature type from search, returning to the tags screen after a mistaken pick previously left the type picker with an empty search field. The search query is now kept for the whole time the POI attribute editor (tab bar modal) stays open, and is cleared only when that modal is dismissed (save, cancel, interactive dismiss, etc.).

Implementation

  • POIFeaturePickerViewController: store the current search string in a private static while the user edits; restore it in viewWillAppear and reuse a single refreshSearchResults helper from searchBar(_:textDidChange:).
  • POITabBarController: clear the stored string in viewWillDisappear when the controller is being dismissed or removed from its parent.

The system search field clear control still clears the text through the existing delegate path.

Testing

Manually tested with Xcode Simmulator:

gomap-search.min.mov

bryceco and others added 30 commits January 9, 2026 12:45
Currently translated at 100.0% (762 of 762 strings)

Translation: Go Map!!/App
Translate-URL: https://hosted.weblate.org/projects/go-map/app/de/
dalgali and others added 26 commits May 2, 2026 18:09
Currently translated at 33.2% (262 of 788 strings)

Translation: Go Map!!/App
Translate-URL: https://hosted.weblate.org/projects/go-map/app/tr/
Currently translated at 99.3% (761 of 766 strings)

Translation: Go Map!!/App
Translate-URL: https://hosted.weblate.org/projects/go-map/app/zh_Hans/
Currently translated at 99.8% (765 of 766 strings)

Translation: Go Map!!/App
Translate-URL: https://hosted.weblate.org/projects/go-map/app/id/
Currently translated at 51.6% (407 of 788 strings)

Translation: Go Map!!/App
Translate-URL: https://hosted.weblate.org/projects/go-map/app/tr/
Currently translated at 98.2% (774 of 788 strings)

Translation: Go Map!!/App
Translate-URL: https://hosted.weblate.org/projects/go-map/app/tr/
Currently translated at 99.3% (783 of 788 strings)

Translation: Go Map!!/App
Translate-URL: https://hosted.weblate.org/projects/go-map/app/tr/
Currently translated at 100.0% (788 of 788 strings)

Translation: Go Map!!/App
Translate-URL: https://hosted.weblate.org/projects/go-map/app/tr/
…licit seconds is missing. Also adds additional aliases for prime and double-prime marks.
Keep the feature picker search query in memory while the POI tab bar
modal is open so returning from a mistaken selection does not clear it.
Clear the stored query when the modal is dismissed (save, cancel, swipe,
or equivalent). The search field clear control still resets the query
via the existing text-change path.

Co-Authored-By: Tobias <t@tobiasjordans.de>
@tordans tordans force-pushed the cursor/preserve-feature-search-until-dismiss-6778 branch from 9a8de50 to f1acb64 Compare May 30, 2026 15:18
@tordans tordans marked this pull request as ready for review May 30, 2026 15:34
@tordans
Copy link
Copy Markdown
Owner Author

tordans commented May 30, 2026

bryceco#953

@tordans tordans closed this May 30, 2026
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.