Skip to content

feat: opt into the Themeisle SDK Support Hub - #1179

Open
vytisbulkevicius wants to merge 1 commit into
developmentfrom
feat/support-hub
Open

vytisbulkevicius wants to merge 1 commit into
developmentfrom
feat/support-hub

Conversation

@vytisbulkevicius

Copy link
Copy Markdown
Contributor

Opt Revive Social into the shared Themeisle SDK Support Hub by registering tweet_old_post_support_hub_metadata, mirroring the existing _ai_connect_metadata filter.

What changed

  • Register the Support Hub filter returning is_pro and the Help-form link.

Note

No SDK bump — development ships themeisle-sdk 3.3.72. The link points to the plugin's own WordPress.org support forum. Nothing in the support copy contradicts the Help panel.

QA

  1. Activate Revive Social on a site with themeisle-sdk 3.3.72+. Open its admin screen. Expect: a Help button bottom-right (on the plugin's own screens) opening the Support Hub form with the Community Forum link.
  2. Deactivate the plugin. Expect: the SDK deactivation window appears.

Register the <slug>_support_hub_metadata filter so the shared Themeisle SDK
Support Hub is enabled for this plugin, mirroring _ai_connect_metadata.
Development ships SDK 3.3.72.
@pirate-bot

Copy link
Copy Markdown
Contributor

Plugin build for b218284 is ready 🛎️!

@pirate-bot pirate-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

The Support Hub filter matches the SDK 3.3.72 contract, and the Help button works in the sandbox.

Validation details
  • Files reviewed: 1/1 changed files.
  • The SDK source applies tweet_old_post_support_hub_metadata from the plugin folder name and accepts this array.
  • The filter returns the expected array in a WordPress sandbox on PHP 8.3 with SDK 3.3.72: cd /repo && sed -n 255,290p tweet-old-post.php; echo ---; cd /var/www/html && wp eval 'echo json_encode( apply_filters( … printed "is_pro":false (run R4)
  • The SDK loads the module for the product: cd /var/www/html && (set -o pipefail; wp eval-file /workspace/checks/R1/support_hub.php --user=admin 2>&1 | tee /workspa… printed can_load=true (run R8)
  • A browser check showed the Help button on the plugin screen only. The form showed the forum link, and the deactivation window still opened [R16].
Untested areas
  • The sandbox did not run the Pro plugin, so is_pro was only seen as false.
  • No test covers the plugin's SDK metadata filters. The Help button itself is rendered by the SDK.

🤖 Automated review · run code-review-agent_6b04c02bc64484.05063429.


🤖 Review agent — review posted ✅ on b218284b · approved · 0 findings · 15 min

Run code-review-agent_6b04c02bc64484.05063429 · trail

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