Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCH Smart Linking: Implement Smart Links Reviewing step (#2507)
* Add optional `$request` parameter to `is_available_to_current_user` * Lower phpstan type coverage param_type to 79.7 * Add Smart Linking models and bare endpoint * Start implementing Modal UI * Implement preview and UI elements * Finalize modal with apply and reject actions * Add Remove Link and Select in Editor buttons * Backend improvements * Improve functionality for existing smart links * Add max-height to the sidebar * Fix issue with the onClose callback of the modal * Sort smart links by block position and offset * Rebuild assets * Rebuild assets * Implement getting existing smart links to populate the modal * Improve modal sidebar scrolling when navigating the smart links * Implement retrieval of the post type for each smart link * Improve sorting and backfilling of existing smart links data * Better smart link detection and auto-fixing on save, link removal, and link changing. * Move isReviewModalOpen to the store to be global across the Smart Linking component * Add tooltip to the modal actions * Clean-up code and documentation * Implement the link selection functionality * UI & functionality tweaks to the Link Details component * Rebuild assets with the "finalized" UI & fix linting * Rebuild assets & fix tests * Fix some issues with link validation and saving * Address issue with sorting in some edge cases * Apply code review suggestions * Apply suggestions from code review Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Rebuild assets * class-smart-linking-endpoint.php: Improve comments * Fix regression with getBlockContent * Apply suggestions from code review Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Update src/Endpoints/class-base-endpoint.php Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com> * Performance improvement per code review suggestion. * Improve comments in some PHP files * Smart Linking Provider: Improve comments * Apply whitespace and comment improvements * Apply whitespace and comment improvements * Apply comment improvements * Rebuild assets * Apply code review suggestions from @acicovic * Fix tests (hopefully) --------- Co-authored-by: Alex Cicovic <23142906+acicovic@users.noreply.github.com>
- Loading branch information