π Description
The ProgressStepper component in the onboarding flow shows step circles connected by a thin horizontal line. When a step is completed, the circle turns green β but the connector line between steps stays a static gray (bg-[#30363d]) regardless of progress.
A more polished UX would show the connector line fill with green as each step is completed, giving users a clear visual sense of how far along the onboarding flow they are.
π File to Change
frontend/app/onboarding/components/progress.tsx
π Current Code (line ~40)
{idx !== steps.length - 1 && (
<div className="flex-1 mx-4 h-[1px] bg-[#30363d] hidden sm:block" />
)}
The connector line is always the same gray color.
β
What To Do
Conditionally apply a green color to the connector line when the step to the left of it is completed:
{idx !== steps.length - 1 && (
<div
className={`flex-1 mx-4 h-[1px] hidden sm:block transition-colors duration-500 ${
isCompleted ? 'bg-[#238636]' : 'bg-[#30363d]'
}`}
/>
)}
Optional enhancement: Use a gradient that transitions from green to gray exactly at the step boundary:
className={`flex-1 mx-4 h-[1px] hidden sm:block ${
isCompleted
? 'bg-[#238636]'
: isCurrent
? 'bg-gradient-to-r from-[#238636] to-[#30363d]'
: 'bg-[#30363d]'
}`}
π Acceptance Criteria
π‘ Technical Hints
- The
isCompleted variable is already computed for each step in the .map() β just use it on the connector <div>
- The connector
<div> is the hidden sm:block div right after the step circle
transition-colors duration-500 gives a smooth fill animation
π Getting Started
- Fork the repository
- Create a branch:
git checkout -b fix/issue-12-stepper-connector-animation
- Edit
frontend/app/onboarding/components/progress.tsx
- Run:
cd frontend && npm run dev β go to /onboarding to preview
- Open a Pull Request!
π Description
The
ProgressSteppercomponent in the onboarding flow shows step circles connected by a thin horizontal line. When a step is completed, the circle turns green β but the connector line between steps stays a static gray (bg-[#30363d]) regardless of progress.A more polished UX would show the connector line fill with green as each step is completed, giving users a clear visual sense of how far along the onboarding flow they are.
π File to Change
frontend/app/onboarding/components/progress.tsxπ Current Code (line ~40)
The connector line is always the same gray color.
β What To Do
Conditionally apply a green color to the connector line when the step to the left of it is completed:
Optional enhancement: Use a gradient that transitions from green to gray exactly at the step boundary:
π Acceptance Criteria
#238636)#30363d)transition-colorsclass is added for a smooth animation when steps changeπ‘ Technical Hints
isCompletedvariable is already computed for each step in the.map()β just use it on the connector<div><div>is thehidden sm:blockdiv right after the step circletransition-colors duration-500gives a smooth fill animationπ Getting Started
git checkout -b fix/issue-12-stepper-connector-animationfrontend/app/onboarding/components/progress.tsxcd frontend && npm run devβ go to/onboardingto preview