Skip to content

Hide tab menu items when File System API is missing - #5

Merged
sgjholt merged 1 commit into
mainfrom
fix/api-menu-items
Apr 18, 2026
Merged

Hide tab menu items when File System API is missing#5
sgjholt merged 1 commit into
mainfrom
fix/api-menu-items

Conversation

@sgjholt

@sgjholt sgjholt commented Apr 18, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #4 — the connect-screen buttons were correctly disabled but the + tab menu in the top bar still showed "Create new board" and "Open project folder" as clickable items on browsers with partial or no File System Access API support (e.g. Opera Mobile).

  • Added IDs to both tab menu buttons (tab-menu-new, tab-menu-open)
  • Each item is hidden using the same per-API capability check that gates the connect-screen buttons

Test plan

  • Open in Chrome 86+ — both menu items visible and functional
  • Open in Opera Mobile / Firefox — menu items for unsupported APIs are hidden; + button may show an empty or reduced menu

https://claude.ai/code/session_018ZdAC8waAK19WE1ReL9UGc

The connect-screen buttons were correctly disabled but the + tab menu
still showed 'Create new board' and 'Open project folder' as clickable
items on browsers with partial API support (e.g. Opera Mobile).

Added IDs to both tab menu buttons and hide each one using the same
per-API capability check that gates the connect-screen buttons.

https://claude.ai/code/session_018ZdAC8waAK19WE1ReL9UGc
@sgjholt
sgjholt merged commit 4b0ba76 into main Apr 18, 2026
2 checks passed
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