Skip to content

Conversation

SarahSoutoul
Copy link
Contributor

@SarahSoutoul SarahSoutoul commented Oct 2, 2025

Description

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:

Summary by CodeRabbit

  • Documentation
    • Updated internal links in generated reference pages so “Set Active Params” and “Sign In” now point to the correct JavaScript documentation.
    • Expanded link mapping to cover these pages, reducing broken or misdirected references across the docs.
    • Improves consistency and reliability of cross-links within the documentation.

@SarahSoutoul SarahSoutoul self-assigned this Oct 2, 2025
Copy link

changeset-bot bot commented Oct 2, 2025

⚠️ No Changeset found

Latest commit: 22d7bb9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

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

Click here to learn what changesets are, and how to add one.

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

Copy link

vercel bot commented Oct 2, 2025

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

Project Deployment Preview Comments Updated (UTC)
clerk-js-sandbox Ready Ready Preview Comment Oct 2, 2025 7:06pm

Copy link
Contributor

coderabbitai bot commented Oct 2, 2025

Walkthrough

Added two link replacement mappings to LINK_REPLACEMENTS in .typedoc/custom-plugin.mjs to expand relative link rewrites. No other logic or control flow changes.

Changes

Cohort / File(s) Summary of Changes
Typedoc plugin link replacements
./.typedoc/custom-plugin.mjs
Added two entries to LINK_REPLACEMENTS: ('set-active-params', '/docs/reference/javascript/types/set-active-params') and ('sign-in-resource', '/docs/reference/javascript/sign-in'); no other logic changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

I twitch my whiskers, links align,
Two fresh paths in docs now shine.
Hop-hop through refs, so neat, concise—
Set-active-params, sign-in nice.
In clovered code, I softly cheer:
“Mapped and replaced—no bugs to fear!” 🐇✨

Pre-merge checks and finishing touches

❌ Failed checks
Check name Status Explanation Resolution
Title Check ⚠️ Warning The title succinctly describes the main change—adding link replacements for broken type references in the documentation—using clear and specific language without extraneous details, making it easy to understand the core update at a glance. No changes are needed; the title is clear, concise, and accurately reflects the primary purpose of the pull request.
Docstring Coverage ⚠️ Warning No functions found in the changes. Docstring coverage check skipped.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit's high-level summary is enabled.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ss/fix-broken-types

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 04cba7d and 22d7bb9.

📒 Files selected for processing (1)
  • .typedoc/custom-plugin.mjs (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (29)
  • GitHub Check: Integration Tests (tanstack-react-router, chrome)
  • GitHub Check: Integration Tests (nextjs, chrome, 14)
  • GitHub Check: Integration Tests (react-router, chrome)
  • GitHub Check: Integration Tests (nextjs, chrome, 15)
  • GitHub Check: Integration Tests (billing, chrome)
  • GitHub Check: Integration Tests (custom, chrome)
  • GitHub Check: Integration Tests (sessions, chrome)
  • GitHub Check: Integration Tests (nuxt, chrome)
  • GitHub Check: Integration Tests (astro, chrome)
  • GitHub Check: Integration Tests (machine, chrome)
  • GitHub Check: Integration Tests (tanstack-react-start, chrome)
  • GitHub Check: Integration Tests (expo-web, chrome)
  • GitHub Check: Integration Tests (elements, chrome)
  • GitHub Check: Integration Tests (handshake:staging, chrome)
  • GitHub Check: Integration Tests (vue, chrome)
  • GitHub Check: Integration Tests (express, chrome)
  • GitHub Check: Integration Tests (localhost, chrome)
  • GitHub Check: Integration Tests (sessions:staging, chrome)
  • GitHub Check: Integration Tests (handshake, chrome)
  • GitHub Check: Integration Tests (quickstart, chrome)
  • GitHub Check: Integration Tests (generic, chrome)
  • GitHub Check: Integration Tests (ap-flows, chrome)
  • GitHub Check: Unit Tests (22, **)
  • GitHub Check: Unit Tests (18, --filter=@clerk/astro --filter=@clerk/backend --filter=@clerk/express --filter=@c...
  • GitHub Check: Publish with pkg-pr-new
  • GitHub Check: Static analysis
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: semgrep-cloud-platform/scan

* Ideally this is a temporary solution until every one of these files are published in production and can be linked to.
*/
const LINK_REPLACEMENTS = [
['set-active-params', '/docs/reference/javascript/types/set-active-params'],
Copy link
Contributor

@coderabbitai coderabbitai bot Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

LGTM! Link mappings are consistent with existing patterns.

The new entries follow the established conventions:

  • set-active-params correctly maps to the /types/ path as a type reference
  • sign-in-resource correctly maps without /types/ as a resource reference, consistent with sign-up-resource and user-resource

Please verify that the target documentation pages exist or will be created:

Also applies to: 34-34


🏁 Script executed:

#!/bin/bash
# Description: Verify the target documentation paths exist in the repository

# Search for the target documentation files that should exist for these links
fd -t f "set-active-params" --extension md --extension mdx
fd -t f "sign-in" --extension md --extension mdx | grep -E "(sign-in\.mdx?|sign-in/index\.mdx?)$"

Length of output: 34


Missing documentation targets for new link mappings

The following target pages do not exist in the repo and will result in broken links:

  • /docs/reference/javascript/types/set-active-params
  • /docs/reference/javascript/sign-in

Add these documentation files or update the mappings accordingly.

🤖 Prompt for AI Agents
In .typedoc/custom-plugin.mjs around line 29, the plugin adds link mappings for
'/docs/reference/javascript/types/set-active-params' and
'/docs/reference/javascript/sign-in' but those target pages don't exist, causing
broken links; fix by either creating the missing documentation files at those
paths with appropriate content and frontmatter, or update the mapping array to
point to existing doc paths (or remove the entries) and ensure any build/test
referencing these mappings is updated accordingly so no broken links remain.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs pages are loaded from the clerk/clerk-docs repo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NWylynko, thank you for the clarification! I understand now that the documentation pages are served from the clerk/clerk-docs repository, so the target paths /docs/reference/javascript/types/set-active-params and /docs/reference/javascript/sign-in would exist there rather than in this repository.

My apologies for the confusion. The link mappings in this PR are correctly configured for the multi-repo documentation setup. The generated type documentation from this repo will properly link to the published documentation in the docs repository.


✏️ Learnings added
Learnt from: NWylynko
PR: clerk/javascript#6908
File: .typedoc/custom-plugin.mjs:29-29
Timestamp: 2025-10-02T19:20:07.024Z
Learning: In the clerk/javascript repository, documentation pages referenced in LINK_REPLACEMENTS array in `.typedoc/custom-plugin.mjs` are served from the separate `clerk/clerk-docs` repository, not from the current repository. The type documentation generated in clerk/javascript links to paths that exist in the published docs site.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

Copy link

pkg-pr-new bot commented Oct 2, 2025

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@6908

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@6908

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@6908

@clerk/clerk-expo

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/clerk-react

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

@clerk/react-router

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

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@6908

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@6908

@clerk/types

npm i https://pkg.pr.new/@clerk/types@6908

@clerk/upgrade

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

@clerk/vue

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

commit: 22d7bb9

@SarahSoutoul SarahSoutoul merged commit c4951b4 into main Oct 2, 2025
46 checks passed
@SarahSoutoul SarahSoutoul deleted the ss/fix-broken-types branch October 2, 2025 19:38
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