Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
326 commits
Select commit Hold shift + click to select a range
f199f7c
Split streaks widget
aristath Aug 21, 2025
caa4511
add more content to playground instance
ilicfilip Aug 21, 2025
9c18a08
Merge pull request #583 from ProgressPlanner/filip/update-playground-…
ilicfilip Aug 21, 2025
e323f61
Merge branch 'develop' into ari/split-widgets
ilicfilip Aug 21, 2025
4bc191d
Merge branch 'develop' into filip/v17/blog-post-widget
ilicfilip Aug 21, 2025
825847f
Merge branch 'develop' into ari/split-streaks-widget
ilicfilip Aug 21, 2025
567aff0
Merge pull request #552 from ProgressPlanner/filip/v17/blog-post-widget
ilicfilip Aug 21, 2025
55f51f7
correct cta color
ilicfilip Aug 21, 2025
1a30a6e
WIP: missed badges styling
ilicfilip Aug 21, 2025
5398b85
update styling
ilicfilip Aug 22, 2025
bbfac2e
Merge branch 'ari/split-widgets' into filip/v18/missed-badges
ilicfilip Aug 25, 2025
f664045
remove badge scroller
ilicfilip Aug 25, 2025
0e42d4d
Merge branch 'develop' into ari/split-widgets
ilicfilip Aug 25, 2025
39c8e8f
update font size and badge spacing
ilicfilip Aug 26, 2025
cea0c8d
Merge branch 'ari/split-widgets' into ari/split-streaks-widget
aristath Aug 27, 2025
d39ebef
WIP
aristath Aug 27, 2025
604f918
admin pages background tweaks
ilicfilip Aug 27, 2025
f9f676d
grid-auto-flow: dense;
ilicfilip Aug 27, 2025
54d0307
titles on the settings page
ilicfilip Aug 27, 2025
7e8aa30
Cleanup & reorder
aristath Aug 27, 2025
ca80939
Refactor - fix responsiveness
aristath Aug 28, 2025
e6ea5be
Merge pull request #589 from ProgressPlanner/ari/refactor-masonry
aristath Aug 28, 2025
81f0515
PHPStan fix
aristath Aug 28, 2025
70ec7f5
fix templates
aristath Aug 29, 2025
55ba6d2
Fix the context of the maintenance badges
aristath Aug 29, 2025
7695f29
Merge pull request #584 from ProgressPlanner/filip/correct-cta-color
aristath Aug 29, 2025
5f0c6fa
Merge branch 'develop' into ari/split-streaks-widget
aristath Aug 29, 2025
e5ebca0
Merge branch 'develop' into ari/split-widgets
aristath Aug 29, 2025
029c2b4
Merge branch 'ari/split-widgets' into ari/split-streaks-widget
ilicfilip Aug 29, 2025
5b8ae3b
try to fix widget changing places due to re-calcs
ilicfilip Aug 29, 2025
eacb2c4
Merge branch 'ari/split-widgets' into filip/v18/missed-badges
aristath Sep 1, 2025
34511f6
Merge branch 'develop' into filip/v18/background-tweaks
aristath Sep 1, 2025
23191da
Merge pull request #582 from ProgressPlanner/ari/split-streaks-widget
aristath Sep 1, 2025
ca20d60
Add structure & filters for actions
aristath Sep 1, 2025
b73c587
No need for the 3rd param
aristath Sep 1, 2025
fe8fe6e
Checkbox
aristath Sep 1, 2025
46d9b78
arrow
aristath Sep 1, 2025
85c3f7e
CS fixes
aristath Sep 1, 2025
54590e3
set date format
ilicfilip Sep 1, 2025
a53417d
changelog
ilicfilip Sep 1, 2025
b32ddff
add content for arrow template
aristath Sep 1, 2025
bab0bfa
Move buttons
aristath Sep 1, 2025
35d154b
fix condition
aristath Sep 1, 2025
8d2722c
update background
ilicfilip Sep 1, 2025
1809a1e
fix HTML error
aristath Sep 1, 2025
8b83a62
Add extra actions
aristath Sep 1, 2025
7522d4e
Add more actions
aristath Sep 2, 2025
84fe8f0
Fix PHP errors
aristath Sep 2, 2025
d4fe6f9
background color adjustments
ilicfilip Sep 2, 2025
9f01f3c
cleanup
ilicfilip Sep 2, 2025
516b491
Add get_task_actions method to providers (WIP)
aristath Sep 3, 2025
515a08f
WIP - convert more tasks
aristath Sep 3, 2025
75f7f38
Last batch of get_task_actions conversions
aristath Sep 3, 2025
6638c4e
Refactor actions adding
aristath Sep 4, 2025
f44bdd3
cleanup
aristath Sep 4, 2025
6d53be9
Cleanup some translation strings
aristath Sep 4, 2025
0987be3
echo value
ilicfilip Sep 4, 2025
9d73c5f
Remove views
aristath Sep 4, 2025
62a0a6b
Merge remote-tracking branch 'origin/ari/add-actions' into ari/add-ac…
aristath Sep 4, 2025
736a80c
Remove blank line added for merging purposes
aristath Sep 4, 2025
60470b5
`get_task_action_text` no longer needed
aristath Sep 4, 2025
0c74c5a
Update classes/suggested-tasks/providers/class-remove-terms-without-p…
aristath Sep 4, 2025
5fb5d5f
remove 'task_action_text' leftovers
ilicfilip Sep 4, 2025
f6f0099
remove 'actions', it is empty array
ilicfilip Sep 4, 2025
0c6af2a
Combine methods
aristath Sep 4, 2025
08155a5
Merge remote-tracking branch 'origin/ari/add-actions' into ari/add-ac…
ilicfilip Sep 4, 2025
d70f82e
Merge branch 'main' into develop
aristath Sep 4, 2025
5486c43
Merge branch 'develop' into ari/add-actions
aristath Sep 4, 2025
7891e8a
Merge branch 'develop' into ari/split-widgets
aristath Sep 4, 2025
bfdb37e
Merge branch 'develop' into filip/v18/background-tweaks
ilicfilip Sep 4, 2025
3ce82da
one more WP core menu adjustment
ilicfilip Sep 4, 2025
70312cb
increase spacing to 1.25rem (20px)
ilicfilip Sep 4, 2025
1655976
Merge branch 'develop' into filip/v18/styling-tweaks-pro-129
aristath Sep 5, 2025
4df76ec
Merge branch 'develop' into filip/v18/set-date-format
aristath Sep 5, 2025
db62386
Merge branch 'ari/split-widgets' into ari/add-actions
aristath Sep 5, 2025
0033320
Merge pull request #591 from ProgressPlanner/ari/add-actions
aristath Sep 5, 2025
49b2c9f
No need for prpl_task_actions to be inside meta
aristath Sep 5, 2025
6626739
Cleanup for prpl_dismissable
aristath Sep 5, 2025
eb49143
Deprecate useCheckbox & useArrow
aristath Sep 5, 2025
98d377b
Deprecate the `prpl_snoozable` post-meta
aristath Sep 5, 2025
0e38b12
No need to use prplTerms in the suggested-task template
aristath Sep 5, 2025
ea1bf3b
better badge alignment
ilicfilip Sep 5, 2025
619b06c
adjust task title color
ilicfilip Sep 5, 2025
cb05115
CSS tweak
aristath Sep 5, 2025
0f8c27c
tweak usage of prplTerms
aristath Sep 5, 2025
7affa1d
Merge pull request #596 from ProgressPlanner/filip/v18/better-badge-a…
aristath Sep 5, 2025
1d511a9
Merge branch 'develop' into ari/split-widgets
aristath Sep 5, 2025
ecd8b9b
Merge pull request #592 from ProgressPlanner/filip/v18/styling-tweaks…
aristath Sep 8, 2025
abc7f80
Merge branch 'develop' into ari/split-widgets
aristath Sep 8, 2025
016efcd
Add subtitle paragraph
aristath Sep 8, 2025
c8be3b3
Remove background colors
aristath Sep 8, 2025
9339db3
widgets tweaks
aristath Sep 8, 2025
970a7fe
More tweaks to the badges HTML
aristath Sep 8, 2025
25e59cf
Merge branch 'develop' into filip/v18/background-tweaks
ilicfilip Sep 8, 2025
71284b6
Fix task actions priorities
aristath Sep 8, 2025
f9791cd
Remove `info` action
aristath Sep 8, 2025
7460570
add localized date format to the selection
ilicfilip Sep 8, 2025
0182620
merge split-widgets
ilicfilip Sep 8, 2025
32fd8b9
Revert "merge split-widgets"
ilicfilip Sep 8, 2025
ca83a60
Merge branch 'ari/split-widgets' into filip/v18/missed-badges
ilicfilip Sep 8, 2025
70ef237
Merge branch 'develop' into filip/v18/set-date-format
ilicfilip Sep 8, 2025
a78137d
tweak
ilicfilip Sep 8, 2025
7797ddd
Ran `composer fix-cs`
aristath Sep 8, 2025
03e2263
Just a minor tweak for easier readability
aristath Sep 8, 2025
76cb00a
Merge pull request #585 from ProgressPlanner/filip/v18/missed-badges
ilicfilip Sep 8, 2025
188c39c
content context
ilicfilip Sep 8, 2025
68ac56a
styling fixes
ilicfilip Sep 8, 2025
1593c61
Merge pull request #598 from ProgressPlanner/filip/v18/fix-168-pro
aristath Sep 9, 2025
39d9809
CSS tweak
aristath Sep 9, 2025
9c2791d
an update for pro-168
ilicfilip Sep 9, 2025
4e6e329
Add edit action in todos
aristath Sep 9, 2025
911855c
Merge remote-tracking branch 'origin/ari/split-widgets' into ari/spli…
ilicfilip Sep 9, 2025
1c4f834
golden task to the top of the list
ilicfilip Sep 9, 2025
013ab83
move up / down arrows outside of the <li>
ilicfilip Sep 9, 2025
57c08d4
Merge pull request #588 from ProgressPlanner/filip/v18/background-tweaks
aristath Sep 9, 2025
cdd5e7a
Merge branch 'develop' into ari/split-widgets
aristath Sep 9, 2025
d8b919d
todo list "completed tasks" arrow
ilicfilip Sep 9, 2025
87f91d4
Remove `Mark as complete` from todos
aristath Sep 9, 2025
70e4523
Merge pull request #520 from ProgressPlanner/ari/split-widgets
aristath Sep 9, 2025
fe35bb8
v1.8.0
aristath Sep 9, 2025
3f7399a
Changelog
aristath Sep 9, 2025
461ccc8
Revert "Remove `info` action"
aristath Sep 9, 2025
f2c3b48
Conditionally add `info`
aristath Sep 9, 2025
2b04ed4
put back silver task styling
ilicfilip Sep 9, 2025
857a754
Merge remote-tracking branch 'origin/develop' into develop
ilicfilip Sep 9, 2025
e61ca98
shorten it
aristath Sep 9, 2025
c3eeba0
change selector
ilicfilip Sep 9, 2025
4e2b3ef
Merge branch 'develop' into filip/v18/set-date-format
aristath Sep 9, 2025
4150997
put back trash can
ilicfilip Sep 9, 2025
0a0822e
WIP: delete all completed tasks button
ilicfilip Sep 9, 2025
a3285d3
small CSS fix for the delete buttons
ilicfilip Sep 9, 2025
63e03b1
popover for "delete all completed tasks"
ilicfilip Sep 9, 2025
dde527a
Merge branch 'develop' into filip/v18/styling-changes
ilicfilip Sep 9, 2025
5d2814b
we have 2 delete buttons now, be more specific
ilicfilip Sep 9, 2025
a38432f
Merge remote-tracking branch 'origin/filip/v18/styling-changes' into …
ilicfilip Sep 9, 2025
0014ab8
be more specific one more time
ilicfilip Sep 9, 2025
d6d5a74
add missing EXTERNAL_LINK_URL
aristath Sep 10, 2025
e0028da
Merge branch 'develop' into filip/v18/styling-changes
ilicfilip Sep 10, 2025
94a718a
Add more EXTERNAL_LINK_URL
aristath Sep 10, 2025
951253f
remove unused JS localization
ilicfilip Sep 10, 2025
d70d626
Remove get_description methods where possible
aristath Sep 10, 2025
47de47f
Increase PHPStan checks to level 9
aristath Sep 10, 2025
d0360a8
More tweaks
aristath Sep 10, 2025
fe995c9
Revert "More tweaks"
aristath Sep 10, 2025
8ad9cb7
Revert "Increase PHPStan checks to level 9"
aristath Sep 10, 2025
a95278d
WIP on ari/phpstan-level-9
aristath Sep 10, 2025
9bcf528
`property.nonObject` & `parameter.phpDocType`
aristath Sep 10, 2025
1e54937
Merge pull request #603 from ProgressPlanner/ari/phpstan-level-9
aristath Sep 11, 2025
097c527
Merge branch 'develop' into filip/v18/styling-changes
aristath Sep 11, 2025
0b01474
Merge branch 'develop' into filip/v19/remove-unused-js-localization
aristath Sep 11, 2025
6a74739
Merge pull request #601 from ProgressPlanner/filip/v19/remove-unused-…
aristath Sep 11, 2025
ebd3288
Merge branch 'develop' into filip/v18/styling-changes
aristath Sep 11, 2025
81b0000
onboard background
ilicfilip Sep 11, 2025
9f7c82d
Merge pull request #600 from ProgressPlanner/filip/v18/styling-changes
aristath Sep 11, 2025
03b95c2
Merge pull request #604 from ProgressPlanner/filip/v18/onboard-backgr…
aristath Sep 11, 2025
9c89426
fix user login redirect
ilicfilip Sep 11, 2025
efbe2f3
changelog
ilicfilip Sep 11, 2025
0dcd36a
Minor tweak to make adding data more consistent
aristath Sep 11, 2025
954319f
Merge branch 'develop' into filip/v18/fix-login-redirect
ilicfilip Sep 11, 2025
d2c0c56
Stop saving `prpl_popover_id` as a post-meta
aristath Sep 11, 2025
37a6c90
CS
aristath Sep 11, 2025
5be826c
Merge remote-tracking branch 'origin/filip/v18/fix-login-redirect' in…
ilicfilip Sep 11, 2025
1fdb59b
Merge pull request #606 from ProgressPlanner/filip/v18/fix-login-redi…
aristath Sep 11, 2025
a261ddc
Merge branch 'develop' into filip/v18/set-date-format
ilicfilip Sep 11, 2025
e7f16f8
add action link
ilicfilip Sep 11, 2025
5cf4f9c
Merge pull request #607 from ProgressPlanner/convert-meta/prpl_popove…
aristath Sep 11, 2025
6bc56d7
`prpl_url_target` is no longer needed
aristath Sep 11, 2025
8afee58
Merge branch 'develop' into filip/v18/set-date-format
aristath Sep 11, 2025
30b7b0e
fix the popover-ID after latest merge
aristath Sep 11, 2025
66388a5
`prpl_external_link_url` is no longer necessary as a post-meta
aristath Sep 11, 2025
dcf7cfd
verify / set date format
ilicfilip Sep 11, 2025
3621e65
Merge branch 'develop' into filip/v18/set-date-format
ilicfilip Sep 11, 2025
06be9c5
replace missed placeholder
ilicfilip Sep 11, 2025
59e5fff
phpcs
ilicfilip Sep 11, 2025
22914dd
Additional checks in the 1.6.1 migration class
aristath Sep 12, 2025
704584d
Merge branch 'develop' into filip/v18/set-date-format
ilicfilip Sep 12, 2025
2e36a0d
CS fix
aristath Sep 12, 2025
b0967ac
Merge branch 'develop' into filip/v18/set-date-format
ilicfilip Sep 12, 2025
943c093
minor syntax tweak
aristath Sep 12, 2025
7d0116d
move form contents to the view
ilicfilip Sep 12, 2025
eba9422
Merge remote-tracking branch 'origin/filip/v18/set-date-format' into …
ilicfilip Sep 12, 2025
de3983e
convert view to html
ilicfilip Sep 12, 2025
54319b2
Tweak to improve translation strings
aristath Sep 12, 2025
2fbda76
Ran `composer fix-cs`
aristath Sep 12, 2025
3a0349d
Avoid adding a new views folder for just 1 view
aristath Sep 12, 2025
0a9be79
add cap check before adding action links & more
ilicfilip Sep 12, 2025
0385328
click events
ilicfilip Sep 12, 2025
7f01cda
hover states
ilicfilip Sep 12, 2025
59cb0f6
target="_self"
ilicfilip Sep 12, 2025
73f2be3
Merge pull request #610 from ProgressPlanner/filip/v18/todo-styling
aristath Sep 15, 2025
6738cb4
Fix `target` attribute in links for consistency
aristath Sep 15, 2025
bf801f8
Merge pull request #609 from ProgressPlanner/filip/v18/action-links-cap
aristath Sep 15, 2025
867a99f
Merge branch 'develop' into filip/v18/set-date-format
ilicfilip Sep 15, 2025
8026e1a
lang name & site localized date format as first suggestion
ilicfilip Sep 15, 2025
2951fe2
Merge pull request #590 from ProgressPlanner/filip/v18/set-date-format
ilicfilip Sep 15, 2025
237d8fe
fix <a> target
ilicfilip Sep 15, 2025
653b4bb
fix review content link
ilicfilip Sep 15, 2025
3d2b551
live-update points
aristath Sep 15, 2025
ffbe8d5
Merge branch 'develop' into filip/v18/fixes
aristath Sep 15, 2025
f7e5842
Merge pull request #611 from ProgressPlanner/filip/v18/fixes
ilicfilip Sep 15, 2025
6f430e2
fix query
ilicfilip Sep 15, 2025
b1f6006
remove empty line
ilicfilip Sep 15, 2025
3e8bce4
Merge pull request #612 from ProgressPlanner/filip/v18/fix-query-acti…
aristath Sep 15, 2025
700a754
Fix URL
aristath Sep 16, 2025
c05729b
Merge remote-tracking branch 'origin/develop' into develop
aristath Sep 16, 2025
8408026
Change the wording
aristath Sep 16, 2025
a542ba0
Open in the same tab
aristath Sep 16, 2025
20dc474
Fix link
aristath Sep 16, 2025
ad6b384
another URL fix
aristath Sep 16, 2025
b8a795c
target="_parent"
ilicfilip Sep 16, 2025
833468b
Merge pull request #613 from ProgressPlanner/filip/v18/core-update-pa…
aristath Sep 16, 2025
008da7d
trigger grid resize after every added item
ilicfilip Sep 16, 2025
041e414
Merge pull request #614 from ProgressPlanner/filip/v18/grid-resize
aristath Sep 16, 2025
7c0b3eb
Change URL & action
aristath Sep 16, 2025
096d518
enqueue test email script only when Recommendations widget is displayed
ilicfilip Sep 16, 2025
d3af741
set alt attribute for badges
ilicfilip Sep 16, 2025
42ae3af
Separate points-mod function
aristath Sep 16, 2025
e748db1
Dont display Snooze & Mark as complete action links for lower level u…
ilicfilip Sep 16, 2025
5e3829b
Revert "Dont display Snooze & Mark as complete action links for lower…
ilicfilip Sep 16, 2025
fca2308
Dont display Snooze & Mark as complete action links for lower level u…
ilicfilip Sep 16, 2025
5949012
Merge branch 'develop' into filip/v18/badges-alt-attribute
aristath Sep 16, 2025
81de1e5
tweak the web-component, adding badgeName in the constructor
aristath Sep 16, 2025
be33ffb
Improve playground workflow
jdevalk Sep 16, 2025
7982b33
Add PR number to zip name
jdevalk Sep 16, 2025
bbce8d8
Revert adding PR number to zip name as it has unintend consequences
jdevalk Sep 16, 2025
5403b02
missed gauge badge
ilicfilip Sep 16, 2025
36c566d
See if we can reliably add the PR number to the version number
jdevalk Sep 16, 2025
991ef2c
switch playground blueprint link and logic
jdevalk Sep 16, 2025
13dac21
Try to use local blueprint file
jdevalk Sep 16, 2025
1b1078b
less space for the up / down arrows
ilicfilip Sep 16, 2025
61c2f9f
Escape the slashes
jdevalk Sep 16, 2025
ba28427
Try to parse and stringify
jdevalk Sep 16, 2025
7a50fe0
silver & golden task styling for dashboard widget
ilicfilip Sep 16, 2025
9477d43
switch from blueprint.json to playground.json
jdevalk Sep 16, 2025
4948aae
Fix the replacement of the artifact URL
jdevalk Sep 16, 2025
48562df
Merge pull request #617 from ProgressPlanner/filip/v18/badges-alt-att…
ilicfilip Sep 16, 2025
c9d5e4b
Merge branch 'develop' into filip/v18/hide-some-actions
ilicfilip Sep 16, 2025
d07c88a
merged workflow too
jdevalk Sep 16, 2025
fa25a9c
Merge pull request #619 from ProgressPlanner/jdv/improve-playground-w…
jdevalk Sep 16, 2025
dd44349
Merge branch 'develop' into filip/v18/hide-some-actions
ilicfilip Sep 16, 2025
c0d4cb9
point should be aligned to the right (end)
ilicfilip Sep 16, 2025
0291390
Merge branch 'develop' into filip/v18/tweak-todo-dashboard-widget
ilicfilip Sep 16, 2025
d5e426c
Merge pull request #620 from ProgressPlanner/filip/v18/tweak-todo-das…
aristath Sep 17, 2025
0cc8fd3
Merge pull request #618 from ProgressPlanner/filip/v18/hide-some-actions
aristath Sep 17, 2025
ff65539
Merge pull request #616 from ProgressPlanner/filip/v18/enqueu-test-email
aristath Sep 17, 2025
c539937
changelog
aristath Sep 17, 2025
f783dca
dont remove span.number
ilicfilip Sep 17, 2025
f8dbd8c
Revert "dont remove span.number"
ilicfilip Sep 17, 2025
40bf110
the points are already updated in the prplUpdatePreviousMonthBadgeCou…
ilicfilip Sep 17, 2025
b189732
Merge pull request #622 from ProgressPlanner/filip/v18/fix-621
ilicfilip Sep 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .github/workflows/playground-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,35 @@ jobs:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
actions: read
steps:
- name: Prepare blueprint with artifact link
id: blueprint
run: |
set -euxo pipefail
ARTIFACT_URL="${{ github.server_url }}/${{ github.repository }}/archive/refs/heads/develop.zip"

# Use Node.js to parse, modify, and stringify the JSON
BLUEPRINT=$(node -e "
const fs = require('fs');
const blueprint = JSON.parse(fs.readFileSync('.wordpress-org/blueprints/playground.json', 'utf8'));
blueprint.plugins = blueprint.plugins.map(plugin =>
plugin === '${{ github.event.repository.name }}' ? '$ARTIFACT_URL' : plugin
);
console.log(JSON.stringify(blueprint));
")

# Base64 encode the blueprint
ENCODED_BLUEPRINT=$(echo -n "$BLUEPRINT" | base64 -w 0)

echo "blueprint=$ENCODED_BLUEPRINT" >> "$GITHUB_OUTPUT"

# Comment with a Playground link that installs from the artifact ZIP
- uses: mshick/add-pr-comment@v2
with:
message: |
**Test merged PR on Playground**
[Test this pull request on the Playground](https://playground.wordpress.net/?blueprint-url=https%3A%2F%2Fprogressplanner.com%2Fresearch%2Fblueprint-pp.php%3Frepo%3D${{ github.repository }}) or [download the zip](${{ github.server_url }}/${{ github.repository }}/archive/refs/heads/develop.zip).
[Test this pull request on the Playground](https://playground.wordpress.net/#${{ steps.blueprint.outputs.blueprint }})
or [download the zip](${{ github.server_url }}/${{ github.repository }}/archive/refs/heads/develop.zip)
80 changes: 78 additions & 2 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,89 @@ on:
pull_request:

jobs:
test:
playground:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
actions: read

steps:
- uses: actions/checkout@v4

# Prepare a folder named exactly like the repo as the plugin root.
# If the repo already has such a folder (common for WP plugins), use it.
# Otherwise, stage one and copy root files into it (excluding CI junk).
- name: Prepare plugin folder
id: prep
run: |
set -euxo pipefail
REPO="${{ github.event.repository.name }}"
if [ -d "$REPO" ]; then
# Plugin already lives in a subfolder named like the repo
echo "PKG_DIR=$REPO" >> "$GITHUB_OUTPUT"
else
# Create a clean staging dir to avoid copying into itself
STAGE="${REPO}-pkg"
mkdir -p "$STAGE/$REPO"
rsync -a \
--exclude='.git' \
--exclude='.github' \
--exclude='node_modules' \
--exclude="${STAGE}" \
./ "$STAGE/$REPO/"
echo "PKG_DIR=$STAGE/$REPO" >> "$GITHUB_OUTPUT"

fi

- name: Update plugin version with PR number
run: |
set -euxo pipefail
PLUGIN_FILE="${{ steps.prep.outputs.PKG_DIR }}/${{ github.event.repository.name }}.php"
PR_NUMBER="${{ github.event.number }}"

# Extract current version and add PR number
CURRENT_VERSION=$(grep -o "Version:[[:space:]]*[0-9.]*" "$PLUGIN_FILE" | sed 's/Version:[[:space:]]*//')
NEW_VERSION="${CURRENT_VERSION} - PR ${PR_NUMBER}"

# Replace the version line
sed -i "s/Version:[[:space:]]*[0-9.]*/Version: ${NEW_VERSION}/" "$PLUGIN_FILE"

- name: Prepare blueprint with artifact link
id: blueprint
run: |
set -euxo pipefail
ARTIFACT_URL="https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}/${{ github.event.repository.name }}.zip"

# Use Node.js to parse, modify, and stringify the JSON
BLUEPRINT=$(node -e "
const fs = require('fs');
const blueprint = JSON.parse(fs.readFileSync('.wordpress-org/blueprints/playground.json', 'utf8'));
blueprint.plugins = blueprint.plugins.map(plugin =>
plugin === '${{ github.event.repository.name }}' ? '$ARTIFACT_URL' : plugin
);
console.log(JSON.stringify(blueprint));
")

# Base64 encode the blueprint
ENCODED_BLUEPRINT=$(echo -n "$BLUEPRINT" | base64 -w 0)

echo "blueprint=$ENCODED_BLUEPRINT" >> "$GITHUB_OUTPUT"

# Upload the FOLDER (not a .zip). The artifact service zips it for us,
# keeping the top-level folder name inside the archive.
- name: Upload plugin artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: ${{ steps.prep.outputs.PKG_DIR }}
# Optional: faster uploads for already-compressed assets
compression-level: 0

# Comment with a Playground link that installs from the artifact ZIP
- uses: mshick/add-pr-comment@v2
with:
message: |
**Test on Playground**
[Test this pull request on the Playground](https://playground.wordpress.net/?blueprint-url=https%3A%2F%2Fprogressplanner.com%2Fresearch%2Fblueprint-pp.php%3Frepo%3D${{ github.repository }}%26branch%3D${{ github.head_ref }}) or [download the zip](${{ github.server_url }}/${{ github.repository }}/archive/${{ github.sha }}.zip).
[Test this pull request on the Playground](https://playground.wordpress.net/#${{ steps.blueprint.outputs.blueprint }})
or [download the zip](https://nightly.link/${{ github.repository }}/actions/runs/${{ github.run_id }}/${{ github.event.repository.name }}.zip)
26 changes: 12 additions & 14 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"landingPage": "\/wp-admin\/admin.php?page=progress-planner",
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "defineWpConfigConsts",
"consts": {
"IS_PLAYGROUND_PREVIEW": true
}
}
]
"landingPage": "/wp-admin/admin.php?page=progress-planner",
"features": {
"networking": true
},
"plugins": [
"progress-planner"
],
"steps": [
{
"step": "login"
}
]
}
31 changes: 31 additions & 0 deletions .wordpress-org/blueprints/playground.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"landingPage": "/wp-admin/admin.php?page=progress-planner",
"features": {
"networking": true
},
"plugins": [
"progress-planner",
"wordpress-seo"
],
"steps": [
{
"step": "login"
},
{
"step": "setSiteOptions",
"options": {
"wpseo": "a:5:{s:22:\"show_onboarding_notice\";b:0;s:36:\"dismiss_configuration_workout_notice\";b:1;s:18:\"first_time_install\";b:0;s:34:\"activation_redirect_timestamp_free\";i:1652258756;s:34:\"should_redirect_after_install_free\";b:0;}"
}
},
{
"step": "defineWpConfigConsts",
"consts": {
"IS_PLAYGROUND_PREVIEW": true,
"WPSEO_PREMIUM_FILE": "override",
"WPSEO_PREMIUM_VERSION": "24.8.1",
"YOAST_ENVIRONMENT": "development",
"WP_ENVIRONMENT_TYPE": "development"
}
}
]
}
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
= 1.8.0 =

Enhancements:

* Redesign of the admin pages.
* Improved capability checks.
* a11y improvements.

Added these recommendations from Ravi:

* Set date format.

Bugs we fixed:

* Fix redirecting to Progress Planner Dashboard after login.

= 1.7.2 =

Expand Down
58 changes: 51 additions & 7 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
--prpl-color-notification-green: #16a34a;
--prpl-color-notification-red: #e73136;

--prpl-color-button-primary: #dd3244;
--prpl-color-button-primary-hover: #cf2441;

--prpl-background-orange: #fff9f0;
--prpl-background-purple: #f6f5fb;
--prpl-background-green: #f2faf9;
Expand All @@ -50,14 +53,34 @@
--prpl-font-size-6xl: 4.5rem; /* 72px */
}

/*------------------------------------*\
Progress Planner dashboard page.
\*------------------------------------*/
/* stylelint-disable-next-line selector-class-pattern */
body.toplevel_page_progress-planner {

#wpwrap {
background-color: #f6f7f9;
}

ul#adminmenu {

a.wp-has-current-submenu,
>li.current > a.current {

&::after {
border-right-color: #f6f7f9 !important;
}
}
}
}

/*------------------------------------*\
Styles for the container of the page.
\*------------------------------------*/
.prpl-wrap {
background: #fff;
border: 1px solid var(--prpl-color-gray-2);
border-radius: var(--prpl-border-radius);
padding: var(--prpl-settings-page-gap) calc(var(--prpl-padding) * 2);
padding: var(--prpl-settings-page-gap) var(--prpl-padding);
max-width: var(--prpl-container-max-width);
color: var(--prpl-color-text);
font-size: var(--prpl-font-size-base);
Expand Down Expand Up @@ -97,6 +120,14 @@
color: var(--prpl-color-link);
}

.prpl-widget-width-2 {
grid-column: span 2;

.prpl-widget-description {
max-width: 640px;
}
}

.prpl-widget-title {
margin-top: 0;
font-size: 1.375rem;
Expand Down Expand Up @@ -190,6 +221,7 @@ button.prpl-info-icon {
padding: 0.4em;

/* color: var(--prpl-color-gray-2); */
background-color: #fff;
border: 1px solid var(--prpl-color-gray-2);
border-radius: var(--prpl-border-radius);

Expand Down Expand Up @@ -218,6 +250,7 @@ button.prpl-info-icon {
grid-template-columns: repeat(auto-fit, minmax(var(--prpl-column-min-width), 1fr));
column-gap: var(--prpl-gap);
grid-auto-rows: var(--prpl-gap);
grid-auto-flow: dense;

img {
max-width: 100%;
Expand All @@ -234,6 +267,7 @@ button.prpl-info-icon {
Generic styles for individual widgets.
\*------------------------------------*/
.prpl-widget-wrapper {
background-color: #fff;
border: 1px solid var(--prpl-color-gray-2);
border-radius: var(--prpl-border-radius);
padding: var(--prpl-padding);
Expand All @@ -245,6 +279,12 @@ button.prpl-info-icon {
hr {
margin-top: 1.25rem;
margin-bottom: 1.25rem;
border-top-color: var(--prpl-color-gray-2);
}

/* Force the last column to be the last column. */
&[data-force-last-column="1"] {
grid-column: -2 / -1;
}
}

Expand Down Expand Up @@ -298,7 +338,7 @@ button.prpl-info-icon {
text-decoration: none;
cursor: pointer;
font-size: var(--prpl-font-size-base);
background: var(--prpl-color-accent-red);
background: var(--prpl-color-button-primary);
line-height: 1.25;
box-shadow: none;
border: none;
Expand All @@ -315,7 +355,7 @@ button.prpl-info-icon {
display: block;
width: 100%;
height: 100%;
background: var(--prpl-color-accent-red);
background: var(--prpl-color-button-primary);
position: absolute;
top: 0;
left: 0;
Expand All @@ -331,10 +371,10 @@ button.prpl-info-icon {

&:not([disabled]):hover,
&:not([disabled]):focus {
background: #cf2441;
background: var(--prpl-color-button-primary-hover);

&::after {
background: #cf2441;
background: var(--prpl-color-button-primary-hover);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
width: calc(100% + 4px);
height: calc(100% + 4px);
Expand Down Expand Up @@ -418,6 +458,10 @@ button.prpl-info-icon {
.prpl-welcome .inner-content .right {
display: none !important;
}

.prpl-widget-width-2 {
grid-column: span 1;
}
}

/*------------------------------------*\
Expand Down
45 changes: 45 additions & 0 deletions assets/css/page-widgets/badge-streak.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,48 @@
.string-freeze-explain {
max-width: 42em;
}

.prpl-widget-wrapper.prpl-badge-streak,
.prpl-widget-wrapper.prpl-badge-streak-content,
.prpl-widget-wrapper.prpl-badge-streak-maintenance {
display: flex;
flex-direction: column;
justify-content: space-between;

.progress-label {
display: inline-block;
}

.progress-wrapper {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: calc(var(--prpl-gap) / 2);

&:not(:first-child) {
margin-top: var(--prpl-padding);
}

.prpl-badge {
display: flex;
flex-direction: column;
align-items: center;
flex-wrap: wrap;
min-width: 0;
}

p {
margin: 0;
font-size: var(--prpl-font-size-small);
text-align: center;
line-height: 1.2;
}
}

.prpl-widget-content {
margin-bottom: 1em;
}

.badge-group-monthly {
background-color: transparent;
}
}
Loading
Loading