feat(app): gate the expression info card behind an experiment (#2773)

This commit is contained in:
Hampus
2026-09-14 20:14:58 +02:00
committed by GitHub
parent 7c9274847f
commit 6339c3b8ad
110 changed files with 12827 additions and 5191 deletions
+54
View File
@@ -10569,6 +10569,7 @@
"message_hover_tracking": {"$ref": "#/components/schemas/MessageHoverTrackingConfigResponse"},
"message_keyboard_focus": {"$ref": "#/components/schemas/MessageKeyboardFocusConfigResponse"},
"blocked_message_groups": {"$ref": "#/components/schemas/BlockedMessageGroupsConfigResponse"},
"expression_info_card": {"$ref": "#/components/schemas/ExpressionInfoCardConfigResponse"},
"registration": {
"type": "object",
"properties": {
@@ -10976,6 +10977,7 @@
"message_hover_tracking",
"message_keyboard_focus",
"blocked_message_groups",
"expression_info_card",
"registration",
"self_hosted",
"app_public",
@@ -11129,6 +11131,10 @@
"nullable": true,
"allOf": [{"$ref": "#/components/schemas/BlockedMessageGroupsConfigUpdateRequest"}]
},
"expression_info_card": {
"nullable": true,
"allOf": [{"$ref": "#/components/schemas/ExpressionInfoCardConfigUpdateRequest"}]
},
"registration": {
"nullable": true,
"type": "object",
@@ -15195,6 +15201,24 @@
"enum": ["open", "approval", "closed"],
"type": "string"
},
"ExpressionInfoCardConfigUpdateRequest": {
"type": "object",
"properties": {
"enabled": {"type": "boolean"},
"rollout_basis_points": {"type": "integer", "minimum": 0, "maximum": 10000},
"rollout_salt": {"type": "string", "minLength": 1, "maxLength": 64},
"included_user_ids": {
"maxItems": 1000,
"type": "array",
"items": {"type": "string", "pattern": "^\\d{1,20}$"}
},
"excluded_user_ids": {
"maxItems": 1000,
"type": "array",
"items": {"type": "string", "pattern": "^\\d{1,20}$"}
}
}
},
"BlockedMessageGroupsConfigUpdateRequest": {
"type": "object",
"properties": {
@@ -15331,6 +15355,36 @@
"type": "string",
"enum": ["none", "standard", "gate", "speex", "rnnoise", "gtcrn", "deep_filter"]
},
"ExpressionInfoCardConfigResponse": {
"type": "object",
"properties": {
"enabled": {"default": false, "type": "boolean"},
"config_version": {"default": 0, "type": "integer", "minimum": 0, "maximum": 9007199254740991},
"rollout_basis_points": {"default": 0, "type": "integer", "minimum": 0, "maximum": 10000},
"rollout_salt": {"default": "expression-info-card-v1", "type": "string", "minLength": 1, "maxLength": 64},
"included_user_ids": {
"default": [],
"maxItems": 1000,
"type": "array",
"items": {"type": "string", "pattern": "^\\d{1,20}$"}
},
"excluded_user_ids": {
"default": [],
"maxItems": 1000,
"type": "array",
"items": {"type": "string", "pattern": "^\\d{1,20}$"}
}
},
"required": [
"enabled",
"config_version",
"rollout_basis_points",
"rollout_salt",
"included_user_ids",
"excluded_user_ids"
],
"additionalProperties": false
},
"BlockedMessageGroupsConfigResponse": {
"type": "object",
"properties": {