This repository was archived by the owner on Oct 12, 2026. It is now read-only.
Repository navigation
fix(public): enforce trust/support JSON-LD on the live site and deploy bundle #127
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c132633
fix(public): enforce trust/support JSON-LD on the live site and deplo…
nish3451 d30cffb
Merge branch 'main' into fix/lane1-jsonld-live-guard-20260812
nish3451 ea889a6
Merge branch 'main' into fix/lane1-jsonld-live-guard-20260812
nish3451 c7f92ea
Merge branch 'main' into fix/lane1-jsonld-live-guard-20260812
nish3451 8597fe4
Merge remote-tracking branch 'origin/main' into fix/lane1-jsonld-live…
nish3451 c34effe
Merge origin/main into fix/lane1-jsonld-live-guard-20260812
nish3451 3ba5c81
Merge origin/main into fix/lane1-jsonld-live-guard-20260812
nish3451 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,8 @@ | |
| // - post-filter: the bundle must contain none of the forbidden markers and | ||
| // must still carry the neutral merged fixes used as deploy proof | ||
| // (H2-after-H1 on /promptly/support/ from #18/#20, JSON-LD on /contact/ | ||
| // from #19, homepage brand disambiguation from #29). | ||
| // from #19, homepage brand disambiguation from #29, and the PR #26 | ||
| // site-wide invariant that every public page keeps its JSON-LD block). | ||
| // | ||
| // CLI: node scripts/prepare-public-deploy-bundle.mjs --source public --output <dir> | ||
| // Defaults: --source ./public, --output to a fresh temp directory (printed). | ||
|
|
@@ -80,6 +81,59 @@ export const NEUTRAL_PROOFS = [ | |
| file: "index.html", | ||
| test: (html) => html.includes("not affiliated"), | ||
| }, | ||
| // Site-wide structured data invariant (PR #26): the 07acd07 bundle shipped | ||
| // JSON-LD on only 4 of 12 pages; the release lane must never do that again. | ||
| // Each remaining public page keeps exactly one application/ld+json block. | ||
| { | ||
| label: "support page JSON-LD (07acd07 baseline)", | ||
| file: "support/index.html", | ||
| test: (html) => html.includes("application/ld+json"), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎. |
||
| }, | ||
| { | ||
| label: "privacy hub JSON-LD (PR #26)", | ||
| file: "privacy/index.html", | ||
| test: (html) => html.includes("application/ld+json"), | ||
| }, | ||
| { | ||
| label: "terms page JSON-LD (PR #26)", | ||
| file: "terms/index.html", | ||
| test: (html) => html.includes("application/ld+json"), | ||
| }, | ||
| { | ||
| label: "privacy choices JSON-LD (PR #26)", | ||
| file: "privacy-choices/index.html", | ||
| test: (html) => html.includes("application/ld+json"), | ||
| }, | ||
| { | ||
| label: "Promptly home JSON-LD (07acd07 baseline)", | ||
| file: "promptly/index.html", | ||
| test: (html) => html.includes("application/ld+json"), | ||
| }, | ||
| { | ||
| label: "Promptly support JSON-LD (PR #26)", | ||
| file: "promptly/support/index.html", | ||
| test: (html) => html.includes("application/ld+json"), | ||
| }, | ||
| { | ||
| label: "Promptly privacy JSON-LD (PRs #19/#26)", | ||
| file: "promptly/privacy/index.html", | ||
| test: (html) => html.includes("application/ld+json"), | ||
| }, | ||
| { | ||
| label: "Drishti home JSON-LD (07acd07 baseline)", | ||
| file: "drishti/index.html", | ||
| test: (html) => html.includes("application/ld+json"), | ||
| }, | ||
| { | ||
| label: "Drishti support JSON-LD (PR #26)", | ||
| file: "drishti/support/index.html", | ||
| test: (html) => html.includes("application/ld+json"), | ||
| }, | ||
| { | ||
| label: "Drishti privacy JSON-LD (PR #26)", | ||
| file: "drishti/privacy/index.html", | ||
| test: (html) => html.includes("application/ld+json"), | ||
| }, | ||
| ] | ||
|
|
||
| // Files that must exist in every bundle. | ||
|
|
||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a page's JSON-LD block is commented out, this raw-text regex still counts the
<script type="application/ld+json">text inside the HTML comment, so section E reports success even though browsers and crawlers see no structured-data element. Parse actual script elements—or at least remove HTML comments before counting—so the live acceptance check enforces the stated invariant.Useful? React with 👍 / 👎.