Skip to content

Add Crisp chat to docs#768

Merged
imrishabh18 merged 1 commit into
mainfrom
codex/add-crisp-integration-to-docs
Jun 28, 2026
Merged

Add Crisp chat to docs#768
imrishabh18 merged 1 commit into
mainfrom
codex/add-crisp-integration-to-docs

Conversation

@imrishabh18

Copy link
Copy Markdown
Member

Motivation

  • Add Crisp live chat to the documentation site so visitors can contact support directly from docs pages.
  • Load Crisp only on the client to avoid server-side rendering issues and prevent multiple script injections.
  • Provide minimal TypeScript typings for the injected globals to avoid type errors.

Description

  • Added CRISP_WEBSITE_ID and CRISP_SCRIPT_SRC constants and a global Window declaration in src/theme/Root.tsx.
  • Added a client-only useEffect that initializes window.$crisp, sets window.CRISP_WEBSITE_ID, and appends the async Crisp loader script if it is not already present.
  • Preserved existing sidebar mutation-observer logic and kept changes scoped to the Docusaurus root theme component (src/theme/Root.tsx).

Testing

  • Ran bun run typecheck and it completed successfully.
  • Ran bun run format:check src/theme/Root.tsx and no formatting fixes were required.
  • Ran bun run build which produced a successful production build.

Codex Task

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jun 28, 2026 12:56pm

Request Review

@imrishabh18 imrishabh18 requested a review from seveibar June 28, 2026 12:56
@imrishabh18 imrishabh18 enabled auto-merge (squash) June 28, 2026 12:57
@imrishabh18 imrishabh18 disabled auto-merge June 28, 2026 12:57
@imrishabh18 imrishabh18 merged commit ed8dac2 into main Jun 28, 2026
5 checks passed
@imrishabh18 imrishabh18 deleted the codex/add-crisp-integration-to-docs branch June 28, 2026 12:57
@tscircuitbot

Copy link
Copy Markdown

Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants