feat(setup): guide users by connection source - #256
Conversation
📝 WalkthroughWalkthroughInteractive CLI and Console setup now present outcome-first source choices for connectors, remote endpoints, local executables, browser sign-in, and client-entry import. CLI routing, Console controls, documentation, and tests were updated accordingly. ChangesSetup source selection
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant User
participant SetupChooser
participant SetupFlow
User->>SetupChooser: select a setup source
SetupChooser->>SetupFlow: route connector, remote, local, sign-in, or import
SetupFlow-->>User: show the selected onboarding form or status
Poem
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 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 `@docs/cli.md`:
- Around line 76-82: Update the `miftah setup [name]` summary-table cell to
describe the current five-way guided choice: `connector`, `remote`, `local`,
`browser sign-in`, or `import`, replacing the stale `new`/`import` wording. Keep
the detailed setup behavior and surrounding table content unchanged.
In `@src/cli/setup.ts`:
- Around line 109-132: Update the answer matching in the setup prompt flow to
accept “local executable” as an alias alongside the existing local options.
Modify the conditional that returns “local” while preserving all current aliases
and behavior.
In `@src/console/console-assets.ts`:
- Around line 90-100: Update the single-select setup-source control around the
“setup-source-choice” fieldset to use radiogroup semantics: expose the group as
a radiogroup and each mutually exclusive option as a radio, preserving the
existing labels, selected state, and source-selection behavior.
In `@tests/setup-command.test.ts`:
- Around line 465-498: The setup command tests cover bare remote selection but
not the equivalent bare local routing. Add a symmetric test for
guidedSourcePrompt selecting “local” that verifies the generated configuration
uses the local-stdio preset and confirms successful setup, following the
existing remote test’s structure and assertions.
🪄 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: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 0039489c-117c-4fe3-b896-5109a6745c5e
📒 Files selected for processing (8)
CHANGELOG.mdREADME.mddocs/cli.mdsrc/cli/setup.tssrc/console/console-assets.tstests/console-server.test.tstests/readme-product-contract.test.tstests/setup-command.test.ts
|
CodeRabbit is rate-limited on the current head ( |
CodeRabbit is rate-limited on current head fab7ced; all four actionable threads are resolved and current-head CI remains required.
Part of #204.
Summary
Safety boundaries
TDD and validation
Summary by CodeRabbit
New Features
Documentation