feat(legal): add privacy policy page and acceptance checkbox on registration#62
Merged
Conversation
…tration Adds a Privacy Policy page (/privacy-policy) covering data collection, Google API usage, cookies, retention, and user rights — required for Google's review of OAuth2 in production. Registration now requires the user to check an acceptance checkbox before submitting; the accepted flag is sent to the backend API. Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
/privacy-policyroute with a full Privacy Policy page (src/pages/legal/PrivacyPolicy.tsx) covering data collection, Google API usage, cookies, retention, and user rights — written specifically for Applywell to satisfy Google's OAuth2 production approval requirementssrc/pages/auth/Register.tsx); the form cannot be submitted without checking itacceptedPrivacyPolicy: truein theRegisterPayloadto the backend APIprivacyPolicyAccepted: booleanon theUsertype (src/types/index.ts)Why
Google requires a publicly accessible, accurate Privacy Policy before approving an OAuth2 app for production. This change provides that page and ensures every new user explicitly acknowledges it at sign-up time.
Reviewer notes
react-hook-formvalidation — submitting without checking shows an inline error below the checkbox/privacy-policyopens in a new tab so the user doesn't lose their partially filled formvitorhugo-java/SpringBoot-JobApplyTracker— PR addsprivacy_policy_acceptedcolumn (Flyway V28) and@AssertTruevalidation onRegisterRequestTest plan
/privacy-policywhile logged out — page renders correctly🤖 Generated with Claude Code