Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/onboarding-checklist-contrast.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperdx/app': patch
---

fix: raise the contrast of the onboarding checklist's step circles and stop
highlighting the first incomplete step, since users can start any step.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const OnboardingChecklist = ({
steps,
phaseLabel,
completedCount,
activeStepId,
isCelebrating,
shouldShow,
dismiss,
Expand Down Expand Up @@ -73,11 +72,7 @@ const OnboardingChecklist = ({
<Collapse expanded={!isCollapsed}>
<Stack gap={6}>
{steps.map(step => (
<StepRow
key={step.id}
step={step}
isActive={step.id === activeStepId}
/>
<StepRow key={step.id} step={step} />
))}

{isCelebrating && (
Expand Down
19 changes: 3 additions & 16 deletions packages/app/src/OnboardingChecklist/StepRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Link from 'next/link';
import {
Group,
Loader,
Paper,
Text,
ThemeIcon,
Tooltip,
Expand All @@ -13,13 +12,7 @@ import { IconCheck, IconChevronRight } from '@tabler/icons-react';

import { OnboardingStep } from './onboardingTasks';

export function StepRow({
step,
isActive,
}: {
step: OnboardingStep;
isActive: boolean;
}) {
export function StepRow({ step }: { step: OnboardingStep }) {
const isActionable =
!step.isComplete && (step.href != null || step.onClick != null);

Expand All @@ -43,7 +36,7 @@ export function StepRow({
size={16}
radius="xl"
variant="outline"
style={{ borderColor: 'var(--color-border)', color: 'transparent' }}
style={{ borderColor: 'var(--color-text-muted)', color: 'transparent' }}
/>
);

Expand All @@ -53,7 +46,6 @@ export function StepRow({
<Text
size="sm"
c={step.isComplete ? 'dimmed' : undefined}
fw={isActive ? 600 : 400}
td={step.isComplete ? 'line-through' : undefined}
flex={1}
>
Expand All @@ -69,12 +61,7 @@ export function StepRow({
</Group>
);

// The active step is elevated onto a surface card.
const rowBody = isActive ? (
<Paper withBorder radius="md" px="sm" py="xs" bg="var(--color-bg-surface)">
{stepContent}
</Paper>
) : (
const rowBody = (
<Group px="sm" py={4}>
{stepContent}
</Group>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ interface OnboardingCompletion {
steps: OnboardingStep[];
phaseLabel: string;
completedCount: number;
activeStepId?: string;
isCelebrating: boolean;
shouldShow: boolean;
dismiss: () => void;
Expand Down Expand Up @@ -173,8 +172,6 @@ export function useOnboardingCompletion(
: 'Set up ClickHouse';
const completedCount = steps.filter(step => step.isComplete).length;
const isPhaseComplete = completedCount === steps.length;
// First incomplete step; rendered as the active call-to-action.
const activeStepId = steps.find(step => !step.isComplete)?.id;

// Derived, never persisted: adding a task to ONBOARDING_TASK_IDS reopens the
// checklist for previously-finished users. isDismissed is the manual opt-out.
Expand Down Expand Up @@ -243,7 +240,6 @@ export function useOnboardingCompletion(
steps,
phaseLabel,
completedCount,
activeStepId,
isCelebrating,
shouldShow,
dismiss: () => dismissOnboarding.mutate(true),
Expand Down
Loading