Skip to content

POI editor: hide Attributes tab for pending objects#6

Closed
tordans wants to merge 1 commit into
masterfrom
cursor/poi-hide-attributes-pending-5a90
Closed

POI editor: hide Attributes tab for pending objects#6
tordans wants to merge 1 commit into
masterfrom
cursor/poi-hide-attributes-pending-5a90

Conversation

@tordans
Copy link
Copy Markdown
Owner

@tordans tordans commented May 30, 2026

Superseded

This draft is closed. The same Attributes-tab fix for pending/local geometry is merged into PR #8 along with:

  • All Tags preset header tap targets (title → Common Tags, chevron → feature picker)
  • POITabBarControllerTestCase unit tests (ported from this PR)

Please review and test via PR #8 only.


Original description (PR #6)

When editing a pending OSM object (local-only way, area, or relation with a negative ident until upload), the POI editor still showed all three tabs—including Attributes—and could restore UserPrefs.poiTabIndex == 2 onto a controller that only had two tabs.

Implementation used shouldShowAttributesTab / resolvedTabBar and POITabBarControllerTestCase.

Open in Web Open in Cursor 

Treat local-only ways, areas, and relations like new nodes: hide the
Attributes tab and clamp saved poiTabIndex 2 to Common Tags (0).

Add shouldShowAttributesTab, resolvedTabBar, and unit tests for tab
resolution across nil, pending, and uploaded selections.

Co-authored-by: Tobias <t@tobiasjordans.de>
cursor Bot pushed a commit that referenced this pull request May 30, 2026
Expose resolvedTabBar for tab index clamping; adopt in viewDidLoad.
Supersedes duplicate Attributes-tab logic in draft PR #6.

Co-authored-by: Tobias <t@tobiasjordans.de>
@tordans
Copy link
Copy Markdown
Owner Author

tordans commented May 30, 2026

#8

@tordans tordans closed this May 30, 2026
tordans added a commit that referenced this pull request May 31, 2026
Expose resolvedTabBar for tab index clamping; adopt in viewDidLoad.
Supersedes duplicate Attributes-tab logic in draft PR #6.

Co-Authored-By: Tobias <t@tobiasjordans.de>
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.

2 participants