Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
760 commits
Select commit Hold shift + click to select a range
3948f45
enable debug tools (just in case, so we can use filters)
ilicfilip Mar 18, 2025
4db60f1
Merge pull request #348 from ProgressPlanner/filip/e2e
aristath Mar 18, 2025
76f90d7
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 18, 2025
babf10b
forgot to push this
aristath Mar 18, 2025
78c02aa
additional check
aristath Mar 18, 2025
9b4247c
check if task_id exists
aristath Mar 18, 2025
bf560d5
skip item if task_id doesn't exist
aristath Mar 18, 2025
5b940d5
add newTask to the array
ilicfilip Mar 18, 2025
d016a57
fix todo e2e test
ilicfilip Mar 18, 2025
7e65663
breaks strikethrough line
ilicfilip Mar 18, 2025
8a63af7
more task_id checks
aristath Mar 18, 2025
c4cb63f
again
aristath Mar 18, 2025
204e3d6
PHPStan fixes
aristath Mar 18, 2025
acdf751
additional check in tests
aristath Mar 18, 2025
7762993
fix celebration on page load
ilicfilip Mar 18, 2025
7a40d48
Merge remote-tracking branch 'origin/ari/migrate-user-todos' into ari…
ilicfilip Mar 18, 2025
96cf63b
fix e2e tests (again)
ilicfilip Mar 18, 2025
34d14b3
unbreak migration
ilicfilip Mar 18, 2025
f3228bf
CSS tweaks
ilicfilip Mar 18, 2025
cd74ed5
Merge branch 'develop' into filip/tweak-upsell-challenges
ilicfilip Mar 19, 2025
ace59a0
Scan JS files in e2e tests
aristath Mar 19, 2025
63aa234
console no longer triggers an error
aristath Mar 19, 2025
5896b52
Merge pull request #350 from ProgressPlanner/filip/monthly-badges-des…
aristath Mar 19, 2025
9a0dc74
spacing tweaks
ilicfilip Mar 19, 2025
5c71a88
Merge branch 'develop' into filip/tweak-upsell-challenges
ilicfilip Mar 19, 2025
3f5c7ff
Merge pull request #303 from ProgressPlanner/filip/tweak-upsell-chall…
aristath Mar 19, 2025
0591032
Merge branch 'develop' into ari/fix-cs-e2e
ilicfilip Mar 19, 2025
3c2ddc9
Merge pull request #351 from ProgressPlanner/ari/fix-cs-e2e
ilicfilip Mar 19, 2025
5ba627a
Merge branch 'develop' into ari/migrate-user-todos
ilicfilip Mar 19, 2025
f92f02c
after merge
ilicfilip Mar 19, 2025
3aba4b5
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 19, 2025
dfc8f0a
Merge remote-tracking branch 'origin/ari/migrate-user-todos' into ari…
aristath Mar 19, 2025
c316115
Fix scans not running
aristath Mar 19, 2025
39e0075
return only data we want to insert into DB
ilicfilip Mar 19, 2025
f3b4e59
Merge remote-tracking branch 'origin/ari/migrate-user-todos' into ari…
ilicfilip Mar 19, 2025
6111b7e
suggested tasks subheading
ilicfilip Mar 19, 2025
7c14c7d
Separate celebration script localization
aristath Mar 19, 2025
c586e0b
Simplify scripts registration
aristath Mar 19, 2025
125e0d5
Revert "Simplify scripts registration"
aristath Mar 19, 2025
e709797
set width to empty span
ilicfilip Mar 19, 2025
2133738
phpcs
ilicfilip Mar 19, 2025
d3c0866
remove <prpl-suggested-task> (not just <li>)
ilicfilip Mar 19, 2025
fc8333a
Use slashes in scripts handles
aristath Mar 19, 2025
31f7b3a
update task title in progressPlannerTodo & add small debounce timeout
ilicfilip Mar 19, 2025
f5d85b2
refactor widgets script registration
aristath Mar 19, 2025
7c2d14d
don't use hardcoded global var, get it from the element
aristath Mar 19, 2025
9be5a26
use custom event instead
ilicfilip Mar 19, 2025
cf0fef1
Merge remote-tracking branch 'origin/ari/migrate-user-todos' into ari…
ilicfilip Mar 19, 2025
ae4e5f8
additional spacing for the latest badge img
ilicfilip Mar 19, 2025
ef44b6d
delete option even if it was empty
ilicfilip Mar 19, 2025
be73f99
correct style for WP Dashboard widget
ilicfilip Mar 19, 2025
af2a170
adjust e2e test descriptions
ilicfilip Mar 19, 2025
8839f9d
test completing user task
ilicfilip Mar 19, 2025
a63d341
indents
ilicfilip Mar 19, 2025
9b198e7
split test to be more readable
ilicfilip Mar 19, 2025
8fbbfa1
Revert "split test to be more readable"
ilicfilip Mar 19, 2025
c7ccf67
cleanup
aristath Mar 20, 2025
c048680
split for better readability 2
ilicfilip Mar 20, 2025
5537519
improve scripts registration
aristath Mar 20, 2025
be227d8
CS fix
aristath Mar 20, 2025
b0b53a5
get_dependencies no longer needed
aristath Mar 20, 2025
543075d
bugfix
aristath Mar 20, 2025
5462842
Add an enqueue class
aristath Mar 20, 2025
c369346
celebrate only on pp dashboard page
ilicfilip Mar 20, 2025
5661408
refactor
aristath Mar 20, 2025
7844f16
CS fix
aristath Mar 20, 2025
6c168fd
Merge pull request #353 from ProgressPlanner/ari/change-script-handles
aristath Mar 20, 2025
6394e0b
Merge branch 'develop' into filip/celebrate-only-on-pp-page
ilicfilip Mar 20, 2025
40ceaa6
Merge branch 'develop' into filip/widget-subheading
ilicfilip Mar 20, 2025
8d5aab4
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 20, 2025
e844cad
update wording
ilicfilip Mar 20, 2025
e0e72ca
Add an l10n script for consistent translations
aristath Mar 20, 2025
d236b82
remove localization from Admin page title & menu title
ilicfilip Mar 20, 2025
e4d0a66
minor tweak
aristath Mar 20, 2025
083930e
Merge pull request #356 from ProgressPlanner/filip/dont-localize-menu…
aristath Mar 20, 2025
077cff9
Don't translate progressPlanner
aristath Mar 20, 2025
8d9042a
Merge branch 'develop' into ari/add-l10n-script
aristath Mar 20, 2025
8e65d84
add pending celebration counter
ilicfilip Mar 20, 2025
339a20e
Merge branch 'develop' into filip/celebrate-only-on-pp-page
ilicfilip Mar 20, 2025
e404c55
bugfix
aristath Mar 20, 2025
b2ec4c9
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 20, 2025
aeb05d8
typo
aristath Mar 20, 2025
531733e
update JS linter
aristath Mar 20, 2025
bac106d
Merge branch 'develop' into ari/add-l10n-script
aristath Mar 20, 2025
0ae79f9
Revert "update JS linter"
aristath Mar 20, 2025
fe0e674
Merge branch 'develop' into ari/add-l10n-script
aristath Mar 20, 2025
0e939ee
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 20, 2025
ae1d86f
Merge branch 'develop' into filip/widget-subheading
aristath Mar 20, 2025
b5e4cfe
Merge branch 'develop' into filip/celebrate-only-on-pp-page
ilicfilip Mar 20, 2025
9789f98
reload page when "upgrade tasks" popover X is clicked
ilicfilip Mar 20, 2025
9298273
always reload
ilicfilip Mar 20, 2025
846fa6a
fix injecting tasks after snooze
ilicfilip Mar 20, 2025
c1cc135
remove debug code
ilicfilip Mar 20, 2025
a157d3b
add todo reorder e2e test
ilicfilip Mar 20, 2025
f80d598
Merge pull request #355 from ProgressPlanner/ari/add-l10n-script
aristath Mar 20, 2025
7d83f95
styling for disabled checkboxes
ilicfilip Mar 20, 2025
4e42c84
normalize remote tasks data early & add init method
ilicfilip Mar 20, 2025
2b7eadb
prevent multiple instances
ilicfilip Mar 20, 2025
98972b4
Merge pull request #359 from ProgressPlanner/filip/prevent-multiple-i…
aristath Mar 21, 2025
d1de94e
Merge pull request #358 from ProgressPlanner/filip/fix-injecting-task…
aristath Mar 21, 2025
a6e979b
Merge pull request #357 from ProgressPlanner/filip/popover-close-reload
aristath Mar 21, 2025
e7f4e9d
Merge branch 'develop' into filip/celebrate-only-on-pp-page
aristath Mar 21, 2025
037c3c5
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 21, 2025
4f358da
Refactor stylesheets enqueueing
aristath Mar 21, 2025
4cc3d24
remove debug
aristath Mar 21, 2025
8205f4f
Reduce code duplication
aristath Mar 21, 2025
85e2291
message
ilicfilip Mar 21, 2025
83d85b2
!
ilicfilip Mar 21, 2025
1cd8e9c
Allow adding localization data when enqueueing scripts
aristath Mar 21, 2025
2c93e10
no need for separate calls
aristath Mar 21, 2025
43f6369
Merge pull request #354 from ProgressPlanner/filip/celebrate-only-on-…
aristath Mar 21, 2025
af9c158
fix infinite recursion when scripts reference each other
ilicfilip Mar 21, 2025
930296e
Merge pull request #360 from ProgressPlanner/ari/refactor-stylesheets…
aristath Mar 21, 2025
a851048
Merge branch 'develop' into filip/widget-subheading
ilicfilip Mar 21, 2025
ed9d45c
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 21, 2025
0128000
resolve conflicts from previous merge
aristath Mar 21, 2025
b545553
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 21, 2025
3a7c5e2
Merge branch 'develop' into ari/localize-scripts
aristath Mar 21, 2025
6e3bf07
Merge pull request #361 from ProgressPlanner/ari/localize-scripts
aristath Mar 21, 2025
746932f
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 21, 2025
7b4d22b
Add dependencies for styles
aristath Mar 21, 2025
bb5f672
Merge pull request #352 from ProgressPlanner/filip/widget-subheading
aristath Mar 21, 2025
d2dcfac
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 21, 2025
bd92045
Update README.md - add more banners
jdevalk Mar 21, 2025
5e05f7e
guide users back after the update
ilicfilip Mar 21, 2025
ae2be63
remove count from the menu after celebration
ilicfilip Mar 21, 2025
7881d91
Revert "styling for disabled checkboxes"
aristath Mar 21, 2025
4c97026
Define dependencies in stylesheets
aristath Mar 21, 2025
09cf5f3
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 21, 2025
9573bbe
Merge pull request #363 from ProgressPlanner/filip/remove-count-after…
aristath Mar 21, 2025
000e837
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 21, 2025
0dae6fb
WIP: tooltip overlays
ilicfilip Mar 21, 2025
9d04db8
WIP tooltip web component
ilicfilip Mar 21, 2025
971f383
WIP: tooltip component for RR
ilicfilip Mar 21, 2025
1b90c2a
Merge branch 'develop' into filip/guide-users-back-after-update
ilicfilip Mar 21, 2025
03b4c32
update text and add icon
ilicfilip Mar 21, 2025
472f594
update wording
ilicfilip Mar 21, 2025
feab9cb
RR disabled checkbox tooltip
ilicfilip Mar 24, 2025
db8f67c
tooltip text
ilicfilip Mar 24, 2025
ee7c5f6
JS dependency
ilicfilip Mar 24, 2025
fe22bc8
remove activity & recalc points if user task was deleted
ilicfilip Mar 24, 2025
d0b28d8
Merge branch 'ari/migrate-user-todos' into filip/new-tooltips
ilicfilip Mar 24, 2025
c8abacf
checkboxes are not disabled, but trigger popover
ilicfilip Mar 24, 2025
9adbfaf
prevent points being undefined
ilicfilip Mar 24, 2025
267eddd
margin-inline-start: auto;
ilicfilip Mar 24, 2025
cd15cf6
add points to the DB
ilicfilip Mar 24, 2025
dd51ee8
WIP: golden todo task
ilicfilip Mar 24, 2025
551211e
add activities to debug tools
ilicfilip Mar 24, 2025
01eb30b
check only pending tasks, not all
ilicfilip Mar 24, 2025
5f935c7
meh, autocomplete
ilicfilip Mar 24, 2025
ce65b11
pending_items, not all
ilicfilip Mar 24, 2025
d40141a
golden & silver task description (no popover yet)
ilicfilip Mar 24, 2025
eda26ba
prepend golden task
ilicfilip Mar 24, 2025
c2f786f
Merge branch 'ari/migrate-user-todos' into filip/new-tooltips
ilicfilip Mar 25, 2025
3e01fb3
just in case
ilicfilip Mar 25, 2025
e45babf
remove todo phpcs
ilicfilip Mar 25, 2025
0dfeb6a
Revert "remove todo phpcs"
ilicfilip Mar 25, 2025
5c06721
phpcbf
ilicfilip Mar 25, 2025
0eeb007
WEEK_IN_SECONDS
ilicfilip Mar 25, 2025
42c8d89
update e2e test
ilicfilip Mar 25, 2025
d645034
button instead of the link
ilicfilip Mar 25, 2025
de0c339
golden / silver styling
ilicfilip Mar 25, 2025
bbdf5c8
once completed show icon only next to selected option
ilicfilip Mar 25, 2025
74d062f
final wording
ilicfilip Mar 25, 2025
7d4ec89
Merge pull request #370 from ProgressPlanner/filip/fix-duplicated-act…
aristath Mar 26, 2025
2a40f8a
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 26, 2025
b308074
bugfix after merge
aristath Mar 26, 2025
5f3f7e6
Merge pull request #369 from ProgressPlanner/filip/debug-tools-activi…
aristath Mar 26, 2025
8ba2bd0
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 26, 2025
ab6e05a
Merge pull request #367 from ProgressPlanner/filip/onboard-continue-b…
aristath Mar 26, 2025
6925343
indentation fix
aristath Mar 26, 2025
0c3996a
minor string tweak
aristath Mar 26, 2025
8bbbeec
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 26, 2025
6bbba08
Merge branch 'develop' into filip/update-dashboard-widget-wording
ilicfilip Mar 26, 2025
73cbc75
Merge pull request #364 from ProgressPlanner/filip/update-dashboard-w…
ilicfilip Mar 26, 2025
7309e0e
Merge branch 'develop' into filip/guide-users-back-after-update
ilicfilip Mar 26, 2025
e447f03
Merge branch 'ari/migrate-user-todos' into filip/new-tooltips
ilicfilip Mar 26, 2025
03be224
Merge branch 'ari/migrate-user-todos' into filip/golden-todo
ilicfilip Mar 26, 2025
79c8ccc
golden styling only to for li[data-task-points="1"]
ilicfilip Mar 26, 2025
1193df0
move tooltip styles to it's own file
ilicfilip Mar 26, 2025
1715723
Merge branch 'develop' into ari/migrate-user-todos
aristath Mar 26, 2025
453ee02
Merge branch 'ari/migrate-user-todos' into filip/new-tooltips
ilicfilip Mar 26, 2025
e0a1fa2
Merge branch 'ari/migrate-user-todos' into filip/golden-todo
ilicfilip Mar 26, 2025
3f4be31
Merge pull request #365 from ProgressPlanner/filip/new-tooltips
aristath Mar 26, 2025
fabf7bf
Merge branch 'ari/migrate-user-todos' into filip/golden-todo
ilicfilip Mar 26, 2025
c7c84cf
Merge pull request #371 from ProgressPlanner/filip/golden-todo
aristath Mar 26, 2025
a5f49c0
add tooltip for the TODOs
ilicfilip Mar 26, 2025
080c793
we use flex-gap now (no need for margin)
ilicfilip Mar 26, 2025
2a2fdbd
Add new files to .distignore
aristath Mar 26, 2025
56b0462
Merge branch 'develop' into filip/permalinks-show-only-selected
ilicfilip Mar 26, 2025
522d4ab
Merge branch 'develop' into filip/guide-users-back-after-update
ilicfilip Mar 26, 2025
d3efee5
Merge branch 'develop' into ari/migrate-user-todos
ilicfilip Mar 26, 2025
358a5e0
Merge pull request #319 from ProgressPlanner/ari/migrate-user-todos
aristath Mar 26, 2025
5466881
changelog
aristath Mar 26, 2025
98ad59f
Merge remote-tracking branch 'origin/develop' into develop
aristath Mar 26, 2025
35fbdd3
copy changelog to the readme file
aristath Mar 26, 2025
7dbd5e3
version change
aristath Mar 26, 2025
116e171
Merge pull request #362 from ProgressPlanner/filip/guide-users-back-a…
aristath Mar 26, 2025
29890d9
prevent user adding a new line when editing TODO task title
ilicfilip Mar 26, 2025
baa13f2
disabled checkboxes styling
ilicfilip Mar 26, 2025
30ac05c
correct typo in classname
ilicfilip Mar 26, 2025
150b5b1
Merge branch 'develop' into filip/permalinks-show-only-selected
ilicfilip Mar 26, 2025
20bf007
fix styling issue for badges
aristath Mar 26, 2025
94266ca
PHP fix
aristath Mar 26, 2025
ca9a392
Merge pull request #373 from ProgressPlanner/filip/permalinks-show-on…
aristath Mar 26, 2025
8e2a681
Merge branch 'develop' into filip/todo-disable-new-line
aristath Mar 26, 2025
79edefa
Merge pull request #375 from ProgressPlanner/filip/rr-disabled-checkb…
aristath Mar 26, 2025
97b7a83
remove WP padding from tooltip trigger & position ^
ilicfilip Mar 26, 2025
428e3bc
these 2 should not be dismissable
ilicfilip Mar 26, 2025
ed82a84
Compatibility tweak for SQLite
aristath Mar 26, 2025
a343a06
Merge pull request #379 from ProgressPlanner/filip/no-dismissable-tasks
ilicfilip Mar 26, 2025
5be8bf6
Merge branch 'develop' into filip/todo-disable-new-line
ilicfilip Mar 26, 2025
6cab17b
CSS tweak for tooltips
aristath Mar 26, 2025
6a331a9
Merge branch 'develop' into filip/rr-tooltip-styling
ilicfilip Mar 26, 2025
eb04666
Merge branch 'develop' into filip/todo-disable-new-line
ilicfilip Mar 26, 2025
dcfcf33
Merge pull request #378 from ProgressPlanner/filip/rr-tooltip-styling
ilicfilip Mar 26, 2025
53be49d
_n for dashboard widget message
ilicfilip Mar 26, 2025
9540e9a
align with text
ilicfilip Mar 26, 2025
337e876
tell PHPStan which method returns which object
ilicfilip Mar 26, 2025
a65990b
Remove "pending celebration" counter from the WP menu after celebration
ilicfilip Mar 26, 2025
9dcb788
Merge pull request #384 from ProgressPlanner/filip/re-implement-pr-363
aristath Mar 27, 2025
78cc576
Merge pull request #383 from ProgressPlanner/filip/hint-phpstan
aristath Mar 27, 2025
ef27de7
Merge pull request #380 from ProgressPlanner/ari/sqlite-compatibility
aristath Mar 27, 2025
bf71122
Merge pull request #382 from ProgressPlanner/filip/tooltip-trigger-align
aristath Mar 27, 2025
eb32c62
Merge pull request #381 from ProgressPlanner/filip/singular-plural-wp…
aristath Mar 27, 2025
b5f03db
Merge branch 'develop' into filip/todo-disable-new-line
aristath Mar 27, 2025
ca57701
Merge pull request #376 from ProgressPlanner/filip/todo-disable-new-line
aristath Mar 27, 2025
750a2c8
fix icon position in safari
ilicfilip Mar 27, 2025
01fd829
an update
ilicfilip Mar 27, 2025
cb4abd8
Merge pull request #385 from ProgressPlanner/filip/fix-safari-vertica…
aristath Mar 27, 2025
5db8813
Simple adjustment to reduce indentation
aristath Mar 27, 2025
2cb076f
minor syntax tweaks
aristath Mar 27, 2025
4a164eb
update caniuse package
aristath Mar 27, 2025
97186c7
add ravi icon for the silver task
ilicfilip Mar 27, 2025
40f18cc
Merge pull request #386 from ProgressPlanner/filip/silver-task-ravi-icon
aristath Mar 27, 2025
fe52c04
remove migration to test
ilicfilip Mar 27, 2025
57ac38f
test CHANGE COLUMN
ilicfilip Mar 27, 2025
003a0a9
another test
ilicfilip Mar 27, 2025
ea62469
update migration to be compatible with sqlite
ilicfilip Mar 27, 2025
05e0b72
Merge pull request #387 from ProgressPlanner/filip/test-sqlite
aristath Mar 27, 2025
c0cbc28
tested up to
aristath Mar 28, 2025
8689fdb
rest api change for new email format
ilicfilip Mar 28, 2025
1f3de8e
remove todo, so phpcs stays silent
ilicfilip Mar 28, 2025
3058469
merge RR & user tasks
ilicfilip Mar 28, 2025
bbc60aa
we dont have todos any more (just recommendations)
ilicfilip Mar 28, 2025
86cef31
italic of automatic tasks
ilicfilip Mar 28, 2025
93480f4
Merge pull request #391 from ProgressPlanner/filip/task-styling
aristath Mar 31, 2025
e2380cf
Merge pull request #390 from ProgressPlanner/filip/rest-stats-new-emails
aristath Mar 31, 2025
fe88481
adjust create post description
ilicfilip Mar 31, 2025
7a79386
Merge pull request #392 from ProgressPlanner/filip/adjust-create-post…
aristath Apr 1, 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
2 changes: 2 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/vendor
.distignore
.editorconfig
.eslintrc.js
.env.example
.gitignore
.gitattributes
composer.json
Expand Down
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# WordPress URL (without trailing slash)
WP_URL=http://localhost:8080

