Enhance Sessions page UI with improved setup instructions and consistent font application (#1695)

This commit is contained in:
Elizabet Oliveira 2026-02-04 14:36:42 +00:00 committed by GitHub
parent 3859ceb2d2
commit 3c38272f95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 84 additions and 40 deletions

View file

@ -0,0 +1,8 @@
---
"@hyperdx/app": patch
---
UI improvements for ClickStack/HyperDX:
- Improve Sessions page empty state with enhanced Card and Stepper component for setup instructions
- Apply consistent IBM Plex Mono font family to log tables, JSON viewer, and multi-series table charts

View file

@ -219,7 +219,11 @@ export const Table = ({
<div className="overflow-auto h-100 fs-8" ref={tableContainerRef}>
<table
className="w-100"
style={{ tableLayout: 'fixed', borderCollapse: 'collapse' }}
style={{
tableLayout: 'fixed',
borderCollapse: 'collapse',
fontFamily: 'var(--font-ibm-plex-mono)',
}}
>
<thead
style={{

View file

@ -13,13 +13,19 @@ import {
} from '@hyperdx/common-utils/dist/types';
import {
Alert,
Anchor,
Box,
Button,
Center,
Card,
Code,
Divider,
Flex,
Group,
Stack,
Stepper,
Text,
ThemeIcon,
Title,
} from '@mantine/core';
import {
IconDeviceLaptop,
@ -526,44 +532,68 @@ SessionsPage.getLayout = withAppNav;
function SessionSetupInstructions() {
return (
<>
<Stack w={500} mx="auto" mt="xl" gap="xxs">
<IconDeviceLaptop size={32} className="text-muted" />
<Text c="gray" fw={500} size="xs">
Instructions
</Text>
<Text c="gray">
You can set up Session Replays when the HyperDX Otel Collector is
used.
</Text>
<Text c="gray" fw={500} mt="sm">
1. Create a new source with <strong>Session</strong> type
</Text>
<Text c="dimmed" size="xs">
Go to Team Settings, click <strong>Add Source</strong> under Sources
section, and select <strong>Session</strong> as the source type.
</Text>
<Text c="gray" fw={500} mt="sm">
2. Choose the <strong>hyperdx_sessions</strong> table
</Text>
<Text c="dimmed" size="xs">
Select the <strong>hyperdx_sessions</strong> table from the dropdown,
and select the corresponding trace source.
</Text>
<Text c="gray" fw={500} mt="sm">
3. Start recording sessions
</Text>
<Text c="dimmed" size="xs">
Install the{' '}
<a
href="https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/browser"
target="_blank"
>
HyperDX Browser Integration
</a>{' '}
to start recording sessions.
</Text>
</Stack>
<Card w={500} mx="auto" mt="xl" p="xl" withBorder>
<Stack gap="lg">
<Stack align="center" gap="xs">
<ThemeIcon size={56} radius="xl" variant="light" color="gray">
<IconDeviceLaptop size={32} />
</ThemeIcon>
<Title order={3} fw={600}>
Set up session replays
</Title>
<Text size="sm" c="dimmed" ta="center">
Follow these steps to start recording and viewing session replays
with the HyperDX Otel Collector.
</Text>
</Stack>
<Divider />
<Stepper active={-1} orientation="vertical" size="md">
<Stepper.Step
label={
<>
Create a new source with <Code>Session</Code> type
</>
}
description={
<>
Go to Team Settings, click <Code>Add Source</Code> under
Sources section, and select <Code>Session</Code> as the source
type.
</>
}
/>
<Stepper.Step
label={
<>
Choose the <Code>hyperdx_sessions</Code> table
</>
}
description={
<>
Select the <Code>hyperdx_sessions</Code> table from the
dropdown, and select the corresponding trace source.
</>
}
/>
<Stepper.Step
label="Start recording sessions"
description={
<>
Install the{' '}
<Anchor
href="https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/browser"
target="_blank"
rel="noopener noreferrer"
>
HyperDX Browser Integration
</Anchor>{' '}
to start recording sessions.
</>
}
/>
</Stepper>
</Stack>
</Card>
</>
);
}

View file

@ -5,6 +5,7 @@
flex-direction: column;
padding: var(--mantine-spacing-xs);
font-size: 12px;
font-family: var(--font-ibm-plex-mono);
}
.withTabulate {

View file

@ -16,6 +16,7 @@ $button-height: 18px;
border-spacing: 0;
border-collapse: separate;
background: var(--log-table-bg);
font-family: var(--font-ibm-plex-mono);
}
.tableHead {