-
Notifications
You must be signed in to change notification settings - Fork 39
Add utterances comments module #438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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
Utterancescomponent 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.
There was a problem hiding this 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.
There was a problem hiding this 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.
There was a problem hiding this 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.
There was a problem hiding this 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.
Add Utterances comments to non-root docs pages and sync widget theme from site state in footer.tsx
Introduce a
UtterancesReact component that injects the Utterances script usinguseRefanduseEffect, binds to the currentuseLocationpathname, and postsset-thememessages to the iframe based ongetVocsTheme; render this component above existing footer links in footer.tsx.📍Where to Start
Start with the
Utterancescomponent andgetVocsThemeutility in footer.tsx.Macroscope summarized 2963224.