Fix up metrics and mutations

This commit is contained in:
Eric Bailey
2026-01-14 09:05:39 -06:00
parent 981bd2ff3d
commit 26399b27d0
12 changed files with 126 additions and 42 deletions
+2
View File
@@ -16,6 +16,8 @@ import {enabledLogLevels} from '#/logger/util'
import {isNative} from '#/platform/detection'
import {ENV} from '#/env'
export {type MetricEvents as Metrics} from '#/logger/metrics'
const TRANSPORTS: Transport[] = (function configureTransports() {
switch (ENV) {
case 'production': {
+19 -4
View File
@@ -1,5 +1,6 @@
import {type NotificationReason} from '#/lib/hooks/useNotificationHandler'
import {type FeedDescriptor} from '#/state/queries/post-feed'
import {type LiveEventFeedMetricContext} from '#/features/liveEvents/types'
export type MetricEvents = {
// App events
@@ -789,8 +790,22 @@ export type MetricEvents = {
// user pressed the remove all data button
'contacts:settings:removeData': {}
'liveEventFeeds:hideFeed': {feedId: string}
'liveEventFeeds:unhideFeed': {feedId: string}
'liveEventFeed:hideAllFeeds': {}
'liveEventFeed:unhideAllFeeds': {}
'liveEvents:feed:click': {
feed: string
context: LiveEventFeedMetricContext
}
'liveEvents:feed:hide': {
feed: string
context: LiveEventFeedMetricContext
}
'liveEvents:feed:unhide': {
feed: string
context: LiveEventFeedMetricContext
}
'liveEvents:hideAllFeeds': {
context: LiveEventFeedMetricContext
}
'liveEvents:unhideAllFeeds': {
context: LiveEventFeedMetricContext
}
}