diff --git a/.changeset/fix-patterns-header-align.md b/.changeset/fix-patterns-header-align.md new file mode 100644 index 00000000..a20ae276 --- /dev/null +++ b/.changeset/fix-patterns-header-align.md @@ -0,0 +1,7 @@ +--- +"@hyperdx/app": patch +--- + +fix: align event patterns table headers to the left +fix: remove empty wrapper div on Event Deltas and Event Patterns tabs +fix: add consistent padding to Results Table, Event Deltas, and Event Patterns tabs diff --git a/packages/app/src/DBSearchPage.tsx b/packages/app/src/DBSearchPage.tsx index 1f07d562..63bbe5b6 100644 --- a/packages/app/src/DBSearchPage.tsx +++ b/packages/app/src/DBSearchPage.tsx @@ -1873,7 +1873,7 @@ function DBSearchPage() { /> )} - + )} - - {analysisMode === 'results' && - chartConfig && - histogramTimeChartConfig && ( + {analysisMode === 'results' && ( + + {chartConfig && histogramTimeChartConfig && ( <> {shouldShowLiveModeHint && - analysisMode === 'results' && denoiseResults != true && ( )} - {hasQueryError && queryError ? ( - <> -
- {whereSuggestions && whereSuggestions.length > 0 && ( - - - Query Helper + {hasQueryError && queryError ? ( + <> +
+ {whereSuggestions && whereSuggestions.length > 0 && ( + + + Query Helper + + + {whereSuggestions!.map(s => ( + <> + + {s.userMessage('where')} + + + + + + ))} + + + )} + + + Error encountered for query with inputs: - - {whereSuggestions!.map(s => ( - <> - - {s.userMessage('where')} - - - - - - ))} - - - )} - - - Error encountered for query with inputs: - - - - - SELECT - - - - - - ORDER BY - - - - - - - {chartConfig.whereLanguage === 'lucene' - ? 'Searched For' - : 'WHERE'} - - - - {chartConfig.whereLanguage === 'lucene' ? ( - + + + SELECT + + + - ) : ( - - )} - - - - - - - Error Message: - - - {queryError.message} - - - {queryError instanceof ClickHouseQueryError && ( + + + ORDER BY + + + + + + + {chartConfig.whereLanguage === 'lucene' + ? 'Searched For' + : 'WHERE'} + + + + {chartConfig.whereLanguage === 'lucene' ? ( + + ) : ( + + )} + + + + - Original Query: + Error Message: - + {queryError.message} - )} -
- - ) : ( - - {chartConfig && - searchedConfig.source && - dbSqlRowTableConfig && - analysisMode === 'results' && ( - - )} - - )} - + {queryError instanceof ClickHouseQueryError && ( + + + Original Query: + + + + + + )} +
+ + ) : ( + + {chartConfig && + searchedConfig.source && + dbSqlRowTableConfig && ( + + )} + + )} +
+ )} )} diff --git a/packages/app/src/components/DBDeltaChart.tsx b/packages/app/src/components/DBDeltaChart.tsx index ea18aefb..e1cd4336 100644 --- a/packages/app/src/components/DBDeltaChart.tsx +++ b/packages/app/src/components/DBDeltaChart.tsx @@ -551,7 +551,7 @@ export default function DBDeltaChart({ return ( diff --git a/packages/app/src/components/Search/DBSearchHeatmapChart.tsx b/packages/app/src/components/Search/DBSearchHeatmapChart.tsx index 5142db53..8ffa81ed 100644 --- a/packages/app/src/components/Search/DBSearchHeatmapChart.tsx +++ b/packages/app/src/components/Search/DBSearchHeatmapChart.tsx @@ -13,8 +13,7 @@ import { TSource, } from '@hyperdx/common-utils/dist/types'; import { Box, Flex } from '@mantine/core'; -import { ActionIcon } from '@mantine/core'; -import { Paper } from '@mantine/core'; +import { Button } from '@mantine/core'; import { Center } from '@mantine/core'; import { Text } from '@mantine/core'; import { IconPlayerPlay } from '@tabler/icons-react'; @@ -57,7 +56,7 @@ export function DBSearchHeatmapChart({ style={{ overflow: 'hidden' }} ref={setContainer} > - + ) : ( - -
- - Please highlight an outlier range in the heatmap to view the delta - chart. - -
-
+
+ + Please highlight an outlier range in the heatmap to view the delta + chart. + +
)}
); @@ -189,15 +186,15 @@ function DBSearchHeatmapForm({ rules={{ required: true }} /> - } > - - + Run + ); diff --git a/packages/app/styles/SearchPage.module.scss b/packages/app/styles/SearchPage.module.scss index 72d32f15..3e74bd07 100644 --- a/packages/app/styles/SearchPage.module.scss +++ b/packages/app/styles/SearchPage.module.scss @@ -151,14 +151,14 @@ .searchStatsContainer { background-color: var(--color-bg-body); - padding-inline: var(--mantine-spacing-xs); + padding-inline: var(--mantine-spacing-sm); padding-block: var(--mantine-spacing-xxs); z-index: 3; } .timeChartContainer { background-color: var(--color-bg-body); - padding-inline: var(--mantine-spacing-xs); + padding-inline: var(--mantine-spacing-sm); padding-block: var(--mantine-spacing-xxs); height: 120px; z-index: 3;