Skip to content

feat(legal): publish the privacy policy on GitHub Pages - #31

Merged
dsatpm merged 1 commit into
mainfrom
dsatpm/privacy-pages-80e04f4d
Oct 10, 2026
Merged

dsatpm merged 1 commit into
mainfrom
dsatpm/privacy-pages-80e04f4d

Conversation

@dsatpm

@dsatpm dsatpm commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Publishes the privacy policy at a public URL for the Play Console and App Store Connect: https://htpdevs.github.io/birthmark/privacy-policy/ (it goes live when this merges).

What changed

  • src/legal/privacyPolicyHtml.ts: renders the policy from privacyPolicy.ts as one standalone page. The text is escaped, colors come from the palette tokens, and the page has no scripts or external requests.
  • site/privacy-policy/index.html: the generated page, committed. site/index.html redirects the site root to it.
  • .github/workflows/pages.yml: deploys site/ to GitHub Pages on pushes to main that touch site/, or on manual dispatch.
  • tests/privacyPolicy.test.ts: fails if the committed page drifts from the in-app text, checks that every heading and paragraph is present and escaped, and checks the page makes no external requests.

Already applied (repo settings, not in the diff)

  • Pages enabled with the source set to GitHub Actions.
  • About: description, website (the policy URL), and 12 topics.

How it was tested

  • npx jest passes 271/271; npm run typecheck and npm run lint are clean.
  • Live URL: checked after merge.

🤖 Generated with Claude Code

The store listings need a public privacy policy URL. site/privacy-policy/
index.html is generated from src/legal/privacyPolicy.ts by the new
privacyPolicyHtml() (escaped, palette tokens, no scripts or external
requests), and .github/workflows/pages.yml deploys site/ to
https://htpdevs.github.io/birthmark/privacy-policy/ on pushes to main.
site/index.html redirects the root to the policy.

tests/privacyPolicy.test.ts now fails if the committed page drifts from the
in-app text, checks every heading and paragraph is present and escaped, and
that the page makes no external requests. Regenerate with
UPDATE_PRIVACY_MD=1 npx jest tests/privacyPolicy.test.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dsatpm
dsatpm merged commit 17cd1b0 into main Oct 10, 2026
1 of 3 checks passed
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