File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed
static/app/components/searchQueryBuilder Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import styled from '@emotion/styled';
3
3
import { space } from 'sentry/styles/space' ;
4
4
5
5
export const ASK_SEER_ITEM_KEY = 'ask_seer' ;
6
+ export const ASK_SEER_CONSENT_ITEM_KEY = 'ask_seer_consent' ;
6
7
7
8
export const AskSeerPane = styled ( 'div' ) `
8
9
grid-area: seer;
Original file line number Diff line number Diff line change @@ -53,13 +53,19 @@ export interface AskSeerItem extends SelectOptionWithKey<string> {
53
53
value : string ;
54
54
}
55
55
56
+ export interface AskSeerConsentItem extends SelectOptionWithKey < string > {
57
+ type : 'ask-seer-consent' ;
58
+ value : string ;
59
+ }
60
+
56
61
export type SearchKeyItem =
57
62
| KeySectionItem
58
63
| KeyItem
59
64
| RawSearchItem
60
65
| FilterValueItem
61
66
| RawSearchFilterValueItem
62
- | AskSeerItem ;
67
+ | AskSeerItem
68
+ | AskSeerConsentItem ;
63
69
64
70
export type FilterKeyItem =
65
71
| KeyItem
@@ -69,7 +75,8 @@ export type FilterKeyItem =
69
75
| RawSearchItem
70
76
| FilterValueItem
71
77
| RawSearchFilterValueItem
72
- | AskSeerItem ;
78
+ | AskSeerItem
79
+ | AskSeerConsentItem ;
73
80
74
81
export type Section = {
75
82
label : ReactNode ;
Original file line number Diff line number Diff line change 1
1
import styled from '@emotion/styled' ;
2
2
3
3
import { getEscapedKey } from 'sentry/components/core/compactSelect/utils' ;
4
- import { ASK_SEER_ITEM_KEY } from 'sentry/components/searchQueryBuilder/askSeer' ;
4
+ import {
5
+ ASK_SEER_CONSENT_ITEM_KEY ,
6
+ ASK_SEER_ITEM_KEY ,
7
+ } from 'sentry/components/searchQueryBuilder/askSeer' ;
5
8
import { FormattedQuery } from 'sentry/components/searchQueryBuilder/formattedQuery' ;
6
9
import { KeyDescription } from 'sentry/components/searchQueryBuilder/tokens/filterKeyListBox/keyDescription' ;
7
10
import type {
11
+ AskSeerConsentItem ,
8
12
AskSeerItem ,
9
13
FilterValueItem ,
10
14
KeyItem ,
@@ -211,6 +215,17 @@ export function createAskSeerItem(): AskSeerItem {
211
215
} ;
212
216
}
213
217
218
+ export function createAskSeerConsentItem ( ) : AskSeerConsentItem {
219
+ return {
220
+ key : getEscapedKey ( ASK_SEER_CONSENT_ITEM_KEY ) ,
221
+ value : ASK_SEER_CONSENT_ITEM_KEY ,
222
+ textValue : 'Enable Gen AI' ,
223
+ type : 'ask-seer-consent' as const ,
224
+ label : t ( 'Enable Gen AI' ) ,
225
+ hideCheck : true ,
226
+ } ;
227
+ }
228
+
214
229
const SearchItemLabel = styled ( 'div' ) `
215
230
color: ${ p => p . theme . subText } ;
216
231
white-space: nowrap;
You can’t perform that action at this time.
0 commit comments