feat: mark onboarding steps from CLI commands#178
Merged
Conversation
Call the Prismic onboarding service after `init`, `slice create`, and `type create --format page` so CLI-first users see correct onboarding progress in the dashboard, matching slice-machine's behavior. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The CLI doesn't set up slice-machine, so completing this step from init would misrepresent user progress. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Both repository and onboarding endpoints live on the Repository Service, so colocating them avoids a one-function file and a cross-file helper export. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Local create commands only write files; models exist on the server only after push. Move onboarding triggers into push so steps complete when the remote side actually gains a slice or page type. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Prevents typos at call sites and documents the full set of known steps (sourced from slice-machine's usage) in one place. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Move `connectPrismic` trigger from init into pull and sync, since those commands are what actually wire a codebase to a repository. - Fire `createPrismicProject` from repo-create after the repository is successfully created on the server. - Scope the `OnboardingStep` union to the current dashboard-tracked set: createPrismicProject, createPageType, createSlice, connectPrismic. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d69d16d. Configure here.
tomaboro
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
src/clients/repository.tswith onboarding helpers (getOnboardingState,completeOnboardingSteps,completeOnboardingStepsSilently) wrapping the Repository Service'sGET /onboardingandPATCH /onboarding/:stepId/toggleendpoints — same contract as slice-machine'sPrismicRepositoryManager.OnboardingStepunion scoped to the dashboard's current set:createPrismicProject,createPageType,createSlice,connectPrismic.prismic repo create→createPrismicProjectprismic push→createSlice(when a slice is inserted remotely) and/orcreatePageType(when an inserted custom type hasformat: "page")prismic pullandprismic sync(after initial sync) →connectPrismicHow to QA
npx prismic@pr-178 repo createmarkscreatePrismicProject(this is a self-completing step, but why not)npx prismic@pr-178 pushafterslice createmarkscreateSlicecompletenpx prismic@pr-178 pushaftertype createfor page-format type markscreatePageType; pushing a non-page type does notnpx prismic@pr-178 pullmarksconnectPrismiccompletenpx prismic@pr-178 sync --watchmarksconnectPrismicon the initial sync🤖 Generated with Claude Code