Skip to content

Add comment-stats ability - #49

Merged
pluginslab merged 2 commits into
devfrom
feature/comment-stats
Mar 20, 2026
Merged

pluginslab merged 2 commits into
devfrom
feature/comment-stats

Conversation

@ivdimova

Copy link
Copy Markdown
Collaborator

Summary

Changes

  • includes/abilities/comment-stats.php — PHP backend using wp_count_comments()
  • src/extensions/abilities/comment-stats.js — JS frontend with summarize, interpretResult, execute
  • includes/class-abilities.php — Register comment-stats in core abilities
  • src/extensions/abilities/index.js — Import, re-export, and call registration
  • tests/abilities/core-abilities.test.js — 2 test cases for comment-related queries

Testing

  • Unit tests pass (npm test) — 43/43
  • Ability tests pass (npm run test:abilities)
  • JS lint clean
  • PHP lint clean — pre-existing PHPCS config issue
  • Manually tested in browser

🤖 Generated with Claude Code

Show comment statistics including approved, pending, spam, and trash counts.
Read-only ability with moderate_comments permission check.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

@pluginslab pluginslab left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Test Results

Merged all 4 open PRs locally and ran full ability test suite — 29/29 passed (100%) in 63s. All conflicts resolved. LGTM!

…comment-stats)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@pluginslab
pluginslab merged commit 9414efc into dev Mar 20, 2026
@pluginslab
pluginslab deleted the feature/comment-stats branch May 27, 2026 23: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