Skip to content

Show dynamic client registration filter only when relevant - #240

Merged
jalexw merged 1 commit into
mainfrom
claude/affectionate-noether-vqkx44
Sep 27, 2026
Merged

jalexw merged 1 commit into
mainfrom
claude/affectionate-noether-vqkx44

Conversation

@jalexw

@jalexw jalexw commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Conditionally display the "Dynamic registration" filter on the apps page based on whether dynamic client registration is enabled on the deployment and whether there are any dynamically registered apps to display.

Changes

  • apps/page.tsx: Added server-side preloading of the isDynamicClientRegistrationEnabled setting (only for admins, since non-admins cannot see dynamically registered clients)
  • apps_page_view.tsx:
    • Added dynamic_client_registration_enabled prop to track the server setting
    • Implemented logic to show the "Dynamic registration" filter only when:
      • There are existing dynamically registered apps to display, OR
      • The user is an admin AND dynamic client registration is enabled (allowing them to see the filter for potential future registrations)
    • Updated the filter visibility from a simple admin check to the new conditional logic

Implementation Details

  • The setting is only fetched for admins since getUserAccessLevelForOwnership() restricts dynamic client registration visibility to global admins only
  • Non-admins receive a default value of false without making the async call
  • Error handling logs failures but defaults to false, ensuring the filter is still offered when dynamically registered apps exist (graceful degradation)
  • Version bumped to 0.47.1

https://claude.ai/code/session_01A8Vv7kg345b39kDHsPM1qw

…n it can never match

The filter is now offered only while dynamically registered apps are
listed, or (for admins) while the allow_dynamic_client_registration
server setting is on. With registration disabled and no such apps it
could only ever show an empty list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A8Vv7kg345b39kDHsPM1qw
@jalexw jalexw self-assigned this Sep 27, 2026
@jalexw
jalexw merged commit 7e1e104 into main Sep 27, 2026
55 checks passed
@jalexw
jalexw deleted the claude/affectionate-noether-vqkx44 branch September 27, 2026 20:36
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