# WordPress admin credentials
WP_USER=admin
WP_PASS=password
WP_EMAIL=admin@wordpress.test
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
extends: [
'plugin:@wordpress/eslint-plugin/recommended',
'plugin:eslint-comments/recommended',
],
parserOptions: {
ecmaVersion: "latest",
},
rules: {
"no-console": "off",
},
};
2 changes: 1 addition & 1 deletion .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
# @link https://github.com/staabm/annotate-pull-request-from-checkstyle/
- name: Check PHP code style
id: phpcs
run: composer check-cs -- --no-cache --warning-severity=6 --report-full --report-checkstyle=./phpcs-report.xml
run: composer check-cs -- --no-cache --report-full --report-checkstyle=./phpcs-report.xml

- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
Expand Down
130 changes: 130 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
name: Progress Planner Playwright Tests

env:
WORDPRESS_URL: http://localhost:8080
WORDPRESS_ADMIN_USER: admin
WORDPRESS_ADMIN_PASSWORD: password
WORDPRESS_ADMIN_EMAIL: admin@example.com
WORDPRESS_TABLE_PREFIX: wp_
WORDPRESS_DB_USER: wpuser
WORDPRESS_DB_PASSWORD: wppass
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_PORT: 3307 # So it can run locally (hopefully).
PRPL_TEST_TOKEN: 0220a2de67fc29094281088395939f58

