refactor(setup): remove channel step from setup wizard
- Remove channel connection step from onboarding flow (6 steps -> 5 steps) - Users can now start using ClawX immediately - Channel configuration moved to Settings > Channels (future) - Update architecture doc to reflect simplified setup flow - Reduces onboarding friction for new users
This commit is contained in:
67
build_process/commit_13_remove_channel_setup.md
Normal file
67
build_process/commit_13_remove_channel_setup.md
Normal file
@@ -0,0 +1,67 @@
|
||||
# Commit 13: Remove Channel Setup Step
|
||||
|
||||
## Overview
|
||||
Simplified the setup wizard by removing the channel connection step. Users can now start using ClawX immediately and configure messaging channels later in Settings.
|
||||
|
||||
## Rationale
|
||||
- Channel connection (WhatsApp, Telegram, etc.) is complex and requires external platform configuration
|
||||
- Not required for core functionality - users can use the built-in chat interface directly
|
||||
- Reduces onboarding friction for new users
|
||||
- Progressive disclosure - advanced features available when needed
|
||||
|
||||
## Changes
|
||||
|
||||
### 1. Setup Wizard (`src/pages/Setup/index.tsx`)
|
||||
|
||||
**Steps reduced from 6 to 5:**
|
||||
|
||||
| Before | After |
|
||||
|--------|-------|
|
||||
| 0: Welcome | 0: Welcome |
|
||||
| 1: Runtime | 1: Runtime |
|
||||
| 2: Provider | 2: Provider |
|
||||
| 3: Channel | (removed) |
|
||||
| 4: Skills | 3: Skills |
|
||||
| 5: Complete | 4: Complete |
|
||||
|
||||
**Code changes:**
|
||||
- Removed `channel` step from `steps` array
|
||||
- Updated `currentStep` indices for content rendering
|
||||
- Updated `useEffect` for `canProceed` validation
|
||||
- Removed `selectedChannel` state variable
|
||||
- Removed `ChannelContent` component and `Channel` interface
|
||||
- Updated `CompleteContent` to remove channel row
|
||||
- Added note about configuring channels in Settings
|
||||
|
||||
### 2. Architecture Document (`ClawX-项目架构与版本大纲.md`)
|
||||
|
||||
- Updated section 2.4.2 setup wizard steps (removed ChannelStep)
|
||||
- Updated directory structure (added ChannelsSettings.tsx to Settings, removed ChannelStep.tsx)
|
||||
- Updated v0.5.0 milestone to note channel connection is deferred
|
||||
|
||||
## User Experience
|
||||
|
||||
**Before:**
|
||||
```
|
||||
Welcome → Runtime → Provider → Channel → Skills → Complete
|
||||
↑
|
||||
(complex, often skipped)
|
||||
```
|
||||
|
||||
**After:**
|
||||
```
|
||||
Welcome → Runtime → Provider → Skills → Complete
|
||||
↓
|
||||
"Configure channels in Settings"
|
||||
```
|
||||
|
||||
## Files Changed
|
||||
- `src/pages/Setup/index.tsx` - Removed channel step (-140 lines)
|
||||
- `ClawX-项目架构与版本大纲.md` - Updated documentation
|
||||
|
||||
## Future Work
|
||||
- Implement Settings > Channels page with:
|
||||
- WhatsApp QR code scanning
|
||||
- Telegram bot token configuration
|
||||
- Discord/Slack OAuth flows
|
||||
- Connection status indicators
|
||||
@@ -18,6 +18,7 @@
|
||||
* [commit_10] Cron tasks - Create/edit dialog, schedule presets, improved UI
|
||||
* [commit_11] OpenClaw submodule fix - GitHub URL, auto-generated token, WebSocket auth
|
||||
* [commit_12] Real API key validation - OpenRouter support, actual API calls to verify keys
|
||||
* [commit_13] Remove channel setup step - Simplified onboarding, channels moved to Settings
|
||||
|
||||
### Plan:
|
||||
1. ~~Initialize project structure~~ ✅
|
||||
@@ -46,6 +47,7 @@ All core features have been implemented:
|
||||
- Cron tasks management for scheduled automation
|
||||
- OpenClaw submodule from official GitHub (v2026.2.3) with auto-token auth
|
||||
- Real API key validation via actual API calls (Anthropic, OpenAI, Google, OpenRouter)
|
||||
- Simplified setup wizard (channel connection deferred to Settings page)
|
||||
|
||||
## Version Milestones
|
||||
|
||||
|
||||
Reference in New Issue
Block a user