Skip to content

Fix Loading Spinner on Like and Boost Buttons#566

Merged
akirk merged 3 commits into
mainfrom
claude/fix-boost-like-spinner-011CUTKsFYQSK8nHdm3rEboj
Oct 25, 2025
Merged

Fix Loading Spinner on Like and Boost Buttons#566
akirk merged 3 commits into
mainfrom
claude/fix-boost-like-spinner-011CUTKsFYQSK8nHdm3rEboj

Conversation

@akirk

@akirk akirk commented Oct 25, 2025

Copy link
Copy Markdown
Owner
  • 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 there was no visual feedback while the boost or like action was being processed.

🤖 Generated with Claude Code

@akirk akirk changed the base branch from main to friends-4.0 October 25, 2025 13:23
@akirk akirk force-pushed the claude/fix-boost-like-spinner-011CUTKsFYQSK8nHdm3rEboj branch from b63a931 to 4a4a7d9 Compare October 25, 2025 14:37
Base automatically changed from friends-4.0 to main October 25, 2025 14:44
@github-actions

Copy link
Copy Markdown
Contributor

Test this PR in WordPress Playground

You can test this pull request directly in WordPress Playground:

Launch 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>
@akirk akirk force-pushed the claude/fix-boost-like-spinner-011CUTKsFYQSK8nHdm3rEboj branch from 49d3a19 to 4089dd7 Compare October 25, 2025 14:46
@akirk akirk merged commit eca5b2c into main Oct 25, 2025
28 checks passed
@akirk akirk deleted the claude/fix-boost-like-spinner-011CUTKsFYQSK8nHdm3rEboj branch October 25, 2025 15:01
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