Skip to content

refactor: move privacy consent from ChatBox to Login/SignUp#1239

Open
eureka928 wants to merge 10 commits intoeigent-ai:mainfrom
eureka928:feat/privacy-consent-login
Open

refactor: move privacy consent from ChatBox to Login/SignUp#1239
eureka928 wants to merge 10 commits intoeigent-ai:mainfrom
eureka928:feat/privacy-consent-login

Conversation

@eureka928
Copy link
Contributor

@eureka928 eureka928 commented Feb 12, 2026

Description

Move privacy consent from a runtime gating mechanism in ChatBox to a mandatory checkbox on the Login and SignUp pages. This simplifies the chat flow by removing the privacy dialog and inline privacy checks, while ensuring users consent before they can proceed.

Closes #934

Changes:

  • Add privacy consent checkbox to Login and SignUp pages (mandatory before submission)
  • Remove privacy gating logic and privacy prop from ChatBox and InputBox
  • Replace the 4-toggle privacy settings page with a single "Help Improve Eigent" toggle
  • Add help_improve field to UserPrivacySettings backend model
  • Add new i18n keys for privacy consent and help improve toggle across all 11 locales
  • Create reusable Radix UI Checkbox component (src/components/ui/checkbox.tsx)
  • Delete unused Dialog/Privacy component
  • Update ChatBox tests to reflect the simplified flow

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Create reusable checkbox component following the existing switch.tsx
pattern with React.forwardRef and design token classes.
Add agree-to-terms and please-accept-terms keys to all layout.json
locale files. Add help-improve-eigent keys to all setting.json files.
Add mandatory terms acceptance checkbox that gates login and OAuth
flows. Call acceptPrivacy API after successful authentication.
Add mandatory terms acceptance checkbox that gates registration and
OAuth flows. Call acceptPrivacy API after successful OAuth login.
Remove privacy state, API fetch, consent banner, and all privacy
checks from ChatBox. Privacy consent is now handled at login.
Remove privacy prop from interface, destructured props, drag-drop
guards, and add-file button disabled condition.
Replace the four individual privacy permission toggles with a single
optional Help Improve Eigent toggle for telemetry data collection.
Remove privacy-related test cases from ChatBox tests since privacy
is now handled at login. Update mocks and assertions accordingly.
@eureka928
Copy link
Contributor Author

@Wendong-Fan @Pakchoioioi @4pmtong would you review this PR for refactor?
I addressed all comments, I put this as last one is staled for 2 weeks

Thank you for your time

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.

[Feature Request] Move privacy consent to login/registration flow

1 participant