Repository navigation
Conversation
nc9
force-pushed
the
feat/pages-html-diff-701
branch
2 times, most recently
from
October 31, 2026 02:14
2678296 to
d157da7
Compare
…e (json, csv, markdown, filters, flags) #701 Signed-off-by: Nik Cubrilovic <[email protected]>
…d bidi overrides, csv formula guard #701 Signed-off-by: Nik Cubrilovic <[email protected]>
…URL cells, json escapes C1 and bidi, h1/headings/@id columns, invisible chars, filters #701 Signed-off-by: Nik Cubrilovic <[email protected]>
…ters; code point sweep and escape fixpoint tests; json escape moves here #701 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
feat/pages-html-diff-701
branch
from
October 31, 2026 03:09
d157da7 to
1b9e465
Compare
… via split/join, e2e covers query variants and a self link, CodeQL i flag #701 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
… overrides, csv formula guard #701 Signed-off-by: Nik Cubrilovic <[email protected]>
…, retired-previous message, h1 and schema ids compared #701 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
feat/pages-html-diff-701
branch
from
October 31, 2026 03:54
1b9e465 to
187568c
Compare
Merged
Contributor
Author
|
Landed in v0.0.149 as nik |
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.
Part 2 of #701. Refs #701. Depends on #1400 (this branch is cut from it, so the diff shows its commits until #1400 merges; merge #1400 first, then this one rebases to just its own commit).
squirrel pages -f html: one standalone page, no network request, no CDN. The table sorts by any column and filters by text and by flag. The rows reach the page as JSON escaped for a<script>block (<,>,&and the JS line separators as\uXXXX) and reach the DOM only throughtextContent, neverinnerHTML; the site name is HTML-escaped. At most 5,000 rows are inlined and the page says when more matched, so the file stays bounded.squirrel pages --diff: pages added, removed and changed between two audits of the same site, matched by URL. Changed fields arestatus,finalUrl,canonical,noindex,title,description,h1Count,schemaTypesandflags, each with before and after; counts that move with every crawl (links, word count, load time) are not compared, and a list compares as a set. Formats: markdown (default), json, csv. With no--crawlor one, the older side is the same site's previous audit (the store holds every project, so "the two newest" would often be two sites); two--crawlids name both, in either order. Same shape assquirrel entities --diff.--diffrejects--missing,--duplicate,--too-longand--orphan(a fixed page would stop matching on the newer side and read as removed) and any format but markdown, json, csv, asentities --diffdoes for--problem.--sectionand--pagenarrow both sides.docs/cli/pages.mdxupdated.Tests:
packages/report/tests/page-map-diff-701.test.ts(14: added, removed, changed, unchanged, noisy fields excluded, set comparison, all three renderers including table-breaking and formula values, HTML escaping of titles and site name, the data script cannot be ended from a page, the row cap, noinnerHTML), and 6 more e2e tests inapps/cli/tests/cli/pages-command-e2e.test.tsthat audit a local site twice with a change between (a title added, a description added, a page taken down, a page added) and read the diff in all three formats, with one or two--crawl, in either order, plus the usage errors. Gates: tsgo in apps/cli and packages/report, cli format:check and lint,make validate, released-changelog guard.Still open on #701: the hosted
list_pages(private repo), the H1 text, heading count and@idcolumns (not stored per page), areplayedcolumn,squirrel links. Skill: should listsquirrel pages(see #1400).nik
Security round: rebased on #1400 (which adds the sanitizing helpers). The diff (markdown, csv) and the HTML table clean every page-derived value the same way (control characters, C1, bidi overrides, line breaks removed; csv formulas prefixed; markdown escaped; html data cleaned and the site name escaped). Unit tests with hostile values for the diff renderers and the HTML data, and e2e checks that html and the diff output contain no control or bidi character from the hostile page.
Review round 2: rebased on #1400's round 2. Diff markdown URL cells are pipe-safe (
urlCell), the diff JSON escapes C1, bidi and invisible characters,h1andschemaIdsare compared, a scope note (markdown) andscopeNote(JSON) appear when the audits crawled more than 20% different numbers of pages, a reclaimed previous audit gets its own message instead of "only one has been run", and a third--crawlis a usage error. Tests for each.