wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

Display a tooltip when 'Test the page' is inactive

Open piotrbak opened this issue 1 month ago • 2 comments

Context

In column view, when the Test the page button is inactive, it's expected for customer to see the reason on why it's inactive.

Acceptance Criteria

GIVEN The Test the page button is not active on the page list view WHEN The customer hover the inactive button THEN We'll display a tooltip with the reason

Additional information

As a first step, in this issue, we need to write down the list of all scenarios when the Test the page is not active. When ready, we'll provide the copywriting.

  • The post is a draft

piotrbak avatar Nov 26 '25 16:11 piotrbak

Scope a solution

When the post is a draft, wrap the disabled "Test the page" button with the existing tooltip markup (.wpr-btn-with-tool-tip + .wpr-tooltip pattern already used in the same template).

Files to modify:

  • views/settings/partials/rocket-insights/rocket-insights-column.php - Add tooltip wrapper when is_draft is true
  • Add one translatable string for the tooltip message

Efforts

XS

Miraeld avatar Nov 28 '25 03:11 Miraeld

@piotrbak Don't we have more scenarios where the Test the page button could be inactive aside from draft mentioned above?

jeawhanlee avatar Nov 28 '25 10:11 jeawhanlee

LGTM

jeawhanlee avatar Dec 15 '25 08:12 jeawhanlee