Skip to content

Commit 6e2dfcc

Browse files
feat: add filter conditions
* [wip] Import Conditions * fix: e2e test failing * fix: unit tests * test: adding phpunit tests * fix: e2e test failing * fix: backward compat * Update ConditionsControl.js * chore: add dummy conditions for upsell * chore: allow editing of conditions without saving in free * feat: add filters support to shortcode * chore: improve upsell * fix: display of regex strings as special chars * chore: fix eslint error * chore: fix broken code * fix: the mess with escape and unescaping
1 parent f6c9157 commit 6e2dfcc

19 files changed

+2731
-411
lines changed

.distignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ composer.lock
1818
package-lock.json
1919
key.enc
2020
js/FeedzyBlock
21+
js/Conditions/
2122
js/Onboarding/
2223
js/ActionPopup/
2324
js/FeedBack/

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
},
3131
"scripts": {
3232
"format": "phpcbf --standard=phpcs.xml --report-summary --report-source",
33-
"lint": "phpcs --standard=phpcs.xml"
33+
"lint": "phpcs --standard=phpcs.xml",
34+
"test": "phpunit"
3435
},
3536
"minimum-stability": "dev",
3637
"prefer-stable": true,
@@ -46,6 +47,7 @@
4647
"require-dev": {
4748
"wp-coding-standards/wpcs": "^3.1",
4849
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
49-
"phpcompatibility/phpcompatibility-wp": "^2.1"
50+
"phpcompatibility/phpcompatibility-wp": "^2.1",
51+
"yoast/phpunit-polyfills": "^3.0"
5052
}
5153
}

0 commit comments

Comments
 (0)