Skip to content

Conversation

@0xFirekeeper
Copy link
Member

@0xFirekeeper 0xFirekeeper commented Sep 5, 2025

Replaced external 'https://api.thirdweb.com/reference' links with local '/reference' paths across documentation, sidebar, and metadata files for consistency and improved navigation within the portal.

Closes BLD-221


PR-Codex overview

This PR focuses on updating the API reference links throughout the application to use relative paths instead of absolute URLs, enhancing maintainability and consistency.

Detailed summary

  • Updated href properties in various components to use relative paths.
  • Changed documentation links in .mdx files to point to the new relative API reference.
  • Modified generateReferenceUrl function to return relative URLs.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Documentation
    • Updated API Reference links across the site (AI, Contracts, Transactions, Payments, Wallets, Nebula endpoints, Home, and Header) to internal paths (/reference and anchored routes).
  • Bug Fixes
    • Links now navigate within the docs site instead of opening an external domain, improving navigation continuity.
  • Refactor
    • Standardized reference URL handling to consistently use relative routes for a unified in-app experience.

@0xFirekeeper 0xFirekeeper requested review from a team as code owners September 5, 2025 18:57
@linear
Copy link

linear bot commented Sep 5, 2025

@changeset-bot
Copy link

changeset-bot bot commented Sep 5, 2025

⚠️ No Changeset found

Latest commit: f714e5d

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

@vercel
Copy link

vercel bot commented Sep 5, 2025

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

Project Deployment Preview Comments Updated (UTC)
docs-v2 Ready Ready Preview Comment Sep 5, 2025 7:51pm
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
nebula Skipped Skipped Sep 5, 2025 7:51pm
thirdweb_playground Skipped Skipped Sep 5, 2025 7:51pm
thirdweb-www Skipped Skipped Sep 5, 2025 7:51pm
wallet-ui Skipped Skipped Sep 5, 2025 7:51pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 5, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Replaced absolute api.thirdweb.com/reference links with relative /reference routes across portal components, MDX pages, sidebars, Nebula API endpoint metadata, and an OpenAPI helper. Removed BASE_API_URL; no exported signatures changed and only link targets were updated.

Changes

