Skip to content

Commit 6995eac

Browse files
fix: more dense snapshot startup
1 parent bb2daec commit 6995eac

File tree

9 files changed

+22
-19
lines changed

9 files changed

+22
-19
lines changed

src/colors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export const bootProgressGossipHighFilledBarColor = "#5E1717";
4848
export const bootProgressGossipHighThresholdBarColor = "#CE3636";
4949

5050
export const bootProgressPrimaryTextColor = "#A2A2A2";
51-
export const bootProgressSecondaryTextColor = "#454545";
52-
export const bootProgressSnapshotPctColor = "#C8B3B3";
51+
export const bootProgressSecondaryTextColor = "#666";
52+
export const bootProgressTertiaryColor = "#C8B3B3";
5353
export const bootProgressSnapshotUnitsColor = "#686868";
5454

5555
export const progressBarIncompleteGossipColor = "#171765ff";

src/features/StartupProgress/Firedancer/Body.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function BootProgressContent({ phase }: BootProgressContentProps) {
6868
>
6969
<PhaseHeader phase={phase} />
7070

71-
<Box pt="6" flexGrow="1">
71+
<Box flexGrow="1" m="9">
7272
{phase === BootPhaseEnum.joining_gossip && <GossipProgress />}
7373
{(phase === BootPhaseEnum.loading_full_snapshot ||
7474
phase === BootPhaseEnum.loading_incremental_snapshot) && (
@@ -111,15 +111,15 @@ function PhaseHeader({ phase }: { phase: BootPhase }) {
111111
return (
112112
<>
113113
<Header />
114-
<Flex justify="between" mt="4" mb="20px" className={styles.stepContainer}>
114+
<Flex justify="between" mt="7" mb="2" className={styles.stepContainer}>
115115
<span>
116116
<Text className={styles.secondaryText}>Elapsed </Text>
117117
<TotalDuration />
118118
</span>
119119
<Text className={styles.stepName}>{step.name}</Text>
120120
<span>
121+
<Text className={styles.secondaryText}>Complete </Text>
121122
<Text>{overallPct}% </Text>
122-
<Text className={styles.secondaryText}>Complete</Text>
123123
</span>
124124
</Flex>
125125

src/features/StartupProgress/Firedancer/SnapshotLoadingCard.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ export function SnapshotLoadingCard({
4545

4646
return (
4747
<Card className={clsx(styles.card, styles.throughputCard)}>
48-
<Flex justify="between" align="center" className={styles.cardHeader}>
48+
<Flex
49+
justify="between"
50+
align="center"
51+
wrap="wrap"
52+
gap="2"
53+
className={styles.cardHeader}
54+
>
4955
<Text className={clsx(styles.title, styles.ellipsis)}>{title}</Text>
5056

5157
{showAccountRate && (

src/features/StartupProgress/Firedancer/SnapshotProgress.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function SnapshotProgress() {
7777
: 0;
7878

7979
return (
80-
<Flex direction="column" gap="40px">
80+
<Flex direction="column" gap="26px">
8181
<Flex gap={rowGap}>
8282
<SnapshotLoadingCard
8383
title="Reading"

src/features/StartupProgress/Firedancer/SnapshotSparklineCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import type { TileType } from "../../../api/types";
1515
import TileBusy from "../../Overview/SlotPerformance/TileBusy";
1616
import { useMeasure } from "react-use";
1717

18-
const gridSize = 20;
18+
const gridSize = 15;
1919
// add 1 px for the final grid line
2020
const height = gridSize * 6 + 1;
2121
const width = gridSize * 15 + 1;

src/features/StartupProgress/Firedancer/bars.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.bars {
22
width: 100%;
3-
height: 77px;
3+
height: 50px;
44

55
rect {
66
fill: var(--boot-progress-gossip-bars-color);

src/features/StartupProgress/Firedancer/gossip.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
line-height: normal;
1616

1717
.value {
18-
color: var(--boot-progress-snapshot-pct-color);
18+
color: var(--boot-progress-tertiary-color);
1919
font-size: 36px;
2020
font-style: normal;
2121
font-weight: 400;

src/features/StartupProgress/Firedancer/progressBar.module.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
.progress-bar {
2-
height: 25px;
32
align-items: center;
43
width: 100%;
54

65
.current-step {
7-
height: 100%;
6+
height: 40px;
87
border-width: 1px;
98
border-style: solid;
109
border-radius: 5px;
@@ -19,6 +18,6 @@
1918
}
2019

2120
div {
22-
height: 50%;
21+
height: 25px;
2322
}
2423
}

src/features/StartupProgress/Firedancer/snapshot.module.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
}
1010

1111
.card {
12-
padding: 20px;
13-
gap: 20px;
12+
min-height: 150px;
13+
padding: 10px;
1414
border: 1px solid rgba(255, 255, 255, 0.1);
1515
background: rgba(234, 103, 103, 0.05);
1616
color: var(--boot-progress-primary-text-color);
@@ -55,16 +55,14 @@
5555
.throughput-card {
5656
flex-grow: 1;
5757
display: flex;
58+
min-width: 200px;
5859
flex-direction: column;
5960
justify-content: space-between;
6061

6162
.card-header {
6263
font-size: 18px;
6364
line-height: normal;
6465
font-weight: 400;
65-
& > * {
66-
flex-basis: 25%;
67-
}
6866
}
6967

7068
.title {
@@ -86,7 +84,7 @@
8684
}
8785

8886
.snapshot-pct-text {
89-
color: var(--boot-progress-snapshot-pct-color);
87+
color: var(--boot-progress-primary-text-color);
9088
font-size: 28px;
9189
font-weight: 400;
9290
}

0 commit comments

Comments
 (0)