Skip to content

fix(repo): link the UserSearchMetadataFilter type to its docs page - #10966

Merged
dmoerner merged 1 commit into
mainfrom
daniel/typedoc-user-search-metadata-filter-link
Nov 23, 2026
Merged

dmoerner merged 1 commit into
mainfrom
daniel/typedoc-user-search-metadata-filter-link

Conversation

@dmoerner

Copy link
Copy Markdown
Contributor

Description

The generated reference for clerkClient.users.searchUsers() links the metadata parameter's type, UserSearchMetadataFilter, to a relative .mdx path. On the docs site that link 404s: https://clerk.com/docs/reference/backend/user/search-users is about to ship with it broken.

Generated links are rewritten to docs URLs by LINK_REPLACEMENTS in .typedoc/custom-plugin.mjs, and the type added in #10880 has no entry. This adds one, pointing at the type's new page in clerk/clerk#3917, with a test case that uses the link exactly as the generated method page has it.

No package changes, so the changeset is empty. After this merges, the TypeDoc sync in clerk/clerk can be run by hand against the merge commit, with no release needed.

The new test case passes locally (vitest run __tests__/relative-link-replacements.test.ts, 19 tests). The full pnpm test:typedoc was not run locally; CI runs it.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

🤖 Generated with Claude Code

The generated reference for `searchUsers()` links its `metadata` parameter's type to a relative `.mdx` path, which 404s on the docs site. `LINK_REPLACEMENTS` had no entry for the type added in #10880.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Nov 23, 2026 10:41pm UTC
mosaic-docs Ready Ready Preview Nov 23, 2026 10:41pm UTC
swingset Ready Ready Preview Nov 23, 2026 10:41pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 017db6f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@blacksmith-sh

blacksmith-sh Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Matches UserSearchMetadataFilter link resolves to docs URL

Real typedoc generation: base plugin leaves ../user-search-metadata-filter.mdx; head emits /docs/reference/backend/types/backend-user-search-metadata-filter.

Merge-base

Relative mdx link

This PR 017db6f2

Docs URL link

Proof on 017db6f2 · Did Proof get it right? Yes · No

View full Proof report · React 👎 or comment @codesmith dismiss this proof to dismiss

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The TypeDoc plugin now maps the user-search metadata filter link to its Backend reference page. A test checks the rewritten destination for a nested relative link. The changes also add a changeset file with empty YAML front matter.

Estimated code review effort: 2 (Simple) | ~8 minutes

Suggested reviewers: sarahsoutoul, manovotny

Merge Risk: Minimal · up to 017db

This adds a docs link mapping for the user search metadata filter type and a test for it. Impact is limited to generated reference links, and no merge-blocking risk is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a fix that links the UserSearchMetadataFilter type to its docs page. The raw summary shows a LINK_REPLACEMENTS entry in .typedoc/custom-plugin.mjs, a matching test cas…
Description check Passed The description states the broken generated link for clerkClient.users.searchUsers(), the missing LINK_REPLACEMENTS entry for the type added in #10880, the new entry and test case, the local test run,…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a fix that links the UserSearchMetadataFilter type to its docs page. The raw summary shows a LINK_REPLACEMENTS entry in .typedoc/custom-plugin.mjs, a matching test case, and an empty changeset, all of which fit the title. The title is 66 characters, within a typical length.

Full details: Description check

Explanation

The description states the broken generated link for clerkClient.users.searchUsers(), the missing LINK_REPLACEMENTS entry for the type added in #10880, the new entry and test case, the local test run, and the empty changeset. This matches the changeset files in the raw summary.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: This review skipped 6 repositories. Cross-repository analysis may be incomplete. Check linked repository access and settings.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: clerk/javascript
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 461ebb2
  • Layers: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: f6bafce7-1013-4888-98db-668f171e8c7d
Commits

Reviewing files that changed from the base of the PR and between 461ebb2 and 017db6f.

Files selected for processing: 3

  • .changeset/typedoc-user-search-metadata-filter-link.md
  • .typedoc/__tests__/relative-link-replacements.test.ts
  • .typedoc/custom-plugin.mjs
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@10966

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@10966

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@10966

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@10966

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@10966

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@10966

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@10966

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@10966

@clerk/expo-biometrics

npm i https://pkg.pr.new/@clerk/expo-biometrics@10966

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@10966

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@10966

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@10966

@clerk/express

npm i https://pkg.pr.new/@clerk/express@10966

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@10966

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@10966

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@10966

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@10966

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@10966

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@10966

@clerk/react

npm i https://pkg.pr.new/@clerk/react@10966

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@10966

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@10966

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@10966

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@10966

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@10966

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@10966

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@10966

commit: 017db6f

@dmoerner
dmoerner enabled auto-merge (squash) November 23, 2026 22:45
@dmoerner
dmoerner merged commit cd37692 into main Nov 23, 2026
59 checks passed
@dmoerner
dmoerner deleted the daniel/typedoc-user-search-metadata-filter-link branch November 23, 2026 22:48

This branch was successfully deployed

2 active deployments
Preview – swingset — 017db6f2 Deployed Nov 23, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 017db6f2 Deployed Nov 23, 2026 by vercel[bot]
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.

4 participants