Cohort / File(s) Summary
Header & Home
apps/portal/src/app/Header.tsx, apps/portal/src/app/page.tsx
Updated HTTP API links from https://api.thirdweb.com/reference to /reference.
AI pages & sidebar
apps/portal/src/app/ai/chat/page.mdx, apps/portal/src/app/ai/llm-txt/page.mdx, apps/portal/src/app/ai/sidebar.tsx
Converted API reference links to relative /reference paths (preserving anchors).
Contracts & Wallets sidebars
apps/portal/src/app/contracts/sidebar.tsx, apps/portal/src/app/wallets/sidebar.tsx
Switched sidebar API reference hrefs to /reference#tag/....
Transactions & Wallets pages
apps/portal/src/app/transactions/page.mdx, apps/portal/src/app/transactions/sponsor/page.mdx, apps/portal/src/app/wallets/server/page.mdx
Repointed transactions-related links to /reference#tag/....
Payments page
apps/portal/src/app/payments/page.mdx
Updated API reference link to /reference.
Nebula API Endpoint metadata
apps/portal/src/app/nebula/api-reference/.../EndpointMetadata.tsx (chat, clear-session, create-session, delete-session, execute, get-session, list-session, update-session)
Replaced absolute referenceUrl values with relative /reference#tag/....
OpenAPI helper
apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx
Removed BASE_API_URL; generateReferenceUrl now returns relative /reference#tag/... URLs.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor U as User
  participant P as Portal UI
  participant R as Router

  rect rgba(200,230,255,0.25)
  note over U,P: New flow (internal navigation)
  U->>P: Click "API Reference" link
  P->>R: Navigate to /reference[#tag/...]
  R-->>P: Render reference page
  P-->>U: In-app page shown
  end

  rect rgba(255,230,200,0.25)
  note over U,P: Previous flow (external)
  U->>P: Click "API Reference" link
  P->>U: Open https://api.thirdweb.com/reference in new tab
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Assessment against linked issues

Objective Addressed Explanation
Migrate portal api.thirdweb.com links to portal/reference [BLD-221]

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • 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 b03441e and f714e5d.

📒 Files selected for processing (20)
  • apps/portal/src/app/Header.tsx (1 hunks)
  • apps/portal/src/app/ai/chat/page.mdx (1 hunks)
  • apps/portal/src/app/ai/llm-txt/page.mdx (1 hunks)
  • apps/portal/src/app/ai/sidebar.tsx (1 hunks)
  • apps/portal/src/app/contracts/sidebar.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/chat/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/clear-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/create-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/delete-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/execute/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/get-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/list-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/update-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/page.tsx (1 hunks)
  • apps/portal/src/app/payments/page.mdx (1 hunks)
  • apps/portal/src/app/transactions/page.mdx (1 hunks)
  • apps/portal/src/app/transactions/sponsor/page.mdx (1 hunks)
  • apps/portal/src/app/wallets/server/page.mdx (1 hunks)
  • apps/portal/src/app/wallets/sidebar.tsx (1 hunks)
  • apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch firekeeper/reference-links

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 5, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Sep 5, 2025
@codecov
Copy link

codecov bot commented Sep 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.63%. Comparing base (a328250) to head (f714e5d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7993   +/-   ##
=======================================
  Coverage   56.63%   56.63%           
=======================================
  Files         904      904           
  Lines       58677    58677           
  Branches     4161     4161           
=======================================
  Hits        33231    33231           
  Misses      25340    25340           
  Partials      106      106           
Flag Coverage Δ
packages 56.63% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.01 KB (0%) 1.3 s (0%) 480 ms (+95.75% 🔺) 1.8 s
thirdweb (cjs) 357.32 KB (0%) 7.2 s (0%) 1.9 s (+5.94% 🔺) 9.1 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 194 ms (+1235.69% 🔺) 308 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 138 ms (+2556.21% 🔺) 148 ms
thirdweb/react (minimal + tree-shaking) 19.15 KB (0%) 383 ms (0%) 208 ms (+482.73% 🔺) 591 ms

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: 3

♻️ Duplicate comments (3)
apps/portal/src/app/nebula/api-reference/delete-session/EndpointMetadata.tsx (1)

25-25: Relative reference URL — looks good

Consistent with the new internal docs routing.

See the verification script in update-session/EndpointMetadata.tsx.

apps/portal/src/app/nebula/api-reference/list-session/EndpointMetadata.tsx (1)

27-27: Good switch to /reference

Matches the standardized pattern used elsewhere in this PR.

Use the earlier script to validate anchors exist and no external URLs remain.

apps/portal/src/app/nebula/api-reference/create-session/EndpointMetadata.tsx (1)

18-18: LGTM on internal anchor

Aligned with BLD-221; no functional changes.

Anchor existence covered by the shared verification script.

🧹 Nitpick comments (5)
apps/portal/src/app/nebula/api-reference/clear-session/EndpointMetadata.tsx (1)

18-18: Double-check referenceUrl anchor

/reference#tag/ai/ai/clear-session may contain a duplicated ai. Please confirm the exact anchor format used by the reference page builder; align with other Nebula endpoints for consistency.

To avoid per-file drift, consider deriving referenceUrl via a shared helper (same logic used by OpenApiEndpoint) based on tag/method/path inputs.

apps/portal/src/app/nebula/api-reference/update-session/EndpointMetadata.tsx (1)

11-13: Add explicit return type for EndpointMetadata

Follow our TS guideline for explicit return types.

-export function EndpointMetadata() {
+export function EndpointMetadata(): JSX.Element {
apps/portal/src/app/wallets/sidebar.tsx (1)

76-76: Updated HTTP API link to internal docs — approved

Keeps users inside the portal.

If more sidebars link to API tags, consider a tiny helper (e.g., referenceTagHref("wallets") -> /reference#tag/wallets) to avoid drift if the anchor scheme ever changes.

apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx (1)

508-508: Good: centralized relative anchor generation.

This matches the /reference#tag/{tag}/{method}{path} convention. Consider updating hardcoded referenceUrl values (e.g., Nebula pages) to this scheme to avoid drift.

apps/portal/src/app/nebula/api-reference/get-session/EndpointMetadata.tsx (1)

18-18: Fix reference anchor to include HTTP method and full path.

To match the site’s anchor format, include get and the endpoint path.

-        referenceUrl: "/reference#tag/ai/ai/get-session",
+        referenceUrl: "/reference#tag/ai/get/session/{session_id}",
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • 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 a328250 and e7eed99.

📒 Files selected for processing (20)
  • apps/portal/src/app/Header.tsx (1 hunks)
  • apps/portal/src/app/ai/chat/page.mdx (1 hunks)
  • apps/portal/src/app/ai/llm-txt/page.mdx (1 hunks)
  • apps/portal/src/app/ai/sidebar.tsx (1 hunks)
  • apps/portal/src/app/contracts/sidebar.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/chat/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/clear-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/create-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/delete-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/execute/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/get-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/list-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/nebula/api-reference/update-session/EndpointMetadata.tsx (1 hunks)
  • apps/portal/src/app/page.tsx (1 hunks)
  • apps/portal/src/app/payments/page.mdx (1 hunks)
  • apps/portal/src/app/transactions/page.mdx (1 hunks)
  • apps/portal/src/app/transactions/sponsor/page.mdx (1 hunks)
  • apps/portal/src/app/wallets/server/page.mdx (1 hunks)
  • apps/portal/src/app/wallets/sidebar.tsx (1 hunks)
  • apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from @/types or local types.ts barrels
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose

**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from @/types where applicable
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size

Files:

  • apps/portal/src/app/nebula/api-reference/chat/EndpointMetadata.tsx
  • apps/portal/src/app/nebula/api-reference/clear-session/EndpointMetadata.tsx
  • apps/portal/src/app/nebula/api-reference/execute/EndpointMetadata.tsx
  • apps/portal/src/app/ai/sidebar.tsx
  • apps/portal/src/app/nebula/api-reference/update-session/EndpointMetadata.tsx
  • apps/portal/src/app/Header.tsx
  • apps/portal/src/app/nebula/api-reference/get-session/EndpointMetadata.tsx
  • apps/portal/src/app/nebula/api-reference/delete-session/EndpointMetadata.tsx
  • apps/portal/src/app/contracts/sidebar.tsx
  • apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx
  • apps/portal/src/app/nebula/api-reference/list-session/EndpointMetadata.tsx
  • apps/portal/src/app/nebula/api-reference/create-session/EndpointMetadata.tsx
  • apps/portal/src/app/page.tsx
  • apps/portal/src/app/wallets/sidebar.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

Files:

  • apps/portal/src/app/nebula/api-reference/chat/EndpointMetadata.tsx
  • apps/portal/src/app/nebula/api-reference/clear-session/EndpointMetadata.tsx
  • apps/portal/src/app/nebula/api-reference/execute/EndpointMetadata.tsx
  • apps/portal/src/app/ai/sidebar.tsx
  • apps/portal/src/app/nebula/api-reference/update-session/EndpointMetadata.tsx
  • apps/portal/src/app/Header.tsx
  • apps/portal/src/app/nebula/api-reference/get-session/EndpointMetadata.tsx
  • apps/portal/src/app/nebula/api-reference/delete-session/EndpointMetadata.tsx
  • apps/portal/src/app/contracts/sidebar.tsx
  • apps/portal/src/components/Document/APIEndpointMeta/OpenApiEndpoint.tsx
  • apps/portal/src/app/nebula/api-reference/list-session/EndpointMetadata.tsx
  • apps/portal/src/app/nebula/api-reference/create-session/EndpointMetadata.tsx
  • apps/portal/src/app/page.tsx
  • apps/portal/src/app/wallets/sidebar.tsx
🧠 Learnings (6)
📚 Learning: 2025-08-20T10:35:18.543Z
Learnt from: jnsdls
PR: thirdweb-dev/js#7888
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/page.tsx:77-81
Timestamp: 2025-08-20T10:35:18.543Z
Learning: The webhooks/payments route exists at apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/payments/page.tsx and was added as part of the unified project layout changes.

Applied to files:

  • apps/portal/src/app/payments/page.mdx
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/wallets/** : EIP-1193, EIP-5792, EIP-7702 standard support in wallet modules

Applied to files:

  • apps/portal/src/app/transactions/sponsor/page.mdx
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Use `NavLink` for internal navigation with automatic active states in dashboard and playground apps

Applied to files:

  • apps/portal/src/app/page.tsx
📚 Learning: 2025-08-07T20:43:21.864Z
Learnt from: MananTank
PR: thirdweb-dev/js#7812
File: apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/token-banner.tsx:48-60
Timestamp: 2025-08-07T20:43:21.864Z
Learning: In the TokenBanner component at apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/token-banner.tsx, the Link components use target="_blank" with internal application routes (starting with "/") to open pages in new tabs within the same application. These internal links do not require rel="noopener noreferrer" security attributes, which are only needed for external URLs.

Applied to files:

  • apps/portal/src/app/page.tsx
  • apps/portal/src/app/wallets/sidebar.tsx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*client.tsx : Prefer API routes or server actions to keep tokens secret; the browser only sees relative paths.

Applied to files:

  • apps/portal/src/app/page.tsx
📚 Learning: 2025-08-29T15:37:38.513Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: AGENTS.md:0-0
Timestamp: 2025-08-29T15:37:38.513Z
Learning: Applies to apps/{dashboard,playground}/**/*.{ts,tsx} : Use `NavLink` for internal navigation to get active state handling

Applied to files:

  • apps/portal/src/app/page.tsx
⏰ 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). (7)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Size
  • GitHub Check: Lint Packages
  • GitHub Check: Build Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (10)
apps/portal/src/app/transactions/sponsor/page.mdx (1)

58-58: LGTM: updated to internal /reference

Matches the migration goal; external Engine references remain appropriately external.

apps/portal/src/app/ai/llm-txt/page.mdx (1)

21-21: LGTM: internalized HTTP API reference link

Switch to /reference is consistent with the portal navigation pattern.

apps/portal/src/app/wallets/server/page.mdx (1)

34-34: Verify reference anchor resolution: internal link set to /reference#tag/transactions/post/v1/transactions; confirm this fragment navigates to the intended endpoint in the built preview.

apps/portal/src/app/transactions/page.mdx (1)

67-67: Updated API link to /reference — LGTM.

Matches the new convention and keeps navigation internal.

apps/portal/src/app/ai/sidebar.tsx (1)

34-34: Sidebar “API Reference” now points to local /reference — LGTM.

Consistent with the portal-wide change.

apps/portal/src/app/Header.tsx (1)

127-127: Header “HTTP API” now routes internally — LGTM.

Works with existing target logic (no _blank for internal links).

apps/portal/src/app/ai/chat/page.mdx (1)

91-91: Full API Reference now uses /reference — LGTM.

Keeps users within the docs site.

apps/portal/src/app/nebula/api-reference/update-session/EndpointMetadata.tsx (1)

19-19: Replace all remaining external api.thirdweb.com/reference links

  • Straggler links found in:
    • packages/api/README.md:42
    • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/page.tsx:116
    • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/contracts/page.tsx:83
    • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/page.tsx:109
    • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/wallets/page.tsx:84
    • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/page.tsx:97
    • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/ai/page.tsx:72

Update these to use the internal /reference#tag/... anchors.

⛔ Skipped due to learnings
Learnt from: MananTank
PR: thirdweb-dev/js#7812
File: apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/token-banner.tsx:48-60
Timestamp: 2025-08-07T20:43:21.864Z
Learning: In the TokenBanner component at apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/token-banner.tsx, the Link components use target="_blank" with internal application routes (starting with "/") to open pages in new tabs within the same application. These internal links do not require rel="noopener noreferrer" security attributes, which are only needed for external URLs.
apps/portal/src/app/page.tsx (1)

140-140: LGTM: Internalize HTTP API link.

Switching to /reference correctly keeps navigation in‑app; target logic already avoids _blank for internal links.

apps/portal/src/app/contracts/sidebar.tsx (1)

66-66: LGTM: Contracts reference now uses internal route.

Anchor /reference#tag/contracts matches the tag section pattern.

@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 5, 2025 19:37 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 5, 2025 19:37 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 5, 2025 19:37 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 5, 2025 19:37 Inactive
@0xFirekeeper 0xFirekeeper added the merge-queue Adds the pull request to Graphite's merge queue. label Sep 5, 2025
Copy link
Member Author

0xFirekeeper commented Sep 5, 2025

Merge activity

  • Sep 5, 7:37 PM UTC: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Sep 5, 7:38 PM UTC: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Sep 5, 7:49 PM UTC: 0xFirekeeper added this pull request to the Graphite merge queue.
  • Sep 5, 7:52 PM UTC: Merged by the Graphite merge queue.

Replaced external 'https://api.thirdweb.com/reference' links with local '/reference' paths across documentation, sidebar, and metadata files for consistency and improved navigation within the portal.

Closes BLD-221

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the reference URLs from absolute paths to relative paths across various components in the application. This change aims to streamline navigation within the app and improve consistency in referencing API documentation.

### Detailed summary
- Changed `href` values from absolute URLs to relative paths in multiple files:
  - `Header.tsx`
  - `ai/sidebar.tsx`
  - `wallets/sidebar.tsx`
  - `contracts/sidebar.tsx`
  - `ai/llm-txt/page.mdx`
  - `payments/page.mdx`
  - `nebula/api-reference` files
  - `transactions/sponsor/page.mdx`
  - `page.tsx`
  - `Document/APIEndpointMeta/OpenApiEndpoint.tsx`
  - `wallets/server/page.mdx`
  - `transactions/page.mdx`

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- Documentation
  - Updated API Reference links across the site (AI, Contracts, Transactions, Payments, Wallets, Nebula endpoints, Home, and Header) to use internal paths (/reference and anchored routes).
- Bug Fixes
  - API Reference links now navigate within the docs site instead of opening an external domain, improving navigation continuity.
- Refactor
  - Standardized reference URL handling to consistently use relative routes for a unified in-app experience.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@graphite-app graphite-app bot force-pushed the firekeeper/reference-links branch from b03441e to f714e5d Compare September 5, 2025 19:49
@vercel vercel bot temporarily deployed to Preview – nebula September 5, 2025 19:49 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 5, 2025 19:49 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 5, 2025 19:49 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 5, 2025 19:49 Inactive
@graphite-app graphite-app bot merged commit f714e5d into main Sep 5, 2025
22 of 23 checks passed
@graphite-app graphite-app bot deleted the firekeeper/reference-links branch September 5, 2025 19:52
@graphite-app graphite-app bot removed the merge-queue Adds the pull request to Graphite's merge queue. label Sep 5, 2025
@vercel vercel bot temporarily deployed to Production – nebula September 5, 2025 19:52 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb-www September 5, 2025 19:52 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground September 5, 2025 19:52 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui September 5, 2025 19:52 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants