| @@ -140,11 +140,11 @@ | ||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | public function ui_metadata(): array { |
| 143 | 143 | return array( |
| 144 | - 'label' => 'Health', | |
| 144 | + 'label' => __( 'Health', 'xspeed' ), | |
| 145 | 145 | 'icon' => 'HeartPulse', |
| 146 | - 'description' => 'Diagnostics, hit ratio, and recent cache activity.', | |
| 146 | + 'description' => __( 'Diagnostics, hit ratio, and recent cache activity.', 'xspeed' ), | |
| 147 | 147 | // Health is the single host page for all Insights (FBS-83633): |
| 148 | 148 | // a Recommendations action card + Cache / Visitors / PageSpeed |
| 149 | 149 | // tabs. HealthPanel renders the Free cache diagnostics (the old |
| 150 | 150 | // HealthCard) as the Cache tab and hosts the Pro insight panels |
| @@ -174,8 +174,9 @@ | ||
| 174 | 174 | array( |
| 175 | 175 | 'name' => 'xspeed health', |
| 176 | 176 | 'callback' => array( $this, 'cli_handler' ), |
| 177 | 177 | 'shortdesc' => 'Print diagnostic checks + cache stats + recent activity.', |
| 178 | + 'ai_hint' => 'Full diagnostic sweep: what is misconfigured or degraded on this site right now, plus cache stats and recent activity. The best FIRST call for open-ended "why is my site slow" or "is anything wrong" questions.', | |
| 178 | 179 | 'synopsis' => array(), |
| 179 | 180 | ), |
| 180 | 181 | array( |
| 181 | 182 | 'name' => 'xspeed recommend', |
| @@ -180,8 +181,9 @@ | ||
| 180 | 181 | array( |
| 181 | 182 | 'name' => 'xspeed recommend', |
| 182 | 183 | 'callback' => array( $this, 'cli_recommend' ), |
| 183 | 184 | 'shortdesc' => 'List ranked next-best-action recommendations, or apply one by id.', |
| 185 | + 'ai_hint' => 'The ranked list of what to do next to make this site faster, and the way to apply one. Use when asked "what should I improve" or "what\'s the biggest win" — each item is actionable and ordered by impact.', | |
| 184 | 186 | 'synopsis' => array( |
| 185 | 187 | array( |
| 186 | 188 | 'type' => 'positional', |
| 187 | 189 | 'name' => 'action', |