Skip to content

Conversation

@kevinjqliu
Copy link
Contributor

@kevinjqliu kevinjqliu commented Sep 8, 2025

Relates to #80

Add a new "Comments" section. Load giscus only after user explicitly opt-in, by clicking the "Show Comments" button.
Explicit consent is required by the Apache Content Security Policy

Example of first visit:

Screenshot 2025-09-07 at 8 46 19 PM

After clicking "Show Comments":

Screenshot 2025-09-07 at 8 48 35 PM

After "Signing in with Github":

Screenshot 2025-09-07 at 8 50 07 PM

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @kevinjqliu -- I tried this out locally and the button seems to successfully show/hide giscuss

I also verified there was no network traffic until the button was clicked

Screenshot 2025-09-08 at 11 30 23 AM Screenshot 2025-09-08 at 11 31 00 AM

@kevinjqliu
Copy link
Contributor Author

thank you for the screenshot showing network traffic! I updated the PR with your suggestion

@alamb alamb merged commit a8f8ae6 into apache:main Sep 8, 2025
1 check passed
@alamb
Copy link
Contributor

alamb commented Sep 8, 2025

Thanks again @kevinjqliu

@kevinjqliu kevinjqliu deleted the kevinjqliu/make-giscus-opt-in branch September 8, 2025 17:27
@kevinjqliu
Copy link
Contributor Author

one step closer! thanks for the review

@alamb
Copy link
Contributor

alamb commented Sep 8, 2025

one step closer! thanks for the review

thank you for pushing this forward

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