From 0f02c0cd5c4a51d850cb4eb7b49c76566ed57c2c Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 4 Feb 2026 13:19:57 +0530 Subject: [PATCH] feat(account): add report_hidden_metrics setting Add report_hidden_metrics to account settings schema to allow hiding specific metrics from reports on a per-account basis. Supported metrics: outgoing_messages_count, incoming_messages_count, reply_time --- app/models/account.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/models/account.rb b/app/models/account.rb index fead5f0f7..6f67a0c6c 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -67,6 +67,13 @@ class Account < ApplicationRecord 'help_center_search': { 'type': %w[boolean null] } }, 'additionalProperties': false + }, + 'report_hidden_metrics': { + 'type': %w[array null], + 'items': { + 'type': 'string', + 'enum': %w[outgoing_messages_count incoming_messages_count reply_time] + } } }, 'required': [], @@ -88,6 +95,7 @@ class Account < ApplicationRecord store_accessor :settings, :audio_transcriptions, :auto_resolve_label store_accessor :settings, :captain_models, :captain_features + store_accessor :settings, :report_hidden_metrics has_many :account_users, dependent: :destroy_async has_many :agent_bot_inboxes, dependent: :destroy_async