Skip to content

Add year-specific monthly badge names with 2026 names - #758

Merged
ilicfilip merged 2 commits into
developfrom
filip/yearly-badge-names
Aug 25, 2026
Merged

Add year-specific monthly badge names with 2026 names#758
ilicfilip merged 2 commits into
developfrom
filip/yearly-badge-names

Conversation

@ilicfilip

@ilicfilip ilicfilip commented Feb 19, 2026

Copy link
Copy Markdown
Collaborator

Addresses https://github.com/ProgressPlanner/progress-planner-pro/issues/201 (item 3: badges per year)

Summary

  • get_badge_name now accepts an optional $year parameter to return year-specific badge names
  • Adds 2026 badge names (Jamie January, Freya February, etc.)
  • Default/2025 names are used as fallback when no year-specific names are defined
  • To add future years, just add an entry to the yearly_names array

Test plan

  • Verify 2025 badges still show original names (Jack January, etc.)
  • Verify 2026 badges show new names (Jamie January, etc.)
  • Verify years without specific names fall back to defaults

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ilicfilip ilicfilip added this to the 1.10.0 milestone Feb 19, 2026
@github-actions

github-actions Bot commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Test merged PR on Playground
Test this pull request on the Playground
or download the zip

@ilicfilip
ilicfilip marked this pull request as ready for review February 19, 2026 14:54
@ilicfilip
ilicfilip requested review from aristath and removed request for aristath February 19, 2026 14:54
@ilicfilip
ilicfilip marked this pull request as draft February 19, 2026 14:55
@github-actions

github-actions Bot commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

✅ Code Coverage Report

Metric Value
Total Coverage 31.74% 📉
Base Coverage 31.60%
Difference 📈 0.14%

⚠️ Coverage below recommended 40% threshold

🎉 Great job maintaining/improving code coverage!

📊 File-level Coverage Changes (1 files)

📈 Coverage Improved

Class Before After Change
Progress_Planner\Badges\Monthly 72.17% 75.19% +3.02%
ℹ️ About this report
  • All tests run in a single job with Xdebug coverage
  • Security tests excluded from coverage to prevent output issues
  • Coverage calculated from line coverage percentages

@github-actions

github-actions Bot commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

🔍 WordPress Plugin Check Report

⚠️ Status: Passed with warnings

📊 Report

🎯 Total Issues ❌ Errors ⚠️ Warnings
10 0 10

⚠️ Warnings (10)

📁 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/suggested-tasks/data-collector/class-unpublished-content.php (1 warning)
📍 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/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.
📁 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.

🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@ilicfilip
ilicfilip marked this pull request as ready for review March 3, 2026 11:26
@ilicfilip
ilicfilip merged commit 13604f6 into develop Aug 25, 2026
22 checks passed
@ilicfilip
ilicfilip deleted the filip/yearly-badge-names branch August 25, 2026 11:11
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.

1 participant