Repository navigation
Conversation
Terms, privacy notice, refund and cancellation policy, subprocessors, company details and contact leave the draft state. Each page has a Spanish twin; the Spanish text is the binding one. Version, effective date and company identification come from website/src/data/legal.json. The guard test refuses a legal.json without the company's address.
…ublished company data, and the Spanish pages link their own footer
…sts count the clauses both languages must keep
…tity token are kept
…holds an IP address and which build details are kept
… it verifies the run
…er host; more legal clauses are pinned in both languages
…ters; the built-site check reads scripts and every loading tag
…e first of two attributes, and says it is a guard, not a proof
…attributes and lets a namespace inside an inline image through; the font-size pattern no longer trips on 0.9rem
This branch has not been deployed
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.
Summary
Moves the legal and company pages of the website from draft to version 1.0.0, in English and Spanish (the Spanish text is the binding one).
legal.json); the registration details are left out until they are supplied.website/scripts/check-dist.mjs, a guard against mistakes that reads the built pages, stylesheets and scripts and refuses the written-out ways of loading from another host, and a script that assigns to a cookie. It reads text with patterns and is not a proof; its header lists what it does not see.scripts/site_legal_pages_test.gopins the clauses that must stay in each page, in both languages, and refuses a legal page that comments a clause out or switches it off.Not ready to merge
The build and two tests fail on purpose until the company's address, municipality and telephone number are in
legal.json:TestLegalDataCanBePublishedandTestSiteTruthPassesOnTheSite. The pages must not be published without them.Test plan
go test ./scripts/— only the two tests above failnpx astro build && node scripts/check-dist.mjspasses on the built sitenpm run buildpasses