Skip to content

Conversation

@jhaaaa
Copy link
Collaborator

@jhaaaa jhaaaa commented Oct 17, 2025

Add Utterances comments to non-root docs pages and sync widget theme from site state in footer.tsx

Introduce a Utterances React component that injects the Utterances script using useRef and useEffect, binds to the current useLocation pathname, and posts set-theme messages to the iframe based on getVocsTheme; render this component above existing footer links in footer.tsx.

📍Where to Start

Start with the Utterances component and getVocsTheme utility in footer.tsx.


Macroscope summarized 2963224.

@jhaaaa jhaaaa requested a review from a team as a code owner October 17, 2025 16:31
@vercel
Copy link

vercel bot commented Oct 17, 2025

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

Project Deployment Preview Comments Updated (UTC)
docs-xmtp-org Ready Ready Preview Comment Nov 7, 2025 8:03pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds an Utterances comments module to non-home pages by introducing a new Utterances React component that integrates with the site's theming system. The component dynamically loads the Utterances widget and synchronizes its theme with the site's current theme preferences.

  • Adds a new Utterances component that conditionally renders on non-home pages
  • Implements comprehensive theme detection from multiple sources (localStorage, DOM attributes, system preferences)
  • Sets up event listeners to dynamically update the Utterances iframe theme when site theme changes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jhaaaa jhaaaa merged commit 23ab3da into main Nov 7, 2025
4 checks passed
@jhaaaa jhaaaa deleted the add-comments branch November 7, 2025 20:04
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