Skip to content
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

Update single.html: Add provider and comments info for non-production #5068

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JUD210
Copy link

@JUD210 JUD210 commented Dec 21, 2024

  • Enhanced the comments section logic in single.html to provide detailed feedback during development.
  • Displays the current comments provider and configuration status when running in a non-production environment.
  • Added fallback messages for scenarios where comments are disabled or no provider is specified.
  • Ensures clarity for debugging comments setup without affecting production behavior.
  • Tested thoroughly to confirm:
    1. Proper display of provider and configuration in non-production environments.
    2. Production environment behavior remains unaffected.
    3. Comprehensive handling of cases with missing or disabled comments.

This is an enhancement or feature.

Summary

Enhanced the comments section in single.html to display provider and configuration details during development. This provides useful debugging information in non-production environments without affecting production behavior.

Context

This PR addresses the need for clearer feedback when debugging comments functionality in local and non-production environments. No related GitHub issues were found, but this improvement enhances the developer experience.

Changes

  • Added logic to single.html to display debug information when running in non-production environments.
  • Displays the comments provider and status in development.
  • Added fallback messages for missing or disabled comments configuration.

Additional Notes

  • Tested thoroughly in the following scenarios:
    1. Non-production environment with valid comments provider and enabled comments.
    2. Non-production environment with no provider or disabled comments.
    3. Production environment to ensure no changes in behavior.

- Enhanced the comments section logic in `single.html` to provide detailed feedback during development.
- Displays the current comments provider and configuration status when running in a non-production environment.
- Added fallback messages for scenarios where comments are disabled or no provider is specified.
- Ensures clarity for debugging comments setup without affecting production behavior.
- Tested thoroughly to confirm:
  1. Proper display of provider and configuration in non-production environments.
  2. Production environment behavior remains unaffected.
  3. Comprehensive handling of cases with missing or disabled comments.

This update improves developer experience by offering valuable insights during local development.

Hope you approve this commit!
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.

1 participant