Repository navigation
feat(legal): publish the privacy policy on GitHub Pages - #31
Merged
Merged
Conversation
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>
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.
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 fromprivacyPolicy.tsas 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.htmlredirects the site root to it..github/workflows/pages.yml: deployssite/to GitHub Pages on pushes tomainthat touchsite/, 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)
How it was tested
npx jestpasses 271/271;npm run typecheckandnpm run lintare clean.🤖 Generated with Claude Code