Skip to content

fix(setup): drop Advanced nav entries for non-listable objects (verifications, device codes)#2266

Merged
os-zhuang merged 1 commit into
mainfrom
fix/setup-advanced-nav-unlistable
Jun 24, 2026
Merged

fix(setup): drop Advanced nav entries for non-listable objects (verifications, device codes)#2266
os-zhuang merged 1 commit into
mainfrom
fix/setup-advanced-nav-unlistable

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

What

Removes two Setup → Advanced menu entries that can never load:

  • Verifications (sys_verification)
  • Device Codes (sys_device_code)

Why

Found by browser-verifying every Setup menu (all 38). Both objects intentionally omit list from apiMethods (sys_verification: get/create/delete; sys_device_code: get/create/update/delete) — they're sensitive, ephemeral secrets that aren't meant to be browsed. But the Advanced group pinned them as generic object/list-view menus, so every visit hit 405 OBJECT_API_METHOD_NOT_ALLOWED and rendered the "无法加载记录 / failed to load" error boundary.

Removed both nav entries (and their now-orphaned zh labels). The objects stay reachable by id (get). Re-introducing a browse menu would require enabling list on the object — a security decision, not a nav change.

Sibling objects in the same group (sys_oauth_application, sys_jwks, sys_account, sys_user_preference) all allow list and render fine.

Verification

Re-built platform-objects, restarted, re-swept: Advanced now shows OAuth 应用 / 签名密钥 / 身份链接 / 用户偏好; the two broken entries are gone; all remaining 36 Setup menus render without error.

Relates to #2246.

Browser-dogfooding every Setup menu found two Advanced entries that always
render "failed to load": Verifications (sys_verification) and Device Codes
(sys_device_code). Both objects intentionally omit `list` from `apiMethods`
(sensitive ephemeral secrets), so the generic list-view menu 405s every time.
Removed both nav entries + their orphaned zh labels; objects stay reachable by
id. (Re-adding a browse menu needs `list` enabled — a security decision.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 24, 2026 5:00am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling size/s labels Jun 24, 2026
@os-zhuang
os-zhuang merged commit 5737261 into main Jun 24, 2026
13 of 15 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/platform-objects.

3 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/concepts/packages.mdx (via @objectstack/platform-objects)
  • content/docs/concepts/setup-app.mdx (via @objectstack/platform-objects)
  • content/docs/guides/packages.mdx (via @objectstack/platform-objects)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant