Skip to content
Draft
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
15 changes: 8 additions & 7 deletions src/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const startupCompleteStepColor = "#3BA158";
// boot progress
export const bootProgressGossipBackgroundColor = "#030312";
export const bootProgressFullSnapshotBackgroundColor = "#020C12";
export const bootProgressIncrSnapshotBackgroundColor = "#120212";
export const bootProgressCatchupBackgroundColor = "#120212";
export const bootProgressIncrSnapshotBackgroundColor = "#020912";
export const bootProgressCatchupBackgroundColor = "#060E0E";

export const bootProgressGossipBarsColor = "#252D2C";
export const bootProgressGossipFilledBarColor = "#175E51";
Expand All @@ -55,7 +55,7 @@ export const bootProgressTertiaryColor = "#C8B3B3";
export const bootProgressSnapshotUnitsColor = "#686868";

export const progressBarIncompleteGossipColor = "#171765ff";
export const progressBarInProgressGossipBackground = `linear-gradient(270deg, #1414B8 -1.75%, #090952 101.75%)`;
export const progressBarInProgressGossipBackground = `linear-gradient(270deg, #1414B8 0%, #090952 100%)`;
export const progressBarInProgressGossipBorder = "#8F8FED";
export const progressBarCompleteGossipColor = "#0E0E8E";

Expand All @@ -64,10 +64,11 @@ export const progressBarInProgressFullSnapshotBackground = `linear-gradient(270d
export const progressBarInProgressFullSnapshotBorder = "#47B4EB";
export const progressBarCompleteFullSnapshotColor = "#0F3F57";

export const progressBarIncompleteIncSnapshotColor = "#150915";
export const progressBarInProgressIncSnapshotBackground = `linear-gradient(270deg, #8B0E8B 0%, #250425 112.5%)`;
export const progressBarInProgressIncSnapshotBorder = "#C06AC0";
export const progressBarCompleteIncSnapshotColor = "#570F57";
export const progressBarIncompleteIncSnapshotColor = "#041225";
export const progressBarInProgressIncSnapshotBackground = `linear-gradient(270deg, #0E448B 0%, #090E15 100%)`;
export const progressBarInProgressIncSnapshotBorder = "#83B3F2";
// TODO: update this color
export const progressBarCompleteIncSnapshotColor = "#090E15";

export const progressBarIncompleteCatchupColor = "#091515";
export const progressBarInProgressCatchupBackground = `linear-gradient(270deg, ${appTeal} 0%, #0C6B5A 100%)`;
Expand Down
24 changes: 15 additions & 9 deletions src/features/StartupProgress/Firedancer/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useAtomValue } from "jotai";
import { bootProgressBarPctAtom } from "../atoms";
import styles from "./progressBar.module.css";
import { steps } from "./consts";
import { BootPhaseEnum } from "../../../api/entities";

interface ProgressBarProps {
stepIndex: number;
Expand All @@ -13,18 +14,23 @@ export function ProgressBar({ stepIndex }: ProgressBarProps) {

return (
<Flex className={styles.progressBar}>
{Object.values(steps).map(
{Object.entries(steps).map(
(
{
name,
estimatedPct,
completeColor,
inProgressBackground,
incompleteColor,
borderColor,
},
[
phase,
{
name,
estimatedPct,
completeColor,
inProgressBackground,
incompleteColor,
borderColor,
},
],
i,
) => {
if (phase === BootPhaseEnum.running) return;

const width = `${estimatedPct * 100}%`;

if (i === stepIndex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
align-items: center;
width: 100%;

> *:first-child {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
}
> *:last-child {
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
}

.current-step {
height: 40px;
border-width: 1px;
Expand Down