[Statsig] Add test gates and events (#3659)

* [Statsig] Add test gates and events

* Better types
This commit is contained in:
dan 2024-04-23 04:47:13 +01:00 committed by GitHub
parent 30c2c05103
commit 096725110a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 89 additions and 1 deletions

View file

@ -113,4 +113,14 @@ export type LogEvents = {
| 'ProfileMenu'
| 'ProfileHoverCard'
}
'test:all:always': {}
'test:all:sometimes': {}
'test:all:boosted_by_gate1': {reason: 'base' | 'gate1'}
'test:all:boosted_by_gate2': {reason: 'base' | 'gate2'}
'test:all:boosted_by_both': {reason: 'base' | 'gate1' | 'gate2'}
'test:gate1:always': {}
'test:gate1:sometimes': {}
'test:gate2:always': {}
'test:gate2:sometimes': {}
}

View file

@ -6,4 +6,6 @@ export type Gate =
| 'hide_vertical_scroll_indicators'
| 'show_follow_back_label_v2'
| 'start_session_with_following_v2'
| 'test_gate_1'
| 'test_gate_2'
| 'use_new_suggestions_endpoint'