Skip to content

docs(website): legal and company pages, version 1.0.0, in English and Spanish - #889

Draft
pbertsch wants to merge 14 commits into
mainfrom
feat/legal-pages-v1
Draft

pbertsch wants to merge 14 commits into
mainfrom
feat/legal-pages-v1

Conversation

@pbertsch

Copy link
Copy Markdown
Member

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).

  • Terms of service, privacy notice (aviso de privacidad integral), refund policy, company, contact and providers pages rewritten as final text for a company based in Jalisco, Mexico.
  • Refund policy: no refunds, cancel at any time.
  • The privacy notice says what the hosted services keep, including what a valid build token registers, and that the website sets no cookies and has no analytics.
  • Company data lives in one file (legal.json); the registration details are left out until they are supplied.
  • The build now ends with 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.go pins 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: TestLegalDataCanBePublished and TestSiteTruthPassesOnTheSite. The pages must not be published without them.

Test plan

  • go test ./scripts/ — only the two tests above fail
  • npx astro build && node scripts/check-dist.mjs passes on the built site
  • Address, municipality and telephone supplied; then npm run build passes
  • Effective date set on the day of publication

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
…holds an IP address and which build details are kept
…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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant