Fix Loading Spinner on Like and Boost Buttons#566
Merged
akirk merged 3 commits intoOct 25, 2025
Conversation
b63a931 to
4a4a7d9
Compare
Contributor
Test this PR in WordPress PlaygroundYou can test this pull request directly in WordPress Playground: This will install and activate the plugin with the changes from this PR. |
- Add loading class to boost button when clicked - Add loading class to like/reaction buttons when clicked - Remove loading class on success or error to provide visual feedback - Uses existing Spectre.css loading spinner animation This fixes the issue where users had no visual feedback while the boost or like action was being processed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Change the bot comment identification from checking user.type === 'Bot' to user.login === 'github-actions[bot]' for more reliable detection. This prevents duplicate comments from being created on each PR update by properly identifying and updating existing bot comments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The multi-line template literal inside the YAML was causing a syntax error due to inconsistent indentation. Fixed by properly indenting the template literal content and stripping the indentation in the JavaScript output using replace(). This ensures the YAML parser can correctly interpret the file while maintaining clean output in the generated comment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
49d3a19 to
4089dd7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the issue where there was no visual feedback while the boost or like action was being processed.
🤖 Generated with Claude Code