Skip to content

itdove/devaiflow#329: Simplify daf init wizard for better user onboarding experience#332

Merged
itdove merged 2 commits intomainfrom
329
Mar 27, 2026
Merged

itdove/devaiflow#329: Simplify daf init wizard for better user onboarding experience#332
itdove merged 2 commits intomainfrom
329

Conversation

@itdove
Copy link
Copy Markdown
Owner

@itdove itdove commented Mar 27, 2026

Description

This PR refactors the daf init wizard to use a preset-based configuration approach, simplifying the user onboarding experience. Instead of walking users through numerous individual configuration prompts, the wizard now offers predefined presets that encapsulate common workflow configurations. This reduces cognitive load during initial setup and helps new users get started more quickly with sensible defaults.

Changes include:

  • Updated devflow/config/init_wizard.py to implement preset-based configuration logic
  • Modified devflow/cli/main.py to integrate the new wizard flow
  • Updated documentation in docs/getting-started/installation.md to reflect the new initialization process
  • Added test coverage in tests/test_init_command.py for the preset-based workflow
  • Updated AGENTS.md with relevant project guidance

Assisted-by: Claude

Testing

Steps to test

  1. Pull down the PR
  2. Ensure you have a clean environment or backup your existing daf configuration
  3. Run daf init and observe the preset-based configuration wizard
  4. Select one of the available presets and verify the configuration is applied correctly
  5. Run daf config to confirm the configuration matches the selected preset
  6. Test basic daf workflows (e.g., daf open, daf status) to ensure the new configuration works as expected
  7. Run the test suite: pytest tests/test_init_command.py -v

Scenarios tested

  • Initialization with default preset configuration
  • Configuration file generation with preset-based values
  • CLI integration with the refactored wizard flow
  • Documentation accuracy for the new initialization process

Deployment considerations

  • This code change is ready for deployment on its own

- Replace 20+ prompt wizard with 5 preset options (GitHub, GitLab, JIRA, Local, Full)
- Add auto-detection of issue tracker from git remotes and environment
- Reduce preset workflows to 1-5 questions with auto-suggested defaults
- Update all 23 init tests to validate preset-based approach

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
The preset-based init wizard changed the initialization flow from
Confirm.ask to Prompt.ask for preset selection. Updated all sync
command tests to properly mock the new flow:

- test_smart_sync.py: 5 tests updated with preset selection mocks
- test_sync_command.py: 18 tests updated with preset selection mocks

All tests now select the Local preset (option 4) before running
sync operations, matching the new wizard flow.

Fixes regression introduced by #329 preset-based init wizard.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@itdove itdove marked this pull request as ready for review March 27, 2026 17:04
@itdove itdove merged commit ffcb101 into main Mar 27, 2026
7 checks passed
@itdove itdove deleted the 329 branch March 27, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant