Repository navigation
Add TOS/Privacy agreement checkbox to signup and notification system - #28
Merged
2witstudios merged 5 commits intoNov 1, 2025
Merged
2witstudios merged 5 commits into
2witstudios merged 5 commits into
Conversation
This commit implements the following features: 1. **TOS/Privacy Checkbox in Signup**: - Added checkbox to signup form requiring users to accept TOS and Privacy Policy - Added client-side and server-side validation for TOS acceptance - Added tosAcceptedAt timestamp field to users table to track acceptance - Links to /tos and /privacy pages open in new tabs 2. **Database Schema Changes**: - Added tosAcceptedAt timestamp column to users table - Added TOS_PRIVACY_UPDATED notification type to NotificationType enum - Generated migration 0005_strange_dorian_gray.sql 3. **Notification System for TOS/Privacy Updates**: - Added TosPrivacyUpdatedNotification type to notification types - Created broadcastTosPrivacyUpdate() helper function to notify all users - Updated NotificationDropdown to handle TOS_PRIVACY_UPDATED notifications - Notifications link directly to the updated document (/tos or /privacy) 4. **Type Safety**: - Updated all NotificationType definitions across the codebase - Added proper TypeScript types for TOS/Privacy metadata - All type checks passing Files changed: - apps/web/src/app/auth/signup/page.tsx - apps/web/src/app/api/auth/signup/route.ts - apps/web/src/components/notifications/NotificationDropdown.tsx - packages/db/src/schema/auth.ts - packages/db/src/schema/notifications.ts - packages/lib/src/notifications.ts - packages/lib/src/notifications/types.ts - packages/lib/src/services/notification-email-service.ts
Owner
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
2witstudios
deleted the
claude/signup-tos-notifications-011CUgBNRJLyobJC7m3op97F
branch
November 1, 2025 21:02
2 tasks done
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.
This commit implements the following features:
TOS/Privacy Checkbox in Signup:
Database Schema Changes:
Notification System for TOS/Privacy Updates:
Type Safety:
Files changed: