refactor(onboard): derive progress labels from FSM metadata#4364
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
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:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughCentralizes onboarding progress metadata in a new module, moves a progress entry from ChangesOnboarding progress centralization
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Auto-dispatched E2E: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
E2E Scenario Advisor RecommendationRequired scenario E2E: Dispatch required scenario E2E:
Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
PR Review AdvisorFindings: 0 needs attention, 2 worth checking, 0 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
Since last review detailsCurrent findings:
This is an automated advisory review. A human maintainer must make the final merge decision. |
…gress-metadata # Conflicts: # src/lib/onboard/machine/definition.test.ts # src/lib/onboard/machine/definition.ts
Selective E2E Results — ✅ All requested jobs passedRun: 26664305858
|
Selective E2E Results — ✅ All requested jobs passedRun: 26664370934
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Selective E2E Results — ✅ All requested jobs passedRun: 26665126534
|
Selective E2E Results — ✅ All requested jobs passedRun: 26693706450
|
Selective E2E Results — ✅ All requested jobs passedRun: 26767613399
|
cjagwani
left a comment
There was a problem hiding this comment.
Approving. Clean refactor — replacing the hand-maintained ONBOARD_STEP_INDEX with FSM-derived lookup eliminates the drift risk between FSM state metadata and the step display.
The progress.test.ts snapshot of all 8 labels (including "Setting up agent inside sandbox" for openclaw) means any future divergence between the FSM and the visible step text fails the test. Removing the duplicated progress from agent_setup is right — openclaw is the canonical owner of step 7.
The messaging EXTRA_PROGRESS_STEPS pseudo-step is well-flagged with a migration comment for when it becomes a real FSM state. macos-e2e, test-e2e-sandbox, test-e2e-gateway-isolation, and test-e2e-port-overrides all passed.
Selective E2E Results — ✅ All requested jobs passedRun: 26775888915
|
Summary
Move onboard progress label lookup behind machine metadata. The skip/resume banner path now reads progress labels from a small FSM progress helper instead of a hand-maintained table in
src/lib/onboard.ts.Changes
src/lib/onboard/machine/progress.tsto expose onboarding progress-step metadata derived from state definitions plus the existing messaging pseudo-step.ONBOARD_STEP_INDEXinsrc/lib/onboard.tswithgetOnboardProgressStep().Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com
Summary by CodeRabbit