Fix hydration errors across a variety of pages (#1556)

Small PR to resolve all the hydration errors on a few pages
This commit is contained in:
Brandon Pereira 2026-01-06 09:33:05 -07:00 committed by GitHub
parent 8213d69b8e
commit e9650e8651
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 9 deletions

View file

@ -0,0 +1,5 @@
---
"@hyperdx/app": patch
---
Fix hydration errors across a variety of pages

View file

@ -293,8 +293,8 @@ export const Table = ({
</tr>
)}
</tbody>
{tableBottom && tableBottom}
</table>
{tableBottom}
</div>
);
};

View file

@ -220,7 +220,7 @@ function SessionCardList({
const defaultTimeRange = parseTimeQuery('Past 1h', false) as [Date, Date];
const appliedConfigMap = {
sessionSource: parseAsString,
where: parseAsString,
where: parseAsString.withDefault(''),
whereLanguage: parseAsStringEnum<'sql' | 'lucene'>(['sql', 'lucene']),
};
export default function SessionsPage() {

View file

@ -1,4 +1,4 @@
import { useCallback, useState } from 'react';
import { Fragment, useCallback, useState } from 'react';
import Head from 'next/head';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import { SubmitHandler, useForm, useWatch } from 'react-hook-form';
@ -162,11 +162,11 @@ function SourcesSection() {
<Card variant="muted">
<Stack>
{sources?.map(s => (
<>
<Flex key={s.id} justify="space-between" align="center">
<Fragment key={s.id}>
<Flex justify="space-between" align="center">
<div>
<Text>{s.name}</Text>
<Text size="xxs" c="dimmed" mt="xs">
<Text size="xxs" c="dimmed" mt="xs" component="div">
<Group gap="xs">
{capitalizeFirstLetter(s.kind)}
<Group gap={2}>
@ -216,7 +216,7 @@ function SourcesSection() {
/>
)}
<Divider />
</>
</Fragment>
))}
{!IS_LOCAL_MODE && isCreatingSource && (
<TableSourceForm

View file

@ -1229,7 +1229,7 @@ const DBSearchPageFiltersComponent = ({
withArrow
label="Denoise results will visually remove events matching common event patterns from the results table."
>
<Text size="xs" mt="-2px">
<Text size="xs" mt="-2px" component="div">
<Group gap={2}>
<IconShadow
size={14}
@ -1258,7 +1258,7 @@ const DBSearchPageFiltersComponent = ({
withArrow
label="Only show root spans (spans with no parent span)."
>
<Text size="xs" mt="-2px">
<Text size="xs" mt="-2px" component="div">
<Group gap={2}>
<IconSitemap
size={14}