Repository navigation
Filter Link Health reports and add reviewed URL edits - #54
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the Link Health report filterable by result status, source type, and URL/source-title text. Filters are applied before 50-row pagination and stay active during live updates, navigation, and CSV export.
Each row now offers Replace URL and Unlink for its source post. Preview shows the matching-anchor count; Apply requires the current actor's expiring token and an unchanged source fingerprint. A binary compare-and-swap protects against saves arriving after validation. Edits preserve surrounding markup, fragments, child text/media, native button structure, revisions, and post-save cache notifications. URLs duplicated in serialized block settings defer to the post editor instead of risking an inconsistent block. Percent-encoded URLs are preserved.
The edit dialog pauses report replacement without stopping scan progress. Changed inputs, cancelled previews, and late responses cannot authorize a different edit. Successful saves reconcile the report, retaining unchanged results and marking new destinations unchecked.
Validation:
Visual-check limitation: Gutenberg's iframe canvas stayed empty in the test browser for both the edited fixture and an untouched control. No successful canvas-validation claim is made; stored block structure, surrounding markup, revisions, and public frontend output were verified. The existing iframe visual release gate remains tracked separately.
See docs/link-health-edit-verification.md for details and recovery location. readme.txt and README.md describe the new filters and edit scope.