Repository navigation
Conversation
The popover now opens with three cards: how long the site has used Progress Planner, the monthly badges earned and the tasks completed. Each year follows, newest first, with its badges in a four-column grid and its own badges-earned and tasks-completed numbers. Hovering (or tabbing to) a badge that can still be earned shows how many points are left; the current month's badge shows "In progress" with a short wobble, which is off for reduced motion. The widget link now reads "Show all my monthly badges!". The content and streak badges, and the hook pp-hosts uses to add its onboarding badges, stay below the monthly section until they get their own popovers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Test on Playground |
Plugin readme previewOpen preview · Commit 35 passed · 0 warnings · 2 notes Notes (2)
Passed checks (35)
Readme and PHP-header checks only; this does not test plugin runtime compatibility. |
✅ Code Coverage Report
🎉 Great job maintaining/improving code coverage! 📊 File-level Coverage Changes (3 files)📈 Coverage Improved
📉 Coverage Decreased
ℹ️ About this report
|
🔍 WordPress Plugin Check Report
📊 Report
|
| 📍 Line | 🔖 Check | 💬 Message |
|---|---|---|
103 |
WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in | Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://docs.wpvip.com/databases/optimize-queries/using-post__not_in/ for more information. |
📁 classes/suggested-tasks/providers/class-content-review.php (4 warnings)
| 📍 Line | 🔖 Check | 💬 Message |
|---|---|---|
232 |
WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in | Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://docs.wpvip.com/databases/optimize-queries/using-post__not_in/ for more information. |
377 |
WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in | Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://docs.wpvip.com/databases/optimize-queries/using-post__not_in/ for more information. |
381 |
WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in | Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://docs.wpvip.com/databases/optimize-queries/using-post__not_in/ for more information. |
388 |
WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in | Using exclusionary parameters, like post__not_in, in calls to get_posts() should be done with caution, see https://docs.wpvip.com/databases/optimize-queries/using-post__not_in/ for more information. |
📁 classes/activities/class-query.php (2 warnings)
| 📍 Line | 🔖 Check | 💬 Message |
|---|---|---|
71 |
PluginCheck.Security.DirectDB.UnescapedDBParameter | Unescaped parameter $table_name used in $wpdb->query()\n$table_name assigned unsafely at line 58. |
163 |
PluginCheck.Security.DirectDB.UnescapedDBParameter | Unescaped parameter $where_args used in $wpdb->get_results()\n$where_args assigned unsafely at line 153. |
📁 classes/suggested-tasks/data-collector/class-yoast-orphaned-content.php (1 warning)
| 📍 Line | 🔖 Check | 💬 Message |
|---|---|---|
111 |
PluginCheck.Security.DirectDB.UnescapedDBParameter | Unescaped parameter $query used in $wpdb->get_row()\n$query assigned unsafely at line 98. |
📁 classes/suggested-tasks/data-collector/class-terms-without-description.php (1 warning)
| 📍 Line | 🔖 Check | 💬 Message |
|---|---|---|
108 |
PluginCheck.Security.DirectDB.UnescapedDBParameter | Unescaped parameter $query used in $wpdb->get_results()\n$query assigned unsafely at line 106. |
📁 classes/suggested-tasks/data-collector/class-terms-without-posts.php (1 warning)
| 📍 Line | 🔖 Check | 💬 Message |
|---|---|---|
120 |
PluginCheck.Security.DirectDB.UnescapedDBParameter | Unescaped parameter $query used in $wpdb->get_results()\n$query assigned unsafely at line 118. |
🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check
32px inside the popover (--prpl-gap) and 6px between a badge and its name. No spacing variable gives 6px, so it is set directly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The popover asked each badge for its progress up to three times (for the
yearly numbers, the template and the hover state), and the hover state
also re-checked the previous two months for every badge. Each call on an
unfinished badge saves its progress, so one render tried to write the
settings 23 times on a site with four badges. Progress and hover state
are now worked out once per badge in get_popover_stats(), and the
template reads them from there: 5 writes on the same site.
The yearly "tasks completed" counted from 1 January, but the first
year's badges start later (November 2024, or the month of activation),
so earlier tasks were counted too. It now counts from the first badge
month of that year.
The hover details ("N points to go", "In progress") also show on focus,
so a tap on a touch screen reveals them; the outline stays for keyboard
focus only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review pass: what changed and whyRe-checked against pro#191 and the Figma spacing frame ("stats page popover monthly info"), and had the code reviewed again. Spacing from the design (0894ec4)
Work out each badge once (3a5d7bf)
Yearly "tasks completed" (3a5d7bf)
Touch screens (3a5d7bf)
Not changed
New tests cover the first-badge-month count and the per-badge data. The full suite passes, and the popover was checked in the browser. |
The tour opens the monthly badges popover on one step. A popover sits above everything else, including the tour box, and the redesigned popover is taller: on a 1280x720 screen it covered the tour's Next button (the e2e tour test failed on that). While the tour shows it, the popover now stays at the top with a lower maximum height, so the tour box fits below. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI: e2e tour test fixed (9bf62d3)Why it failed: the tour opens the monthly badges popover on one step. A popover sits above everything else, including the tour box. The redesigned popover is taller, and on Playwright's 1280×720 screen it covered the tour's "Next" button. On Fix: while the tour shows the popover, it stays at the top of the screen with a lower maximum height, so the tour box fits below it. Checked in the browser at 1280×720: every tour step's "Next" button is clickable. This also helps real users on short screens, not just the test. |
Implements https://github.com/ProgressPlanner/progress-planner-pro/issues/191 (step 1: the monthly badges popover)
Design: Figma
popover-badges, frames "stats page popover monthly" (+ "info" for spacing), "Component 2" (missed hover) and "badge + icon 1" (in-progress hover).What this does
prefers-reduced-motion.--prpl-background-paperinstead of#fff.Deliberately not changed (until pro#190)
The design shows only monthly badges. The content and streak badge groups, and the
progress_planner_popover_after_badge_groupshook pp-hosts uses for its onboarding badges, stay below the monthly section for now: the streak and content widgets still open this popover, and pp-hosts still renders into it. They move out when pro#190 gives them their own popovers.Notes for design
develop: the popover is rendered three times on the page (once by each of the monthly, content and streak widgets). This goes away with pro#190.Follow-up outside this repo
tokens.json: addprogress-plannertoreadByof--prpl-font-size-xl(used for the year headings; the tokens check warns about it).Testing
Checked in the browser on the Zonnet brand at 1400px, 800px and 420px; console clean. Multiple years were checked by temporarily setting the activation date to November 2024 (2026, 2025 and Nov–Dec 2024 shown; settings restored afterwards). New PHPUnit tests cover the months count, the missed / in-progress / complete states and the per-year counts; the full suite passes.
composer check-cs, PHPStan and CSS lint pass.Screenshots