|
11 | 11 | // See the License for the specific language governing permissions and |
12 | 12 | // limitations under the License. |
13 | 13 |
|
14 | | -import { Alert, Box, Stack } from '@mui/material'; |
| 14 | +import { Box, Stack } from '@mui/material'; |
15 | 15 | import { ErrorAlert, ErrorBoundary, LoadingOverlay, NoDataOverlay } from '@perses-dev/components'; |
16 | 16 | import { QueryDefinition, isValidTraceId } from '@perses-dev/core'; |
17 | 17 | import { Panel } from '@perses-dev/dashboards'; |
18 | 18 | import { useExplorerManagerContext } from '@perses-dev/explore'; |
19 | 19 | import { DataQueriesProvider, MultiQueryEditor, useDataQueries } from '@perses-dev/plugin-system'; |
20 | 20 | import { ReactElement, useState } from 'react'; |
21 | 21 | import { TempoTraceQuerySpec } from '../model'; |
| 22 | +import { ClosableAlert } from '../components/ClosableAlert'; |
22 | 23 | import { linkToSpan, linkToTrace } from './links'; |
23 | 24 |
|
24 | 25 | interface TracesExplorerQueryParams { |
@@ -56,6 +57,11 @@ function SearchResultsPanel({ queries }: SearchResultsPanelProps): ReactElement |
56 | 57 |
|
57 | 58 | return ( |
58 | 59 | <Stack sx={{ height: '100%' }} gap={2}> |
| 60 | + {hasMoreResults && ( |
| 61 | + <ClosableAlert severity="warning"> |
| 62 | + Not all matching traces are currently visible. Increase the display limit to view more. |
| 63 | + </ClosableAlert> |
| 64 | + )} |
59 | 65 | <Box sx={{ height: '35%', flexShrink: 0 }}> |
60 | 66 | <Panel |
61 | 67 | panelOptions={{ |
@@ -97,11 +103,6 @@ function SearchResultsPanel({ queries }: SearchResultsPanelProps): ReactElement |
97 | 103 | }, |
98 | 104 | }} |
99 | 105 | /> |
100 | | - {hasMoreResults && ( |
101 | | - <Alert severity="info"> |
102 | | - Not all matching traces are currently displayed. Increase the result limit to view additional traces. |
103 | | - </Alert> |
104 | | - )} |
105 | 106 | </Stack> |
106 | 107 | ); |
107 | 108 | } |
|
0 commit comments