Repository navigation
Opt into the Themeisle SDK Support Hub - #3177
Conversation
Bundle Size Diff
|
|
Plugin build for a60d51a is ready 🛎️!
|
E2E TestsPlaywright Test Status: See serial and parallel matrix jobs Performance ResultsserverResponse: {"q25":431.28,"q50":473.34,"q75":486.89,"cnt":10}, firstPaint: {"q25":1622.26,"q50":1679.19,"q75":1928.01,"cnt":10}, domContentLoaded: {"q25":4430.8,"q50":4467.1,"q75":4491.59,"cnt":10}, loaded: {"q25":4434.53,"q50":4471.15,"q75":4495.4,"cnt":10}, firstContentfulPaint: {"q25":3303.64,"q50":3347.24,"q75":3402.68,"cnt":10}, firstBlock: {"q25":20498.29,"q50":20741.48,"q75":20795.17,"cnt":10}, type: {"q25":32.92,"q50":35.01,"q75":43.28,"cnt":10}, typeWithoutInspector: {"q25":35.11,"q50":36.65,"q75":41.46,"cnt":10}, typeWithTopToolbar: {"q25":43.59,"q50":47.64,"q75":52.31,"cnt":10}, typeContainer: {"q25":18.98,"q50":19.47,"q75":21.1,"cnt":10}, focus: {"q25":166.48,"q50":180.44,"q75":190.43,"cnt":10}, inserterOpen: {"q25":52.1,"q50":54.63,"q75":56.37,"cnt":10}, inserterSearch: {"q25":36.02,"q50":36.5,"q75":38.79,"cnt":10}, inserterHover: {"q25":5.91,"q50":6.01,"q75":6.84,"cnt":20}, loadPatterns: {"q25":2247.97,"q50":2338.17,"q75":2384.94,"cnt":10}, listViewOpen: {"q25":283.51,"q50":296.17,"q75":314.28,"cnt":10} |
There was a problem hiding this comment.
🔵 Needs a closer look
QA check: The code checks passed, but nobody has exercised the Help button, its panel or the deactivation window in a browser. Two inline comments ask for stronger tests.
Validation details
- Files reviewed: 8/8 changed files.
- PHPUnit 9.6.5, PHP 8.3, themeisle-sdk 3.3.72:
cd /repo; set -o pipefail; timeout 600 vendor/bin/phpunit --do-not-cache-result --filter 'Test_Support_Hub::' --testdox …printedOK (8 tests, 15 assertions)(run R2) - A base-tree run left no run record. By source, only the shown-screens test passes there.
- SDK 3.3.72 source reads both Otter filters on
init, after every plugin loads. SoOTTER_PRO_BASEFILEand$pagenoware set by then. - The Customizer prints no Help button. Core
customize.phpfires noadmin_enqueue_scriptsoradmin_footer.
QA steps
- Without a valid Pro license, open WP Admin → Otter Blocks. Expect a Help button at the bottom right.
- Under Useful links, click Contact Support. Expect the Help panel with a message form, and no new tab.
- Open Otter Blocks → Submissions. Expect the Help button.
- Open Posts → Add New, then Appearance → Widgets. Expect no Help button.
- Open Appearance → Customize → Widgets. Expect no Help button.
- On Plugins, click Deactivate under Otter Blocks. Expect one window with deactivation reasons.
Untested areas
- Playwright tests were not run because JavaScript dependencies were absent.
🤖 Automated review · run code-review-agent_6af61c41a2cfc5.23741192.
🤖 Review agent — review posted ✅ on 5739406f · commented · 2 findings · 32 min
Run code-review-agent_6af61c41a2cfc5.23741192 · trail
There was a problem hiding this comment.
🔵 Needs a closer look
QA check: Both earlier test findings are fixed, but nobody has exercised the Help panel or the deactivation window in a browser.
Validation details
- Files reviewed: 2/2 files changed since the prior review. The other 6 files are unchanged since run code-review-agent_6af61c41a2cfc5.23741192, not rerun.
- PHPUnit, PHP 8.3, themeisle-sdk 3.3.72:
cd /repo && set -o pipefail; timeout 200 vendor/bin/phpunit --do-not-cache-result --filter 'Test_Support_Hub::' 2>&1 | t…printedOK (9 tests, 15 assertions)(run R2) - At pr-base no callback is on
otter_blocks_hide_support_hub. By source, the four editor rows fail there. - The SDK prints
#ti-support-hubinadmin_footeronly when the hub loads. This comes from the prior run's SDK source read, not rerun.
QA steps
- Without a valid Pro license, open WP Admin → Otter Blocks. Expect a Help button at the bottom right.
- Under Useful links, click Contact Support. Expect the Help panel with a message form, and no new tab.
- Open Posts → Add New. Expect no Help button.
- On Plugins, click Deactivate under Otter Blocks. Expect one window with deactivation reasons.
Untested areas
- Playwright tests were not run. JavaScript dependencies were absent, and the sandbox site was down.
🤖 Automated review · run code-review-agent_6af6c61006a1e1.67867607.
🤖 Review agent — review posted ✅ on a60d51ac · commented · 0 findings · 6 min
Run code-review-agent_6af6c61006a1e1.67867607 · trail
|
🎉 This PR is included in version 3.2.11 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Otter now opts into the Themeisle SDK Support Hub, as Feedzy did in Codeinwp/feedzy-rss-feeds#1372. Free users get a Help button on Otter's screens to message our support team, and the support text no longer points free users only to the forum.
What changed
Support Hub — Otter passes its metadata to the SDK: a Pro flag for a valid Otter Pro license, and footer links to the documentation and the wordpress.org forum. The Pro flag reads the stored license, because the SDK asks for it while loading Otter, before Otter Pro's license filter exists. The Help button shows on the Otter dashboard and the Form Submissions list. The SDK's deactivation window replaces the old uninstall feedback popup for the free plugin.
Block editors — Otter also counts the block editor as its own screen, which would put the Help button on every post, site and widget editor. The Support Hub stays off those screens.
Dashboard → Useful links (free) — "Support" (the forum) becomes Contact Support, which opens the Help panel, plus a separate Community Forum link. If the Support Hub does not load, Contact Support opens the forum. Pro users with a valid license keep Contact Pro Support.
readme.txt / readme.md — "Where can I get help?" now mentions the Help button next to the support forum.
SDK —
codeinwp/themeisle-sdkrequires^3.3.70, the first version with the Support Hub. The lock already has 3.3.72.Note
The "Priority Support" items in the Pro upsell lists stay, because Pro support is still the faster route. No other text told free users that the forum is their only option.
QA
Use Otter without a valid Pro license. Go to
WP Admin → Otter Blocks.Expect: a Help button at the bottom right of the screen.
In the right sidebar, under Useful links, click Contact Support.
Expect: the Help panel opens with the message form, and the page does not navigate away.
Click Community Forum in the same box.
Expect: the Otter forum on wordpress.org opens in a new tab.
Go to
WP Admin → Otter Blocks → Submissions.Expect: the Help button shows on the submissions list.
Go to
WP Admin → Posts → Add New.Expect: no Help button in the block editor.
Go to
WP Admin → Pluginsand click Deactivate under Otter Blocks.Expect: the Support Hub deactivation window opens, with the deactivation reasons.
Activate Otter Pro with a valid license and reload
WP Admin → Otter Blocks.Expect: Useful links shows Contact Pro Support, linking to store.themeisle.com.
Review responses
Nobody exercised the Help button, its panel or the deactivation window in a browser. The Playwright suite covers the first part in CI.
Help launcher shows on the dashboard but not in the block editorchecks that the launcher is visible on the Otter dashboard and that the SDK's#ti-support-hubcontainer is absent in the post editor.free sidebar opens the Help panel and keeps the community forumclicks Contact Support and checks that the Help panel opens. The deactivation window (QA step 6) is the SDK's own screen and is still a manual step.Single form submission screen. Opening one submission uses
post.php, which this PR treats as an editor, so it shows no Help button. The submissions list does. The base branch had no Help button anywhere, so this is not a regression. Adding it there also needs a product-screen entry for that view. Left for a follow-up.Pro plan in support messages. For a licensed Pro site the SDK tags messages
plan="pro"without the price id, and with an emptylicense_status. It reads both through the free plugin'sPro Slugheader, which Otter does not have. Adding that header also makes the SDK Logger opt Pro sites into usage tracking by default, so it is a separate decision and not part of this PR.