on:
push:
branches:
- develop
pull_request:

jobs:
e2e-tests:
runs-on: ubuntu-latest

services:
mysql:
image: mariadb:10.6
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${{ env.WORDPRESS_DB_NAME }}
MYSQL_USER: ${{ env.WORDPRESS_DB_USER }}
MYSQL_PASSWORD: ${{ env.WORDPRESS_DB_PASSWORD }}
ports:
- 3307:3306 # GitHub Actions doesn't support environment variables in the ports section.
wordpress:
image: wordpress:latest
env:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: ${{ env.WORDPRESS_DB_USER }}
WORDPRESS_DB_PASSWORD: ${{ env.WORDPRESS_DB_PASSWORD }}
WORDPRESS_DB_NAME: ${{ env.WORDPRESS_DB_NAME }}
WORDPRESS_DB_PORT: ${{ env.WORDPRESS_DB_PORT }}
WORDPRESS_TABLE_PREFIX: ${{ env.WORDPRESS_TABLE_PREFIX }}
WORDPRESS_DEBUG: 1
WORDPRESS_URL: ${{ env.WORDPRESS_URL }}
WORDPRESS_ADMIN_USER: ${{ env.WORDPRESS_ADMIN_USER }}
WORDPRESS_ADMIN_PASSWORD: ${{ env.WORDPRESS_ADMIN_PASSWORD }}
WORDPRESS_ADMIN_EMAIL: ${{ env.WORDPRESS_ADMIN_EMAIL }}
PRPL_TEST_TOKEN: ${{ env.PRPL_TEST_TOKEN }}
ports:
- 8080:80
options: >-
--health-cmd="curl --silent --fail http://localhost:8080/wp-login.php || exit 0"
--health-interval=10s
--health-timeout=5s
--health-retries=5

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Node.js & Playwright
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install -D @playwright/test
- run: npx playwright install --with-deps

