fix: onboarding progress bar hardcoded to step 1 only - #65
Conversation
|
@Tilakraj1491 is attempting to deploy a commit to the itzzavdhesh's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe Onboarding component now computes a ChangesOnboarding Progress Tracking
Environment example update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@client/src/pages/Onboarding.jsx`:
- Line 14: The step label is hardcoded ("Step 1 of 3") and can get out of sync
with the derived state variable currentStep; update the label to reuse
currentStep (e.g., render currentStep + 1) so it always matches the highlighted
bars. Locate the currentStep constant and replace the hardcoded label text with
a computed string that uses currentStep (and the total steps constant if
present) so the UI shows the correct "Step X of Y" dynamically.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 20ded4ea-5ad4-4c42-b34e-0827dd46b8ee
📒 Files selected for processing (1)
client/src/pages/Onboarding.jsx
8b4a24a to
09b0dfd
Compare
Signed-off-by: Tilak <tilakrajsingh1491@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
DCO Sign-off VerifiedHi @Tilakraj1491, all commits currently include a valid Your DCO check is clear. Maintainers will continue with the normal PR review flow. VoiceForge automation |
Signed-off-by: Tilak <tilakrajsingh1491@gmail.com>
495fd21 to
bb6a7a4
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.env.example:
- Line 2: Remove the unintended leading space after the equals sign for the
ELEVENLABS_API_KEY example value: edit the .env.example entry for the
ELEVENLABS_API_KEY variable so the value starts immediately after '=' (no
prefixed whitespace) to prevent accidental copying of a space into real env
files.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
PR Format Check PassedHi @Tilakraj1491, thank you for opening this PR. Your PR has passed the automated structure checks and entered the maintainer review queue.
This does not mean the PR is approved yet. A maintainer will still review scope, code quality, tests, and merge readiness. VoiceForge automation |
Signed-off-by: Tilak <tilakrajsingh1491@gmail.com>
There was a problem hiding this comment.
♻️ Duplicate comments (1)
.env.example (1)
2-2:⚠️ Potential issue | 🟠 Major | ⚡ Quick winRemove the leading space after
=to prevent authentication failures.The placeholder value has a leading space after the equals sign. Users copying this format may inadvertently include the space when pasting their actual API key, breaking ElevenLabs authentication.
🔧 Proposed fix
-ELEVENLABS_API_KEY= paste_your_api_key_here +ELEVENLABS_API_KEY=paste_your_api_key_here🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.env.example at line 2, The ELEVENLABS_API_KEY entry in .env.example currently has a leading space after the equals sign which can cause pasted API keys to include that space and break authentication; edit the ELEVENLABS_API_KEY line to remove the space so it reads ELEVENLABS_API_KEY=<your_api_key_here> (update the placeholder text if desired) to ensure keys copy/paste correctly.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Duplicate comments:
In @.env.example:
- Line 2: The ELEVENLABS_API_KEY entry in .env.example currently has a leading
space after the equals sign which can cause pasted API keys to include that
space and break authentication; edit the ELEVENLABS_API_KEY line to remove the
space so it reads ELEVENLABS_API_KEY=<your_api_key_here> (update the placeholder
text if desired) to ensure keys copy/paste correctly.
PR MergedHi @Tilakraj1491, thank you for your contribution to VoiceForge. This pull request has been merged successfully and marked as complete.
Maintainers may still do final cleanup, release notes, or follow-up tracking after merge. VoiceForge automation |
🚀 Program
GSSoC
📝 Description
The onboarding progress bar in
client/src/pages/Onboarding.jsxwas hardcodedto always highlight only the first step ("Record") using
index === 0. Steps"Clone" and "Call" remained grey permanently regardless of the user's actual
progress.
The fix derives the active step from already-existing state:
recording === null→ step 0 (only "Record" highlighted)recordingis set → step 1 ("Record" + "Clone" highlighted)successProfileis set → step 2 (all 3 bars highlighted).No new state or props were added. The change touches a single condition
in the progress bar map inside
Onboarding.jsx.🔗 Related Issue
Closes #64
🔄 Type of Change
🧪 How to Test
http://localhost:5173in Chrome or Edge.📸 Screenshots (if applicable)
✅ Checklist
fix: onboarding progress bar hardcoded to step 1 only)Summary by CodeRabbit