From 6f40e4abb44647215f08633fa825f262d5b27ac3 Mon Sep 17 00:00:00 2001 From: Tyrel Chambers Date: Mon, 24 Nov 2025 12:31:01 -0500 Subject: [PATCH 1/2] fixes from merge with main --- .../ChainTypeSelector.module.css | 3 +- src/components/LeftSidebar/LeftSidebar.astro | 2 - .../LeftSidebar/leftSidebar.module.css | 2 +- src/config/sidebar.ts | 600 +----------------- tsconfig.json | 1 + 5 files changed, 4 insertions(+), 604 deletions(-) diff --git a/src/components/ChainSelector/ChainTypeSelector.module.css b/src/components/ChainSelector/ChainTypeSelector.module.css index 41a417e6c67..1d250eccf3b 100644 --- a/src/components/ChainSelector/ChainTypeSelector.module.css +++ b/src/components/ChainSelector/ChainTypeSelector.module.css @@ -1,8 +1,7 @@ .selector { display: flex; align-items: center; - padding: var(--space-3x) var(--space-3x); - border-bottom: 1px solid var(--border-color, #e5e7eb); + padding: var(--space-4x) 0; background: var(--color-background-primary, #ffffff); position: sticky; top: 0; diff --git a/src/components/LeftSidebar/LeftSidebar.astro b/src/components/LeftSidebar/LeftSidebar.astro index 99bb66dfe8c..cc9512fba67 100644 --- a/src/components/LeftSidebar/LeftSidebar.astro +++ b/src/components/LeftSidebar/LeftSidebar.astro @@ -6,8 +6,6 @@ import RecursiveSidebar from "./RecursiveSidebar.astro" import { LanguageSwitcherDropdown } from "~/components/LanguageSwitcherDropdown" import { ChainTypeSelector } from "~/components/ChainSelector" import { isChainAwareSection } from "~/config/chainTypes" -import { filterContentByChainType } from "~/utils/chainType" -import type { ChainType } from "~/config/types" import styles from "./leftSidebar.module.css" import DocsHeaderTitle from "../DocsHeaderTitle/DocsHeaderTitle.astro" import * as CONFIG from "../../config" diff --git a/src/components/LeftSidebar/leftSidebar.module.css b/src/components/LeftSidebar/leftSidebar.module.css index c5b4455aaf5..724ee84735c 100644 --- a/src/components/LeftSidebar/leftSidebar.module.css +++ b/src/components/LeftSidebar/leftSidebar.module.css @@ -168,7 +168,7 @@ details[open] > .navGroupTitle { /* Language Switcher for tablet screens (800px-1200px) */ .languageSwitcherTablet { - padding: var(--space-6x) var(--space-6x) 0 var(--space-6x); + padding: var(--space-6x) 0; display: none; } diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index 180f5700da8..c6d500aef3c 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -1726,605 +1726,7 @@ export const SIDEBAR: Partial> = { }, ], [SIDEBAR_SECTIONS.CCIP]: CCIP_SIDEBAR_CONTENT, - [SIDEBAR_SECTIONS.CCIP]: [ - { - section: "Chainlink CCIP", - contents: [ - { - title: "Overview", - url: "ccip", - }, - { - title: "Getting Started", - url: "ccip/getting-started", - children: [ - { - title: "EVM", - url: "ccip/getting-started/evm", - }, - { - title: "Solana", - url: "ccip/getting-started/svm", - }, - ], - }, - { - title: "CCIP Directory", - url: "ccip/directory", - children: [ - { - title: "Mainnet", - url: "ccip/directory/mainnet", - }, - { - title: "Testnet", - url: "ccip/directory/testnet", - }, - ], - }, - { - title: "Service Limits", - url: "ccip/service-limits", - children: [ - { - title: "EVM", - url: "ccip/service-limits/evm", - }, - { - title: "Solana", - url: "ccip/service-limits/svm", - }, - { - title: "Aptos", - url: "ccip/service-limits/aptos", - }, - { - title: "Network Specific", - url: "ccip/service-limits/network-specific-limits", - }, - ], - }, - { - title: "Service Responsibility", - url: "ccip/service-responsibility", - }, - { - title: "Execution Latency", - url: "ccip/ccip-execution-latency", - }, - { - title: "Billing", - url: "ccip/billing", - }, - { - title: "Release Notes", - url: "https://dev.chain.link/changelog?product=CCIP", - }, - ], - }, - { - section: "Concepts", - contents: [ - { - title: "Architecture", - url: "ccip/concepts/architecture", - children: [ - { - title: "Overview", - url: "ccip/concepts/architecture/overview", - }, - { - title: "Key Concepts", - url: "ccip/concepts/architecture/key-concepts", - }, - { - title: "Onchain Architecture", - url: "ccip/concepts/architecture/onchain", - children: [ - { - title: "EVM", - url: "ccip/concepts/architecture/onchain/evm", - children: [ - { - title: "Overview", - url: "ccip/concepts/architecture/onchain/evm/overview", - }, - { - title: "Components", - url: "ccip/concepts/architecture/onchain/evm/components", - }, - { - title: "Upgradability", - url: "ccip/concepts/architecture/onchain/evm/upgradability", - }, - ], - }, - { - title: "Solana", - url: "ccip/concepts/architecture/onchain/svm", - children: [ - { - title: "Overview", - url: "ccip/concepts/architecture/onchain/svm/overview", - }, - { - title: "Components", - url: "ccip/concepts/architecture/onchain/svm/components", - }, - { - title: "Upgradability", - url: "ccip/concepts/architecture/onchain/svm/upgradability", - }, - ], - }, - { - title: "Aptos", - url: "ccip/concepts/architecture/onchain/aptos", - children: [ - { - title: "Overview", - url: "ccip/concepts/architecture/onchain/aptos/overview", - }, - { - title: "Components", - url: "ccip/concepts/architecture/onchain/aptos/components", - }, - { - title: "Upgradability", - url: "ccip/concepts/architecture/onchain/aptos/upgradability", - }, - ], - }, - ], - }, - { - title: "Offchain Architecture", - url: "ccip/concepts/architecture/offchain", - children: [ - { - title: "Overview", - url: "ccip/concepts/architecture/offchain/overview", - }, - { - title: "Risk Management Network", - url: "ccip/concepts/architecture/offchain/risk-management-network", - }, - ], - }, - ], - }, - { - title: "Cross-Chain Token (CCT) Standard", - url: "ccip/concepts/cross-chain-token", - children: [ - { - title: "Overview", - url: "ccip/concepts/cross-chain-token/overview", - }, - { - title: "EVM", - url: "ccip/concepts/cross-chain-token/evm", - children: [ - { - title: "Tokens", - url: "ccip/concepts/cross-chain-token/evm/tokens", - }, - { - title: "Token Pools", - url: "ccip/concepts/cross-chain-token/evm/token-pools", - }, - { - title: "Architecture", - url: "ccip/concepts/cross-chain-token/evm/architecture", - }, - { - title: "Registration and Administration", - url: "ccip/concepts/cross-chain-token/evm/registration-administration", - }, - { - title: "Upgradability", - url: "ccip/concepts/cross-chain-token/evm/upgradability", - }, - ], - }, - { - title: "Solana", - url: "ccip/concepts/cross-chain-token/svm", - children: [ - { - title: "Architecture", - url: "ccip/concepts/cross-chain-token/svm/architecture", - }, - { - title: "Tokens", - url: "ccip/concepts/cross-chain-token/svm/tokens", - }, - { - title: "Token Pools", - url: "ccip/concepts/cross-chain-token/svm/token-pools", - }, - { - title: "Integration Guide", - url: "ccip/concepts/cross-chain-token/svm/integration-guide", - }, - { - title: "Registration and Administration", - url: "ccip/concepts/cross-chain-token/svm/registration-administration", - }, - { - title: "Upgradability", - url: "ccip/concepts/cross-chain-token/svm/upgradability", - }, - ], - }, - ], - }, - { - title: "Manual execution", - url: "ccip/concepts/manual-execution", - }, - { - title: "Best Practices", - url: "ccip/concepts/best-practices", - children: [ - { - title: "EVM", - url: "ccip/concepts/best-practices/evm", - }, - { - title: "Solana", - url: "ccip/concepts/best-practices/svm", - }, - { - title: "Aptos", - url: "ccip/concepts/best-practices/aptos", - }, - ], - }, - ], - }, - { - section: "Tutorials", - contents: [ - { - title: "Acquire Test Tokens", - url: "ccip/test-tokens", - }, - { - title: "EVM", - url: "ccip/tutorials/evm", - children: [ - { - title: "Transfer Tokens", - url: "ccip/tutorials/evm/transfer-tokens-from-contract", - }, - { - title: "Transfer Tokens with Data", - url: "ccip/tutorials/evm/programmable-token-transfers", - }, - { - title: "Transfer Tokens with Data - Defensive Example", - url: "ccip/tutorials/evm/programmable-token-transfers-defensive", - }, - { - title: "Using the Token Manager", - url: "ccip/tutorials/evm/token-manager", - }, - { - title: "Using the CCIP JavaScript SDK", - url: "ccip/ccip-javascript-sdk", - }, - { - title: "Offchain", - url: "ccip/tutorials/evm/offchain", - children: [ - { - title: "Transfer Tokens between EOAs", - url: "ccip/tutorials/evm/offchain/transfer-tokens-from-eoa", - }, - { - title: "Checking CCIP Message Status", - url: "ccip/tutorials/evm/offchain/get-status-offchain", - }, - { - title: "Using CCIP CLI", - url: "ccip/tutorials/evm/offchain/ccip-tools", - children: [ - { - title: "Transfer Tokens between EOAs", - url: "ccip/tutorials/evm/offchain/ccip-tools/transfer-tokens-from-eoa", - }, - { - title: "Checking CCIP Message Status", - url: "ccip/tutorials/evm/offchain/ccip-tools/get-status-offchain", - }, - { - title: "Get Supported Tokens", - url: "ccip/tutorials/evm/offchain/ccip-tools/get-supported-tokens", - }, - ], - }, - ], - }, - { - title: "Cross-Chain Token (CCT) standard", - url: "ccip/tutorials/evm/cross-chain-tokens", - children: [ - { - title: "Deploy and Register Using Remix IDE", - url: "ccip/tutorials/evm/cross-chain-tokens/register-from-eoa-remix", - }, - { - title: "Register from an EOA (Burn & Mint)", - url: "ccip/tutorials/evm/cross-chain-tokens/register-from-eoa-burn-mint-hardhat", - highlightAsCurrent: ["ccip/tutorials/evm/cross-chain-tokens/register-from-eoa-burn-mint-foundry"], - }, - { - title: "Register from an EOA (Lock & Mint)", - url: "ccip/tutorials/evm/cross-chain-tokens/register-from-eoa-lock-mint-hardhat", - highlightAsCurrent: ["ccip/tutorials/evm/cross-chain-tokens/register-from-eoa-lock-mint-foundry"], - }, - { - title: "Set Token Pool rate limits", - url: "ccip/tutorials/evm/cross-chain-tokens/update-rate-limiters-hardhat", - highlightAsCurrent: ["ccip/tutorials/evm/cross-chain-tokens/update-rate-limiters-foundry"], - }, - { - title: "Register from a Safe Smart Account (Burn & Mint)", - url: "ccip/tutorials/evm/cross-chain-tokens/register-from-safe-burn-mint-hardhat", - }, - ], - }, - { - title: "Test CCIP Locally", - url: "ccip/tutorials/evm/test-ccip-locally", - }, - { - title: "Transfer USDC with Data", - url: "ccip/tutorials/evm/usdc", - }, - { - title: "Send Arbitrary Data", - url: "ccip/tutorials/evm/send-arbitrary-data", - }, - { - title: "Send Arbitrary Data and Receive Transfer Confirmation: A -> B -> A", - url: "ccip/tutorials/evm/send-arbitrary-data-receipt-acknowledgment", - }, - { - title: "Manual Execution", - url: "ccip/tutorials/evm/manual-execution", - }, - { - title: "Optimizing Gas Limit Settings in CCIP Messages", - url: "ccip/tutorials/evm/ccipreceive-gaslimit", - }, - ], - }, - { - title: "Solana", - url: "ccip/tutorials/svm", - children: [ - { - title: "Implement CCIP Receiver", - url: "ccip/tutorials/svm/receivers", - }, - { - title: "Solana as Source", - url: "ccip/tutorials/svm/source", - children: [ - { - title: "Build CCIP Messages", - url: "ccip/tutorials/svm/source/build-messages", - }, - { - title: "Prerequisites", - url: "ccip/tutorials/svm/source/prerequisites", - }, - { - title: "Token Transfers", - url: "ccip/tutorials/svm/source/token-transfers", - }, - ], - }, - { - title: "Solana as Destination", - url: "ccip/tutorials/svm/destination", - children: [ - { - title: "Build CCIP Messages", - url: "ccip/tutorials/svm/destination/build-messages", - }, - { - title: "Token Transfers", - url: "ccip/tutorials/svm/destination/token-transfers", - }, - { - title: "Arbitrary Messaging", - url: "ccip/tutorials/svm/destination/arbitrary-messaging", - }, - ], - }, - { - title: "Cross-Chain Token (CCT) standard", - url: "ccip/tutorials/svm/cross-chain-tokens", - children: [ - { - title: "BurnMint: Direct Mint Authority Transfer", - url: "ccip/tutorials/svm/cross-chain-tokens/direct-mint-authority", - }, - { - title: "BurnMint: SPL Token Multisig Tutorial", - url: "ccip/tutorials/svm/cross-chain-tokens/spl-token-multisig-tutorial", - }, - { - title: "BurnMint: Production Multisig Governance", - url: "ccip/tutorials/svm/cross-chain-tokens/production-multisig-tutorial", - }, - { - title: "LockRelease: Production Governance", - url: "ccip/tutorials/svm/cross-chain-tokens/lock-release-multisig", - }, - ], - }, - ], - }, - { - title: "Aptos", - url: "ccip/tutorials/aptos", - children: [ - { - title: "Implement CCIP Receiver", - url: "ccip/tutorials/aptos/receivers", - }, - { - title: "Aptos as Source", - url: "ccip/tutorials/aptos/source", - children: [ - { - title: "Build CCIP Messages", - url: "ccip/tutorials/aptos/source/build-messages", - }, - { - title: "Prerequisites", - url: "ccip/tutorials/aptos/source/prerequisites", - }, - { - title: "Token Transfers", - url: "ccip/tutorials/aptos/source/token-transfers", - }, - ], - }, - { - title: "Aptos as Destination", - url: "ccip/tutorials/aptos/destination", - children: [ - { - title: "Build CCIP Messages", - url: "ccip/tutorials/aptos/destination/build-messages", - }, - { - title: "Prerequisites", - url: "ccip/tutorials/aptos/destination/prerequisites", - }, - { - title: "Token Transfers", - url: "ccip/tutorials/aptos/destination/token-transfers", - }, - { - title: "Arbitrary Messaging", - url: "ccip/tutorials/aptos/destination/arbitrary-messaging", - }, - { - title: "Programmatic Token Transfers", - url: "ccip/tutorials/aptos/destination/programmatic-token-transfers", - }, - ], - }, - { - title: "Cross-Chain Token (CCT) standard", - url: "ccip/tutorials/aptos/cross-chain-tokens", - }, - ], - }, - ], - }, - { - section: "Tools and Resources", - contents: [ - { - title: "CCIP Explorer", - url: "ccip/tools-resources/ccip-explorer", - }, - { - title: "Token Manager", - url: "ccip/tools-resources/token-manager", - }, - { - title: "Network Specific", - url: "ccip/tools-resources/network-specific", - children: [ - { - title: "Hyperliquid Integration Guide", - url: "ccip/tools-resources/network-specific/hyperliquid-integration-guide", - }, - ], - }, - { - title: "API Reference", - url: "ccip/api-reference", - children: [ - { - title: "EVM", - url: "ccip/api-reference/evm", - children: [ - { - title: "v1.6.1 (Latest)", - url: "ccip/api-reference/evm/v1.6.1", - isCollapsible: true, - children: evmCcipV161Contents, - }, - { - title: "v1.6.0", - url: "ccip/api-reference/evm/v1.6.0", - isCollapsible: true, - children: evmCcipV160Contents, - }, - { - title: "v1.5.1", - url: "ccip/api-reference/evm/v1.5.1", - isCollapsible: true, - children: evmCcipV151Contents, - }, - { - title: "v1.5.0", - url: "ccip/api-reference/evm/v1.5.0", - isCollapsible: true, - children: evmCcipV150Contents, - }, - ], - }, - { - title: "Solana", - url: "ccip/api-reference/svm", - children: [ - { - title: "v0.1.1 (Latest)", - url: "ccip/api-reference/svm/v0.1.1", - isCollapsible: true, - children: svmCcipV011Contents, - }, - ], - }, - { - title: "Aptos", - url: "ccip/api-reference/aptos", - children: [ - { - title: "v1.6.0 (Latest)", - url: "ccip/api-reference/aptos/v1.6.0", - isCollapsible: true, - children: aptosCcipV160Contents, - }, - ], - }, - ], - }, - { - title: "SDK", - url: "ccip/tools-resources/sdk", - }, - { - title: "Tools", - url: "ccip/tools-resources/tools", - }, - { - title: "Cross-chain Examples", - url: "ccip/examples", - }, - ], - }, - ], + [SIDEBAR_SECTIONS.CHAINLINK_LOCAL]: [ { section: "Chainlink Local", diff --git a/tsconfig.json b/tsconfig.json index b5df96aeb68..b718b196200 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "target": "ESNext", "module": "NodeNext", "moduleResolution": "nodenext", + "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "esModuleInterop": true, From f21785efc5ab1e331bf65f4f2f6f9db9549582a1 Mon Sep 17 00:00:00 2001 From: Tyrel Chambers Date: Mon, 24 Nov 2025 12:44:27 -0500 Subject: [PATCH 2/2] fix directory header --- src/components/CCIP/Hero/Hero.css | 9 +++++++++ src/components/CCIP/Hero/Hero.tsx | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/CCIP/Hero/Hero.css b/src/components/CCIP/Hero/Hero.css index 8c856f9ffc7..f8d0c61579a 100644 --- a/src/components/CCIP/Hero/Hero.css +++ b/src/components/CCIP/Hero/Hero.css @@ -5,6 +5,8 @@ .ccip-hero__heading { color: var(--gray-900); + font-size: 2.5rem; + margin-bottom: var(--space-6x); } .ccip-hero__content { @@ -15,3 +17,10 @@ align-items: center; gap: var(--space-4x); } + +@media screen and (max-width: 768px) { + .ccip-hero__heading { + font-size: 2rem; + margin-bottom: var(--space-4x); + } +} diff --git a/src/components/CCIP/Hero/Hero.tsx b/src/components/CCIP/Hero/Hero.tsx index 4655b535e92..5f479f22828 100644 --- a/src/components/CCIP/Hero/Hero.tsx +++ b/src/components/CCIP/Hero/Hero.tsx @@ -2,6 +2,7 @@ import { Environment, LaneConfig } from "~/config/data/ccip/index.ts" import Search from "../Search/Search.tsx" import "./Hero.css" import { ChainType, ExplorerInfo } from "~/config/types.ts" +import { Typography } from "@chainlink/blocks" interface HeroProps { chains: { @@ -39,7 +40,9 @@ function Hero({ chains, tokens, environment, lanes }: HeroProps) { return (
-

CCIP Directory

+ + CCIP Directory +