- name: Complete WordPress installation
run: |
echo "Installing WordPress at: $WORDPRESS_URL"
curl --silent -X POST "$WORDPRESS_URL/wp-admin/install.php?step=2" \
-d "weblog_title=My%20WordPress%20Site" \
-d "user_name=$WORDPRESS_ADMIN_USER" \
-d "admin_password=$WORDPRESS_ADMIN_PASSWORD" \
-d "admin_password2=$WORDPRESS_ADMIN_PASSWORD" \
-d "admin_email=$WORDPRESS_ADMIN_EMAIL" \
-d "public=1"r

# - name: Install necessary dependencies in WordPress container
# run: |
# docker exec $(docker ps -qf "name=wordpress") apt-get update
# docker exec $(docker ps -qf "name=wordpress") apt-get install -y \
# php php-cli php-mysql php-curl php-xml php-mbstring php-zip curl \
# libnss3 libxss1 libasound2 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev libwoff1

- name: Install and activate plugin
run: |
# Install WP-CLI
docker exec $(docker ps -qf "name=wordpress") curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
docker exec $(docker ps -qf "name=wordpress") chmod +x wp-cli.phar
docker exec $(docker ps -qf "name=wordpress") mv wp-cli.phar /usr/local/bin/wp

# Create the plugins directory in the WordPress container
docker exec $(docker ps -qf "name=wordpress") mkdir -p /var/www/html/wp-content/plugins

