@@ -23,6 +23,8 @@ import {withChonk} from 'sentry/utils/theme/withChonk';
2323import useOrganization from 'sentry/utils/useOrganization' ;
2424import usePageFilters from 'sentry/utils/usePageFilters' ;
2525import useProjects from 'sentry/utils/useProjects' ;
26+ import SchemaHintsList from 'sentry/views/explore/components/schemaHints/schemaHintsList' ;
27+ import { SchemaHintsSources } from 'sentry/views/explore/components/schemaHints/schemaHintsUtils' ;
2628import { TableActionButton } from 'sentry/views/explore/components/tableActionButton' ;
2729import { useTraceItemTags } from 'sentry/views/explore/contexts/spanTagsContext' ;
2830import { TraceItemAttributeProvider } from 'sentry/views/explore/contexts/traceItemAttributeContext' ;
@@ -43,6 +45,8 @@ import {ModulePageProviders} from 'sentry/views/insights/common/components/modul
4345import { InsightsProjectSelector } from 'sentry/views/insights/common/components/projectSelector' ;
4446import { ModuleName , SpanFields } from 'sentry/views/insights/types' ;
4547
48+ const DISABLE_AGGREGATES : never [ ] = [ ] ;
49+
4650function useShowOnboarding ( ) {
4751 const { projects} = useProjects ( ) ;
4852 const pageFilters = usePageFilters ( ) ;
@@ -69,10 +73,16 @@ function AIGenerationsPage() {
6973
7074 const [ fields , setFields ] = useFieldsQueryParam ( ) ;
7175
72- const { tags : numberTags , secondaryAliases : numberSecondaryAliases } =
73- useTraceItemTags ( 'number' ) ;
74- const { tags : stringTags , secondaryAliases : stringSecondaryAliases } =
75- useTraceItemTags ( 'string' ) ;
76+ const {
77+ tags : numberTags ,
78+ secondaryAliases : numberSecondaryAliases ,
79+ isLoading : numberTagsLoading ,
80+ } = useTraceItemTags ( 'number' ) ;
81+ const {
82+ tags : stringTags ,
83+ secondaryAliases : stringSecondaryAliases ,
84+ isLoading : stringTagsLoading ,
85+ } = useTraceItemTags ( 'string' ) ;
7686
7787 const hasRawSearchReplacement = organization . features . includes (
7888 'search-query-builder-raw-search-replacement'
@@ -137,26 +147,36 @@ function AIGenerationsPage() {
137147 return (
138148 < SearchQueryBuilderProvider { ...eapSpanSearchQueryProviderProps } >
139149 < ModuleFeature moduleName = { ModuleName . AI_GENERATIONS } >
140- < Flex
150+ < Stack
151+ direction = "column"
141152 gap = "md"
142- wrap = "wrap "
153+ borderBottom = "muted "
143154 padding = { {
144155 xs : 'xl xl xl xl' ,
145156 md : 'xl 2xl xl 2xl' ,
146157 } }
147- borderBottom = "muted"
148158 >
149- < PageFilterBar condensed >
150- < InsightsProjectSelector />
151- < InsightsEnvironmentSelector />
152- < DatePageFilter { ...datePageFilterProps } />
153- </ PageFilterBar >
154- { ! showOnboarding && (
155- < Flex flex = { 2 } minWidth = "50%" >
156- < EAPSpanSearchQueryBuilder { ...eapSpanSearchQueryBuilderProps } />
157- </ Flex >
158- ) }
159- </ Flex >
159+ < Flex gap = "md" wrap = "wrap" >
160+ < PageFilterBar condensed >
161+ < InsightsProjectSelector />
162+ < InsightsEnvironmentSelector />
163+ < DatePageFilter { ...datePageFilterProps } />
164+ </ PageFilterBar >
165+ { ! showOnboarding && (
166+ < Flex flex = { 2 } minWidth = "50%" >
167+ < EAPSpanSearchQueryBuilder { ...eapSpanSearchQueryBuilderProps } />
168+ </ Flex >
169+ ) }
170+ </ Flex >
171+ < SchemaHintsList
172+ supportedAggregates = { DISABLE_AGGREGATES }
173+ numberTags = { numberTags }
174+ stringTags = { stringTags }
175+ isLoading = { numberTagsLoading || stringTagsLoading }
176+ exploreQuery = { searchQuery ?? '' }
177+ source = { SchemaHintsSources . AI_GENERATIONS }
178+ />
179+ </ Stack >
160180
161181 { showOnboarding ? (
162182 < Onboarding />
0 commit comments