Skip to content

GH#125: remove nested WP ULike response controls - #126

Merged
superdav42 merged 2 commits into
masterfrom
feature/auto-20261016-190754-gh125
Nov 24, 2026
Merged

superdav42 merged 2 commits into
masterfrom
feature/auto-20261016-190754-gh125

Conversation

@superdav42

@superdav42 superdav42 commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Remove matching WP ULike comment controls from nested Save-response markup before restoring the live controls.

Resolves #125

Runtime Testing

  • Pending final browser verification.

aidevops.sh v3.39.36 plugin for OpenCode v1.19.0 with gpt-5.6-terra spent 5m and 105,822 tokens on this as a headless worker.

Summary by CodeRabbit

  • Bug Fixes
    • Improved comment editing so like controls nested anywhere within a comment are handled correctly when the comment is updated, helping preserve the expected controls at the beginning and end of the comment. This prevents nested like elements from interfering with the restored comment layout.

@superdav42 superdav42 added the origin:worker Created by headless/pulse worker session label Oct 17, 2026
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 929f8b6 and 5076292.

Files ignored due to path filters: 1

  • dist/sce-editing.js is excluded by !**/dist/**
Files selected for processing: 1

  • src/js/comment-editing/editing.js

No actionable comments were generated in the recent review.

Walkthrough

updateCommentContent now removes matching .wpulike elements from anywhere in the comment subtree before restoring the original leading and trailing like controls.

Changes: Like control cleanup

Layer / File(s) Summary
Save response cleanup
src/js/comment-editing/editing.js
The cleanup searches comment descendants for matching .wpulike elements before restoring the original controls.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: Minimal · previous review 929f8 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: removing nested WP ULike response controls. The raw summary says the cleanup now removes matching .wpulike elements anywhere in the comment subtree instead of only d…
Linked Issues check Passed [#125] Requires that Save cleanup remove matching .wpulike controls at any depth under comment, before the original live controls are reinserted, with reinsertion behavior unchanged. The change su…
Out of Scope Changes check Passed The reviewed change is a one-line edit in src/js/comment-editing/editing.js. This file is listed in the issue Files Scope. The edit replaces direct-child lookup with a subtree lookup for matching `.…
Full details: Title check

Explanation

The title names the main change: removing nested WP ULike response controls. The raw summary says the cleanup now removes matching .wpulike elements anywhere in the comment subtree instead of only direct children. The title also cites GH#125, which matches the linked issue. The title is specific and accurate.

Full details: Linked Issues check

Explanation

[#125] Requires that Save cleanup remove matching .wpulike controls at any depth under comment, before the original live controls are reinserted, with reinsertion behavior unchanged. The change summary for src/js/comment-editing/editing.js states that updateCommentContent now removes matching .wpulike elements found anywhere in the comment subtree before restoring the leading and trailing like controls. The previous code searched only direct children (comment.children). The change is one line (+1/-1), and the summary states that reinsertion is not altered. The requested behavior is therefore implemented in source. Limits: the summary is the only evidence for the edit. No focused diff hunk was inspected. Browser verification is still pending, as the PR description states. dist/sce-editing.js is excluded by the !**/dist/** rule in ignored_files. Its build output was not reviewed, so whether the bundle reflects the fix is unknown. The source requirement does not depend on that file.

Full details: Out of Scope Changes check

Explanation

The reviewed change is a one-line edit in src/js/comment-editing/editing.js. This file is listed in the issue Files Scope. The edit replaces direct-child lookup with a subtree lookup for matching .wpulike controls in the Save cleanup path, which is the requested behavior in #125. No unrelated files or API declaration changes are reported. The dist/sce-editing.js file is named in the issue scope but is excluded from review, so its contents were not assessed.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fbcc780 and 929f8b6.

Files ignored due to path filters: 1

  • dist/sce-editing.js is excluded by !**/dist/**
Files selected for processing: 1

  • src/js/comment-editing/editing.js

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@superdav42
superdav42 force-pushed the feature/auto-20261016-190754-gh125 branch from 929f8b6 to 5076292 Compare November 24, 2026 20:13
@superdav42
superdav42 merged commit 569ba28 into master Nov 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

origin:worker Created by headless/pulse worker session

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review followup: PR #124 — GH#123: preserve WP ULike controls after inline Save

1 participant