# Copy plugin files to WordPress plugins directory
docker cp . $(docker ps -qf "name=wordpress"):/var/www/html/wp-content/plugins/progress-planner

# Activate the plugin using WP-CLI
docker exec $(docker ps -qf "name=wordpress") wp plugin activate progress-planner --allow-root

# Enable debug mode
docker exec $(docker ps -qf "name=wordpress") wp option update prpl_debug true --allow-root

# Insert test token
docker exec $(docker ps -qf "name=wordpress") wp option update progress_planner_test_token $PRPL_TEST_TOKEN --allow-root

# - name: Wait for WordPress to be ready
# run: |
# echo "Waiting for WordPress to be ready..."
# sleep 30 # Adjust if necessary based on the container startup time

- name: Run Playwright Tests
run: npx playwright test tests/e2e/

- name: Upload Playwright Report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/

- name: Upload Playwright screenshots as artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-screenshots
path: |
onboarding-failed.png # Specify the path of the screenshot you want to upload
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@
.phpunit.result.cache
node_modules
.DS_Store

# Playwright
test-results/
playwright-report/
playwright/.cache/
auth.json

# Environment variables
.env
61 changes: 52 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,60 @@
= 1.0.5 =
= 1.1.1 =

Bugs we fixed:

* Fixed unnecessary display of the upgrade popover.
* Fixed saving license key from 'Subscribe to weekly' emails popover.
* Reduced number of database queries when checking for user activity scores.
* Fixed database queries when getting activities by type.

Enhancements:

* Simplified the Dashboard widget.
* Styling improvements.
* Improved some translation strings.
* Improved suggestions for writing new posts.
* UI improvements in the plugin settings page.
* TODO tasks can now award 1 point per week, counting toward the monthly badges.

Under the hood:

* Improved suggested tasks completion conditions.
* Improved checks for suggested 'review post' tasks.
* Completely refactored the TODOs system.
* Refactored the suggested-tasks system.
* Refactored our AJAX calls.
* Performance & caching improvements.
* Refactored popovers implementation.
* Added implementation to migrate plugin data on updates.
* Improved debugging suite.
* Added new hooks for integration with 3rd-party plugins.
* Added a data collector system for tasks providers.
* Refactored the way tasks are saved in the database for consistency.
* Improved `one_time` and `repetitive` task type abstractions.
* Refactored the celebrations system.

We've added the following Recommendations from Ravi:
= 1.1.0 =

In this release, we've added more recommendations from Ravi on how to improve your site. We've also made these recommendations more visible on your WordPress
settings pages, by showing on settings pages exactly which things we think you should change. Also, if you're just now starting to use Progress Planner,
we've made the onboarding experience a lot more fun: we show you immediately which of Ravi's recommended tasks you've already completed and we give
you points for those!

Added these recommendations from Ravi:

* Properly set your [permalink structure](https://progressplanner.com/recommendations/change-default-permalink-structure/).
* Fix it if your site is [set to not be shown in search engines](https://progressplanner.com/recommendations/blog-indexing-settings/).
* Rename and change the slug of your [Uncategorized category](https://progressplanner.com/recommendations/rename-uncategorized-category/).
* Remove [inactive plugins](https://progressplanner.com/recommendations/remove-inactive-plugins/).
* [Upgrade your PHP version](https://progressplanner.com/recommendations/update-php-version/) if needed.
* [Fully disable comments](https://progressplanner.com/recommendations/disable-comments/) if they're not needed on your site.

Bugs we fixed:

* If you had `WP_DEBUG` set to false, the plugin would still tell you to disable `WP_DEBUG_DISPLAY`. We think Ravi was a bit overzealous in his recommendation, so we've fixed that.

Under the hood:

* [Setting the permalink structure](TBD).
* [Update PHP version](TBD).
* [Disable comments on your site](TBD).
* [Remove inactive plugins](TBD).
* [Search engine visibility](TBD).
* We've added our set of debug tools straight into the plugin. If you define `PRPL_DEBUG` as `true` in your `wp-config.php` file, you'll get a PRPL Debug admin bar menu item.
* Improved suggested tasks completion conditions so they don't trigger at the wrong moment.

= 1.0.4 =

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
[![PHPStan](https://github.com/ProgressPlanner/progress-planner/actions/workflows/phpstan.yml/badge.svg)](https://github.com/ProgressPlanner/progress-planner/actions/workflows/phpstan.yml)
[![Lint](https://github.com/ProgressPlanner/progress-planner/actions/workflows/lint.yml/badge.svg)](https://github.com/ProgressPlanner/progress-planner/actions/workflows/lint.yml)

[![WordPress Plugin Version](https://img.shields.io/wordpress/plugin/v/progress-planner.svg)](https://wordpress.org/plugins/progress-planner/)
![WordPress Plugin: Tested WP Version](https://img.shields.io/wordpress/plugin/tested/progress-planner.svg)
[![WordPress Plugin Active Installs](https://img.shields.io/wordpress/plugin/installs/progress-planner.svg)](https://wordpress.org/plugins/progress-planner/advanced/)
[![WordPress Plugin Downloads](https://img.shields.io/wordpress/plugin/dt/progress-planner.svg)](https://wordpress.org/plugins/progress-planner/advanced/)
[![WordPress Plugin Rating](https://img.shields.io/wordpress/plugin/stars/progress-planner.svg)](https://wordpress.org/support/plugin/progress-planner/reviews/)
[![GitHub](https://img.shields.io/github/license/ProgressPlanner/progress-planner.svg)](https://github.com/ProgressPlanner/progress-planner/blob/main/LICENSE)

[![Try Progress Planner on the WordPress playground](https://img.shields.io/badge/Try%20Progress%20Planner%20on%20the%20WordPress%20Playground-%23117AC9.svg?style=for-the-badge&logo=WordPress&logoColor=ddd)](https://playground.wordpress.net/#{"landingPage":"/wp-admin/admin.php?page=progress-planner","features":{"networking":true},"login":true,"plugins":["https://github-proxy.com/proxy/?repo=ProgressPlanner/progress-planner"],"steps":[{"step":"defineWpConfigConsts","consts":{"IS_PLAYGROUND_PREVIEW":true}}]})

# Progress Planner
Expand Down
71 changes: 9 additions & 62 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
}

.prpl-wrap h2 + p {
margin-top: 0.5em;
margin-top: 0.75rem;
margin-bottom: 0.75rem;
}

.prpl-wrap h1,
Expand Down Expand Up @@ -144,6 +145,11 @@
display: none !important;
}

.prpl-disabled {
opacity: 0.5;
pointer-events: none;
}

/*------------------------------------*\
Info buttons.
\*------------------------------------*/
Expand Down Expand Up @@ -285,7 +291,8 @@ button.prpl-info-icon {
.prpl-wrap button.prpl-button-primary,
.prpl-wrap button.prpl-button-secondary,
.prpl-wrap a.prpl-button-primary,
.prpl-wrap a.prpl-button-secondary {
.prpl-wrap a.prpl-button-secondary,
#progress_planner_dashboard_widget_score a.prpl-button-primary { /* To be used in WP Dashboard widget */
display: block;
margin: 1rem 0;
padding: 0.75rem 1.25rem;
Expand Down Expand Up @@ -460,63 +467,3 @@ button.prpl-info-icon {
}
}


/*------------------------------------*\
Tooltip.
\*------------------------------------*/
.tooltip-actions {
justify-content: flex-end;
gap: 0.5em;
display: flex;
position: relative;
}

.prpl-tooltip {
position: absolute;
bottom: 0;
left: 100%;
transform: translate(-100%, calc(100% + 10px));

padding: 0.75rem 1.5rem 0.75rem 0.75rem;
width: 150px;
background: var(--prpl-background-green);
border-radius: var(--prpl-border-radius);
z-index: 2; /* above the gauges */
visibility: hidden; /* hidden by default */

font-size: 1rem;
font-weight: 400;
color: var(--prpl-color-text);

&[data-tooltip-visible] {
visibility: visible;
}

.close,
.prpl-tooltip-close {
position: absolute;
top: 0.75rem;
right: 0;
padding: 0.1rem;
line-height: 0;
margin: 0;
background: none;
border: none;
cursor: pointer;
}

/* Arrow */
&::after {
content: "";
position: absolute;
top: 0;
right: 0;
transform: translate(-10px, -10px) rotate(90deg);

width: 0;
height: 0;
border-style: solid;
border-width: 7.5px 10px 7.5px 0;
border-color: transparent var(--prpl-background-green) transparent transparent;
}
}
14 changes: 13 additions & 1 deletion assets/css/dashboard-widgets/score.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/* stylelint-disable max-line-length */

/**
* Admin widget.
*
* Dependencies: progress-planner/web-components/prpl-suggested-task, progress-planner/web-components/prpl-badge
*/
#progress_planner_dashboard_widget_score {

.prpl-dashboard-widget {
Expand Down Expand Up @@ -42,7 +49,12 @@
border-top: 1px solid #c3c4c7; /* same color as the one WP-Core uses */
font-size: var(--prpl-font-size-base);
display: flex;
gap: 0.5rem;
gap: 1rem;
align-items: center;

.prpl-button-primary {
display: inline-block;
margin: 0.5rem 0 0 0;
}
}
}
Loading