Skip to content

feat(onboarding): add interactive first-run tutorial - #275

Merged
fcoury merged 1 commit into
mainfrom
fcoury/first-run-tutorial
Aug 18, 2026
Merged

fcoury merged 1 commit into
mainfrom
fcoury/first-run-tutorial

Conversation

@fcoury-oai

Copy link
Copy Markdown
Collaborator

Why

First-time users should understand Red's editing, navigation, Git, and reviewable-agent workflows before being asked to configure the editor or trust changes to their project. The existing release announcement and Learn Red hub also need to coexist with that first-run experience.

What changed

  • Replace the blocking first-run configuration prompt with a responsive, keyboard-first welcome offering a guided tour, quick tour, release highlights, or immediate editing.
  • Add a seven-lesson guided curriculum covering modal editing, command discovery, file/project navigation, completion, Git, agent proposals, and themes, plus a focused three-lesson quick tour.
  • Keep practice inside an unnamed, unsavable buffer; simulate Git and agent actions locally, require explicit proposal acceptance or rejection, and restore the original editor layout when the tour ends.
  • Persist first-run decisions and resumable tutorial progress, expose :welcome, :tutorial, and command-palette entries, and retain the existing :learn / :tutorial essentials workflow.
  • Connect release previews to the existing What’s New panel from feat(editor): show release notes after version upgrades #201, preserve authenticated detached-session startup, and keep starter configuration explicitly optional and non-destructive.

How to Test

  1. Run XDG_CONFIG_HOME="$(mktemp -d)" cargo run -- and confirm the first interactive frame presents the welcome screen without creating a config file or forcing a release modal.
  2. Start the guided tour and complete editing, command discovery, navigation, completion, Git, agent-review, and theme lessons; verify Git and agent previews are clearly simulated and do not change the repository.
  3. From the welcome screen, press v for release highlights and then o; confirm the existing full What’s New panel opens and the welcome decision is persisted.
  4. Run :tutorial quick, then attempt to save the practice buffer; verify saving is rejected, :tutorial quit restores the original buffer/layout, and :tutorial resume restores unfinished progress.
  5. Run :learn followed by :tutorial essentials; verify the existing Learn Red lesson still starts and its contextual :tutorial restart, :tutorial next, and :tutorial quit controls remain intact.
  6. Automated validation: cargo test -p red --lib -- --test-threads=1 (1,955 passed; one intentionally ignored) and cargo clippy --all-targets --all-features -- -D warnings.

@fcoury
fcoury merged commit b281951 into main Aug 18, 2026
17 checks passed
@fcoury
fcoury deleted the fcoury/first-run-tutorial branch August 18, 2026 02:26
@fcoury
fcoury restored the fcoury/first-run-tutorial branch August 31, 2026 04:37
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.

2 participants