Skip to content

Comments

Show 3 suggested tasks on WP Dashboard#756

Merged
ilicfilip merged 1 commit intodevelopfrom
filip/dashboard-tasks-per-page
Feb 18, 2026
Merged

Show 3 suggested tasks on WP Dashboard#756
ilicfilip merged 1 commit intodevelopfrom
filip/dashboard-tasks-per-page

Conversation

@ilicfilip
Copy link
Collaborator

Summary

  • Add get_per_page() helper method to Suggested_Tasks widget
  • Returns 3 tasks on the WP Dashboard screen, 5 on all other screens
  • Replaces direct constant reference in class-enqueue.php

Test plan

  • Visit WP Dashboard — suggested tasks widget shows 3 tasks
  • Visit Progress Planner page — suggested tasks shows 5 tasks

🤖 Generated with Claude Code

Add get_per_page() helper to Suggested_Tasks widget that returns
PER_PAGE_DASHBOARD (3) on the WP Dashboard screen and PER_PAGE_DEFAULT (5)
on all other screens.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ilicfilip ilicfilip merged commit c53a43e into develop Feb 18, 2026
20 of 22 checks passed
@ilicfilip ilicfilip deleted the filip/dashboard-tasks-per-page branch February 18, 2026 11:13
@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

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

@github-actions
Copy link
Contributor

✅ Code Coverage Report

Metric Value
Total Coverage 31.48% 📉
Base Coverage 31.48%
Difference 📈 0.00%

⚠️ Coverage below recommended 40% threshold

🎉 Great job maintaining/improving code coverage!

ℹ️ 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

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