Settings, admin, the directory and OPML open in the page (#5)

Each is named in the toolbar's menu rather than hidden behind one button
that says "page": reaching Settings here should be no harder than in a
browser. Admin appears only for an admin, because the server sends that
page to admins alone and a link for anyone else leads to a refusal.

Settings, the directory, Popular and OPML are dialogs the page opens by
name rather than routes of their own, so they are reached by calling them
once it has loaded -- prefsModal(), opmlModal(), selectFeed(':directory').
Asking a moment after the load avoids racing the page wiring them up. The
admin page is a real route and just loads. Asking for the screen already
showing runs the script without reloading, or the page would reload to sit
exactly where it already was.

This is a decision as much as a change, and worth writing down: the goal
was never a native app with no web view in it. These screens are
form-heavy, rarely opened, admin-gated in places, and they work. Rewriting
them would have been the largest part of the job for the smallest return.

The test opens the menu, chooses Settings, and looks for the page's own
dialog, so a menu that opens the page but not the thing asked for fails
rather than passing. It also found that the menu had no accessibility
label, which it should have had anyway.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-20 09:38:26 -04:00
parent 292941524e
commit 33c3790fe3
6 changed files with 111 additions and 8 deletions

View File

@@ -58,7 +58,7 @@ Set your team under Signing & Capabilities, pick your phone, and run. The projec
## What is native and what is the page
The lists, the player and the car are native. Settings, the admin page, Directory, Popular and
OPML are ipx's own page, opened from the toolbar — they are form-heavy, rarely touched, and they
OPML are ipx's own page, each named in the toolbar's menu rather than hidden behind one button — they are form-heavy, rarely touched, and they
already work. An item's show notes will stay HTML too, since they are feed-supplied and sanitized
server-side and there is no good native renderer for them.