Skip to content

feat(onboarding): show a welcome tour on first run, replayable from Help - #1733

Open
penso wants to merge 4 commits into
mainfrom
feat/onboarding-tour
Open

penso wants to merge 4 commits into
mainfrom
feat/onboarding-tour

Conversation

@penso

@penso penso commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

A first-run welcome tour, from the onboarding mockup round (picks: A, Welcome deck as the tour; B, Spotlight for pointing at the window).

  • Deck: eight chapters (Welcome, Workspaces, Chats, Worktrees, Pull requests, Machines, Your phone, Make it yours), with a chapter list, Back/Next, Skip tour, and progress dots. Arrow keys, Enter, and Escape work. In a narrow window the list is dropped and the deck shrinks to fit.
  • Show me: four chapters light the real part of the window over a dimmed window: Workspaces → sidebar, Chats → tab row, Pull requests → activity bar, Machines → status bar. The light comes from where each part was last laid out (probes in window/body.rs), so it follows right-to-left layouts, a hidden status bar, or no activity bar. Continue tour goes to the next chapter and Escape returns to the deck. A part that is hidden offers no Show me.
  • First run: offered once, only to an install with no saved window, and only once the window is active, so existing users are not interrupted. Opening the tour any way spends the offer. It is saved as tour.json beside the other one-time offers, never on a daemon. The browser-skill and app-rename offers now wait while the tour shows; before, the skill offer could claim the first run's window first.
  • Replay: a new Help › Take the Tour menu, the take_tour palette command, and sheprd ui tour [CHAPTER]. Chapter names are defined once, in sheprd-control-protocol (TourChapter). Added to docs/cli.md, the agent skill, and the website Quick start.

The tour is an overlay of its own rather than a menu page: it covers the whole window, holds the keyboard while open (app shortcuts with Cmd/Ctrl still pass), fades through crate::motion, and waits behind any menu that opens over it. It reads the window only: it starts nothing and asks the daemon nothing.

Not in this PR: one-time feature tips (a spotlight the first time someone reaches a pull request tab, a chat, Add Device), and translations of tour.ftl. Japanese and Chinese fall back to English.

Screenshots

None yet. Screen capture is refused to agent processes on the machine this was built on, so no native capture was taken. The deck and spotlight were checked live in a release bundle (below) and with headless layout tests. Before and after screenshots are still owed.

QA

  • cargo test -p sheprd-gpui --lib -- tour:: ui_tour menus:: skill_offer app_rename: 69 passed (after merging main)
  • cargo test -p sheprd-control-protocol -p sheprd-commands: all passed
  • cargo clippy -p sheprd-control-protocol -p sheprd-commands -p sheprd-gpui --lib --tests: clean (before the merge of main)
  • just check-file-size, just check-sorted, just check-i18n, cargo fmt --all --check, git diff --check: pass
  • Full cargo test -p sheprd-gpui --lib before the merge: one failure from this change (menu names), since fixed. fleet::tests::scrub::{the_scrub_runs_the_installed_agent_never_another_on_path, a_daemon_program_without_fleet_scrub_is_left_alone} also fail locally when run alone; they run a shell script on this machine and touch nothing here. Left to CI.
  • Release bundle (just bundle) run in a sandbox HOME as a new install: sheprd ui tour opened the deck in the window. The first-run offer stayed pending while the window was not the key window, as intended.
  • CI: pending
  • New install: launch with an empty state directory and click into the window. The tour opens once; quit and relaunch, and it does not open again.
  • Existing install: launch with a saved window-state.json. No tour; Help › Take the Tour opens it.
  • Click through every chapter; on Workspaces, Chats, Pull requests, and Machines, press Show me. Check that the lit area matches the part named and the bubble sits beside it, not over it, in a wide and a narrow window.
  • Hide the sidebar and status bar, then check that their chapters offer no Show me.
  • Light and dark themes; a right-to-left language (en-XB pseudo-locale in QA).
  • sheprd ui tour chats opens the deck at Chats; with a dialog that cannot close, it exits 6.

🤖 Generated with Claude Code

New installs open a welcome deck of eight chapters (workspaces, chats,
worktrees, pull requests, machines, the phone app, customizing) once the
window is active. Show me on four chapters dims the window except the
sidebar, tab row, activity bar, or status bar, measured from where they
were last laid out, and Continue returns to the deck at the next chapter.

The offer is made once, only to an install with no saved window, and is
spent however the tour opens; it is saved beside the other one-time
offers, never on a daemon. The browser-skill and app-rename offers now
wait while the tour shows. It replays from Help > Take the Tour, the
palette's take_tour command, and `sheprd ui tour [CHAPTER]`, whose
chapter names live once in sheprd-control-protocol.

The tour is an overlay of its own rather than a menu page: it covers the
whole window, holds the keyboard while open, and fades in and out through
crate::motion.
# Conflicts:
#	crates/sheprd-gpui/src/window/render.rs
#	docs/cli.md
@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; no new actionable issues remain.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues remain.

Summary

Adds a first-run welcome tour with eight chapters, spotlights, and replay through Help, the command palette, and the CLI.

  • The welcome tour guides people through eight chapters and spotlights parts of the window.
  • People can reopen the tour from Help, the command palette, or the CLI.

Reviews (4) · Last reviewed commit: "fix(onboarding): open each tour chapter ..." · Reviewed by Greptile

Comment thread crates/sheprd-gpui/src/tour/render.rs Resolved
Comment thread crates/sheprd-gpui/src/tour/render.rs Resolved
Comment thread crates/sheprd-gpui/src/tour/render.rs Resolved
… text size

On Windows native browser pages draw above the window, so they now hide
while the tour is drawn, its fade out included, as under a dimmed menu;
on macOS pages refuse drops meanwhile.

The Chats spotlight lights the tab strips where they were last drawn,
measured each frame and joined across groups, so it follows tabs placed
below the groups and offers no Show me while the strips step aside, as
in zen mode or with a single tab and hide_tab_bar_when_single_tab.

The deck grows with the interface text from its 12 pt default; the
chapter's words and the chapter list scroll, and the footer wraps its
buttons rather than clip them.
@penso penso added the windows Improves Herdr UI on Windows label Nov 29, 2026
@penso

penso commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

@greptileai review

Comment thread crates/sheprd-gpui/src/tour/render.rs Resolved
The chapter's words share one scroll handle, which now returns to the top whenever another chapter shows, so a chapter read partway down with large text does not leave the next one scrolled past its title.
@penso

penso commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

@greptileai review

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

windows Improves Herdr UI on Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant