Skip to content

Traffic Boost: Add backend implementation #3149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b2c98a2
Initial implementation of the suggest-inbound-links endpoint
vaurdan Jan 20, 2025
80fbc76
Add generate button functionality
vaurdan Jan 20, 2025
71217a7
Merge branch 'refs/heads/add/traffic-boost' into add/traffic-boost-ba…
vaurdan Jan 21, 2025
c708f9a
Implement generate/accept/discard suggestions and remove inbound link…
vaurdan Jan 24, 2025
001845d
Fix issue with title HTML encoding
vaurdan Jan 24, 2025
7b04675
Merge branch 'add/traffic-boost' into add/traffic-boost-backend
vaurdan Jan 27, 2025
71b34b7
Fix linting and phpstan issues
vaurdan Jan 28, 2025
dfe3722
UI: Fix minor glitch with container height and long WP sidebars
vaurdan Feb 3, 2025
09fea8a
UI: Fix issue with merging links in the preview when highlight is dis…
vaurdan Feb 3, 2025
5127a79
UI: Fix issue with wp-admin sidebar collapsing
vaurdan Feb 3, 2025
f6c1965
Add accept and discard functionality
vaurdan Feb 5, 2025
aed4542
Minor clean-up and improvements
vaurdan Feb 5, 2025
6287cf6
Add 'Remove Inbound' functionality
vaurdan Feb 5, 2025
a97dc4a
Improve Smart Link placement and validation logic
vaurdan Feb 10, 2025
2dba52b
Implementation of the Update Inbound Link feature.
vaurdan Feb 12, 2025
2d3af37
Implementation of the Add Manual Link feature
vaurdan Feb 14, 2025
4359546
Implementation of the Add Manual Link feature
vaurdan Feb 14, 2025
34178bf
Merge remote-tracking branch 'origin/add/traffic-boost-backend' into …
vaurdan Feb 14, 2025
815990b
Minor tweaks and "Regenerate suggestion" button.
vaurdan Feb 18, 2025
135ee3e
Improvements around existing link counting and highlighting.
vaurdan Feb 19, 2025
df0ecb7
Improvements to the suggestion validation and handling
vaurdan Feb 25, 2025
93d7a1a
Fix linting and phpstan
vaurdan Feb 25, 2025
fee7875
Fix issue with unwanted JS loading in preview.
vaurdan Feb 26, 2025
777f62b
Fix issue with outbound links highlight triggering and getting stuck …
vaurdan Feb 26, 2025
6fab905
Fix PHP linting
vaurdan Feb 26, 2025
6dd5049
Fix tests
vaurdan Feb 26, 2025
4c0aedc
Fix some nitpicks (whitespace, import placements, text case)
acicovic Mar 2, 2025
f31d997
Address @acicovic feedback
vaurdan Mar 6, 2025
200bff2
Address @acicovic feedback
vaurdan Mar 6, 2025
c17b8b7
Apply Code Rabbit's feedback
vaurdan Mar 6, 2025
b80c99f
Fix SonarCloud issue on regex groups
vaurdan Mar 6, 2025
e856992
Resolve SonarCloud issue with operator precedence
vaurdan Mar 6, 2025
382ccb4
Implement @acicovic suggestions
vaurdan Mar 7, 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
6 changes: 3 additions & 3 deletions build/content-helper/dashboard-page-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/content-helper/dashboard-page.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '84ba00fd4ac6b0ed3f9d');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => 'abcc57e4aa5bcdbfb4f6');
6 changes: 3 additions & 3 deletions build/content-helper/dashboard-page.css

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions build/content-helper/dashboard-page.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/content-helper/dashboard-widget.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'defb89c2f98b1e5a422d');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'bb701c4a1ec8545b322f');
2 changes: 1 addition & 1 deletion build/content-helper/dashboard-widget.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/content-helper/editor-sidebar.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url', 'wp-wordcount'), 'version' => 'd9f34ca7ed44e3a51185');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url', 'wp-wordcount'), 'version' => 'ee8b537e3ba6605f0c4b');
6 changes: 3 additions & 3 deletions build/content-helper/editor-sidebar.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"php": ">=7.2",
"composer/installers": "^2",
"ext-dom": "*",
"ext-libxml": "*"
"ext-libxml": "*",
"masterminds/html5": "^2.9"
},
"require-dev": {
"automattic/vipwpcs": "^3.0.0",
Expand Down
86 changes: 45 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/jest": "^29.5.14",
"@types/js-cookie": "^3.0.6",
"@types/lodash.debounce": "^4.0.9",
"@types/react-router-dom": "^5.3.3",
"@types/react-router": "^5.1.20",
"@types/wordpress__block-editor": "^11.5.16",
"@types/wordpress__blocks": "^12.5.17",
"@types/wordpress__edit-post": "^8.4.2",
Expand Down Expand Up @@ -79,7 +79,7 @@
"husky": "^9.1.7",
"lodash.debounce": "^4.0.8",
"prettier": "^3.4.2",
"react-router-dom": "^6.22.3",
"react-router": "^7.1.3",
"ts-loader": "^9.5.2",
"typescript": "^5.7.3"
},
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ parameters:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
- vendor/php-stubs/wordpress-tests-stubs/wordpress-tests-stubs.php
type_coverage:
return_type: 90
return_type: 88
param_type: 79.2
property_type: 0 # We can't use property types until PHP 7.4 becomes the plugin's minimum version.
print_suggestions: false
Expand Down
Loading
Loading