Skip to content

Replace Gitalk with utterances while preserving comments - #413

Merged
frf12 merged 2 commits into
masterfrom
codex/utterances-comments
Oct 29, 2026
Merged

frf12 merged 2 commits into
masterfrom
codex/utterances-comments

Conversation

@frf12

@frf12 frf12 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Replace Gitalk with utterances for document comments while preserving existing GitHub Issues and discussions. Keep comments aligned with the current article during internal navigation and support the site's light and dark themes.

Solution Description

  • Bind 181 historical document paths to their existing Issues. Preserve all seven commented discussions, including renamed-page aliases and a historical link for the removed storage-compression article.
  • Manage the official utterances iframe through React. Clean up listeners on navigation, synchronize themes without reloading the frame, and wait for current page metadata so GitHub sign-in returns to the correct article. New discussions use pathname matching.
  • Remove Gitalk/js-md5 and add comments tests and typechecking to the existing PR workflow. No Issues or comments are copied, edited or deleted.

Validation

  • Node 18 / Yarn 1: 24/24 comments tests, typecheck and production build pass.
  • Independent mapping and code reviews pass. Browser checks cover an original comment, SPA Issue/login-return mapping, light/dark themes, the historical link and an unmapped page.
  • Existing CSS and broken-anchor build warnings also occur on the baseline.
  • No test comments were posted. Authenticated comment submission has not been exercised.

The utterances App is installed for this repository. The existing deployment workflow is unchanged. Rollback can revert this migration and redeploy the prior version without modifying Issues.

@hidb4ai hidb4ai left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@frf12
frf12 merged commit eb88d1e into master Oct 29, 2026
4 checks passed
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