#22

Add legal pages for Gmail verification

MergedstylesshOwnermerged intofrom

Summary

  • add public privacy-policy and terms-of-service pages for Google OAuth and Gmail verification
  • disclose Gmail data access, storage, deletion, and Google API Limited Use handling at the point of authorization
  • link the legal pages from the public home screen and Gmail account settings, and document the exact production URLs

Validation

  • corepack pnpm test (65 passed)
  • corepack pnpm build
  • corepack pnpm exec tsc --noEmit
  • targeted ESLint on all changed TSX files
  • browser-checked desktop and 320px layouts, keyboard focus, heading structure, navigation, and text contrast
  • git diff --check

Notes

  • Repository-wide corepack pnpm lint still reports the two pre-existing CommonJS require() errors in babel.config.js and postcss.config.js; changed files pass targeted ESLint.

Activity

4
mikeyreviewed3mo ago
mikey3mo ago

Reviewed all 7 changed files (new /privacy and /terms pages, shared LegalPage/LegalLink component, and disclosure copy added to login-screen.tsx, onboarding.tsx, and mail-accounts-settings.tsx, plus docs/gmail.md URL updates). This is a content/copy PR with minimal logic surface.

Verified:

  • No routing conflicts: app/privacy and app/terms are new, non-overlapping route segments.
  • Privacy policy's description of Gmail access ("read, search, organize, draft, and send mail," move between inbox/archive/spam/trash) matches the actual requested scope in lib/google/scopes.ts (gmail.modify), so the disclosure isn't over- or under-promising relative to what's granted.
  • googleEnabled gating in login-screen.tsx correctly reflects whether Google OAuth is configured (app/page.tsx, app/onboarding/page.tsx, app/mail/settings/account/page.tsx all pass Boolean(getGoogleOAuthConfig())), consistent with the new disclosure copy.
  • Link imports (next/link) added to login-screen.tsx and onboarding.tsx are used correctly; mail-accounts-settings.tsx already had Link imported.
  • No secrets, tokens, or PII handling changed; LEGAL_CONTACT_EMAIL is a static public support address.

No blocking correctness, security, or maintainability issues found. Nothing to flag as a follow-up either — the change is self-contained.

stylessh merged commit 1f69bf6 into main3mo ago

Branch stylessh/add-gmail-legal-pages has been merged.

Checking branch