feat(frontend): switch to the dark graphite design system with a Lincodex wordmark

This commit is contained in:
shira committed 2026-10-10 02:01:39 +03:00
1 parent 945ab6d6a9
commit 3c4acff803
81 files changed
+3187 -619

No files matched your search

@@ -0,0 +1,22 @@
export type StepStatus = "complete" | "current" | "upcoming";
export type StepperStep = {
id: string;
label: string;
status: StepStatus;
};
/**
* Builds the statuses of a linear flow: steps before the current one are
* complete, the rest are upcoming. A current index past the end marks every
* step complete.
*/
export function buildSteps(
steps: readonly { id: string; label: string }[],
currentIndex: number,
): StepperStep[] {
return steps.map((step, index) => ({
...step,
status: index < currentIndex ? "complete" : index === currentIndex ? "current" : "upcoming",
}));
}