settings: Add personal setting to show or hide AI features.

Fixes #33231.
This commit is contained in:
Sahil Batra
2025-02-11 18:49:41 +05:30
committed by Tim Abbott
parent 4ca28bb850
commit 7eeb8a2c26
16 changed files with 102 additions and 23 deletions

View File

@@ -296,6 +296,9 @@ class UserBaseSettings(models.Model):
EMAIL_ADDRESS_VISIBILITY_TYPES = list(EMAIL_ADDRESS_VISIBILITY_ID_TO_NAME_MAP.keys())
# Whether user wants to see AI features in the UI.
hide_ai_features = models.BooleanField(default=False)
display_settings_legacy = dict(
# Don't add anything new to this legacy dict.
# Instead, see `modern_settings` below.
@@ -359,6 +362,7 @@ class UserBaseSettings(models.Model):
web_line_height_percent=int,
web_navigate_to_sent_message=bool,
web_suggest_update_timezone=bool,
hide_ai_features=bool,
)
modern_notification_settings = dict(