Repository navigation
Add contextual feature tours - #2734
Merged
Merged
Conversation
This reverts commit 77ae11f.
This reverts commit b024b88.
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Switches the contextual tour highlight from a pulsing focus ring to a dim scrim with an SVG-mask cutout at the target. The cutout pulls its radius from the target element's border-radius, so curved buttons get a curved hole. Hosted (Sheet/Dialog) tours portal the scrim into the host so only the panel contents dim, not the rest of the app. Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
…al-feature-tours # Conflicts: # docs/reference/feature-discovery-interaction-tracking.md # src/main/persistence.test.ts # src/main/persistence.ts # src/main/runtime/rpc/dispatcher-feature-interactions.test.ts # src/main/runtime/rpc/dispatcher.ts # src/main/runtime/rpc/methods/client-ui.test.ts # src/main/runtime/rpc/methods/client-ui.ts # src/renderer/src/App.tsx # src/renderer/src/components/automations/AutomationsPage.tsx # src/renderer/src/components/browser-pane/BrowserPane.tsx # src/renderer/src/components/onboarding/use-onboarding-flow-persistence.ts # src/renderer/src/components/right-sidebar/useCreatePullRequestDialogFields.ts # src/renderer/src/components/settings/NotificationsPane.tsx # src/renderer/src/components/sidebar/AddRepoSetupStep.tsx # src/renderer/src/store/slices/browser.ts # src/renderer/src/store/slices/diffComments.ts # src/renderer/src/store/slices/tabs.ts # src/renderer/src/store/slices/terminals.ts # src/renderer/src/store/slices/ui.test.ts # src/renderer/src/store/slices/ui.ts # src/renderer/src/store/slices/workspace-space.ts # src/renderer/src/web/web-preload-api.test.ts # src/shared/constants.ts # src/shared/feature-interactions.test.ts # src/shared/feature-interactions.ts # src/shared/types.ts
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
…al-feature-tours # Conflicts: # src/renderer/src/components/sidebar/SidebarHeader.tsx
Co-authored-by: Orca <[email protected]>
7 tasks done
nwparker
added a commit
that referenced
this pull request
Jun 2, 2026
* Revert "Make add project create action a button (#4439)" This reverts commit 709adbc. * Revert "Make adding projects discoverable in sidebar (#4426)" This reverts commit 58d36e4. Conflict resolution notes: - Deleted SidebarHeader.test.tsx (introduced by #4426; subsequent edits from #2734 are dropped along with the test file). - Restored SidebarHeader.tsx to its pre-#4426 state. The contextual-tour anchor data-contextual-tour-target="workspace-create-control" added by #2734 no longer has a host element; the workspace-creation tour will need to be re-anchored separately. --------- Co-authored-by: orca-bot <[email protected]>
62 tasks
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
Co-authored-by: Orca <[email protected]>
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
* Revert "Make add project create action a button (stablyai#4439)" This reverts commit 540cfe2. * Revert "Make adding projects discoverable in sidebar (stablyai#4426)" This reverts commit 649c8c4. Conflict resolution notes: - Deleted SidebarHeader.test.tsx (introduced by stablyai#4426; subsequent edits from stablyai#2734 are dropped along with the test file). - Restored SidebarHeader.tsx to its pre-stablyai#4426 state. The contextual-tour anchor data-contextual-tour-target="workspace-create-control" added by stablyai#2734 no longer has a host element; the workspace-creation tour will need to be re-anchored separately. --------- Co-authored-by: orca-bot <[email protected]>
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds contextual, skippable in-app tours for feature surfaces users commonly miss:
Also adds a feature-education state and telemetry model so Orca can distinguish:
featureTipsSeenIdscontextualToursSeenIdscontextualToursAutoEligiblefeatureInteractionsAutomatic contextual tours are now limited to new users for this rollout. On first hydrated launch, Orca sets
contextualToursAutoEligibleonce from onboarding state: users still in first-run onboarding become eligible, and users whose onboarding is already closed become ineligible. Existing users still record local feature-interaction state, but they are not auto-toured by this PR.What We'll Learn
The analytics plan does not assume a specific numeric retention lift. It is designed to prove or disprove whether contextual education helps activation and D1/D7 retention for new-user cohorts.
The Feature Education Retention dashboard will answer:
workspace_created,repo_added, andagent_started.Feature adoption analysis should join tour cohorts to existing downstream events. If a high-value action is not represented today, add a targeted action event later rather than uploading broad local-state mirrors.
Covered Features
Contextual tours cover:
Local feature-interaction state also tracks
voice-dictationso the existing voice dictation tip can be suppressed after the user actually starts dictation.Feature-interaction records are a flat map, not a nested taxonomy. Browser-adjacent features intentionally remain separate sibling IDs so one learning moment does not suppress another:
browser,browser-grab,browser-annotations,cookie-import,agent-browser-setup, andagent-browser-use. Each recorded ID stores{ firstInteractedAt, interactionCount }.Reference Docs
docs/reference/feature-education-state.mddocuments the local state contract: tip seen, tour seen, tour auto-eligibility, and actual feature interaction state.docs/reference/feature-education-retention-analytics.mddocuments the telemetry decision, PostHog dashboard plan, cohort/funnel construction, cost rules, privacy rules, and existing-user policy.Implementation Notes
src/shared/contextual-tours.ts.src/renderer/src/components/contextual-tours/.contextualToursAutoEligibleto persisted UI state and gate automatic tour requests on it.src/shared/feature-interactions.tsas the typed registry of local product interactions that count as feature use for education suppression.featureInteractionsinPersistedUIStateand exposedrecordFeatureInteraction(id)from the UI store/main store/runtime UI RPC. Interactions preserve the first local timestamp and increment a local interaction count after persisted UI hydration.completedByFeatureInteractionshave already been recorded. Voice dictation now records local interaction only once a dictation session reacheslistening.contextual_tour_shownandcontextual_tour_outcome.recordFeatureInteraction(id)path so agent/browser/computer/orchestration interactions can be captured from successful RPC methods.contextualToursAutoEligible: falsethere so existing e2e setup remains stable.Telemetry Product Gate
Question: Do contextual tours improve activation/retention by increasing later use of the surfaces they introduce?
Decision owner/use: Product/retention can compare tour-shown, completed, skipped, and cancelled cohorts against D1/D7 retention and downstream workflow conversion.
Dashboard: Feature Education Retention.
Action: Keep/expand tours that improve downstream activation; revise or suppress tours with high skip rates or negative retention.
Telemetry volume estimate:
Existing Users
Existing users do not receive automatic contextual tours from this rollout. We cannot reliably know whether they have already viewed or used every covered surface, so the least surprising default is to leave them alone and measure this PR on new-user cohorts.
Implementation:
contextualToursAutoEligible: falsefor profiles whose onboarding is already closed when the rollout first runs.contextualToursAutoEligible: truefor profiles still in first-run onboarding when the rollout first runs.contextualToursAutoEligible === true.featureInteractionsstill records supported surface entry for all users after UI hydration.Validation
Latest existing-user gate update:
pnpm vitest run src/renderer/src/store/slices/ui.test.ts src/renderer/src/components/contextual-tours/contextual-tour-gate.test.ts src/main/runtime/rpc/methods/client-ui.test.tspassed: 3 files, 75 tests.pnpm run typecheckpassed.pnpm run lintpassed.git diff --checkpassed.Current telemetry update:
pnpm exec vitest run --config config/vitest.config.ts src/shared/feature-education-telemetry.test.ts src/shared/telemetry-events.test.ts src/renderer/src/store/slices/ui.test.ts src/renderer/src/components/contextual-tours/contextual-tour-gate.test.ts src/renderer/src/components/contextual-tours/ContextualTourOverlay.test.tsxpassed: 5 files, 104 tests.pnpm run typecheckpassed.pnpm run lintpassed.git diff --checkpassed.Earlier interaction-state validation:
pnpm exec vitest run --config config/vitest.config.ts src/shared/feature-interactions.test.ts src/shared/feature-tips.test.ts src/renderer/src/components/feature-tips/feature-tip-startup-gate.test.ts src/renderer/src/components/feature-tips/feature-tip-modal-state.test.ts src/renderer/src/store/slices/ui.test.ts src/renderer/src/components/contextual-tours/contextual-tour-gate.test.ts src/renderer/src/components/contextual-tours/ContextualTourOverlay.test.tsx src/main/runtime/rpc/methods/client-ui.test.tspassed: 8 files, 95 tests.pnpm run typecheckpassed.pnpm run lintpassed.git diff --checkpassed.Earlier tour validation on this PR:
pnpm exec vitest run --config config/vitest.config.ts src/shared/contextual-tours.test.ts src/renderer/src/components/contextual-tours/contextual-tour-gate.test.ts src/renderer/src/components/contextual-tours/ContextualTourOverlay.test.tsx src/renderer/src/store/slices/ui.test.ts src/renderer/src/components/floating-terminal/FloatingTerminalPanel.test.tsxpassed: 5 files, 87 tests.pnpm run typecheck:webpassed.pnpm run typecheckpassed.pnpm run lintpassed.pnpm exec vitest run --config config/vitest.config.tspassed after rebuilding native deps for Node: 931 files passed, 1 skipped; 9758 tests passed, 10 skipped.git diff --checkpassed.Electron verification:
window.api.app.getIdentity()returneddevRepoRoot=/Users/thebr/orca/workspaces/orca/contextual-feature-toursand branchbrennanb2025/contextual-feature-tours.Notes:
better-sqlite3for Electron ABI;node config/scripts/ensure-native-runtime.mjs --runtime=noderestored Node ABI and the full run then passed.tmp/and were not committed.Latest Workspace Composer Tour
Added a workspace-creation contextual tour for the Create Workspace composer, not the Add Project flow. The tour covers choosing the project, naming the workspace, and picking the agent. The naming step includes an in-popover switch for
autoRenameBranchFromWork, so users can turn on first-agent-message naming directly from the tour.Workspace-creation tour steps:
Validation for this correction:
workspace-creationtour on the project field; advancing to step 2 shows the auto-name switch; clicking the switch updatessettings.autoRenameBranchFromWork; validation cleanup removed the temporary project and restored the setting.src/shared/contextual-tours.test.ts,src/shared/feature-education-telemetry.test.ts,src/shared/telemetry-events.test.ts,src/renderer/src/components/contextual-tours/contextual-tour-gate.test.ts,src/renderer/src/components/contextual-tours/ContextualTourOverlay.test.tsx,src/renderer/src/store/slices/ui.test.ts: 6 files, 128 tests.pnpm run typecheck:webpassed.pnpm run typecheck:nodepassed.pnpm run lintpassed.git diff --checkpassed.Latest CI Dependency Fix
After the latest push, GitHub Actions failed before tests because
pnpm install --frozen-lockfiledetected that the@xterm/addon-webglpatched-dependency hash inpnpm-lock.yamldid not match the current patch file. Reproducing locally showed the patch file also had a malformed final hunk. Fixed the hunk metadata/context and refreshed the lockfile hash.Validation for this correction:
git apply --checkagainst the published@xterm/[email protected]tarball passed.pnpm install --frozen-lockfilepassed locally.src/renderer/src/components/contextual-tours/ContextualTourOverlay.test.tsx,src/renderer/src/components/sidebar/use-workspace-kanban-outside-dismiss.test.ts,src/renderer/src/store/slices/ui.test.ts,src/renderer/src/components/contextual-tours/contextual-tour-gate.test.ts: 4 files, 93 tests.pnpm run typecheck:webpassed.pnpm run lintpassed.git diff --checkpassed.Latest Tour Overlay Correction
After live review, fixed a stale-tour case where the workspace-board tour panel could remain visible after the board surface closed. The board now treats contextual-tour overlay/panel clicks as board-owned chrome, and tour owners suppress their active tour on unmount as well as on an explicit enabled=false pass.
Validation for this correction:
src/renderer/src/components/sidebar/use-workspace-kanban-outside-dismiss.test.ts,src/renderer/src/store/slices/ui.test.ts,src/renderer/src/components/contextual-tours/contextual-tour-gate.test.ts,src/renderer/src/components/contextual-tours/ContextualTourOverlay.test.tsx: 4 files, 88 tests.pnpm run typecheck:webpassed.pnpm run lintpassed.git diff --checkpassed.Latest Local Review and Validation
This update extends local feature-discovery interaction tracking for education suppression across additional product surfaces.
Design approach:
tmp/brennan-yolo-lite/contextual-feature-discovery-interactions.md.FeatureInteractionIds for action/setup/use-level discovery signals, kept existing tour surface IDs separate, and continued usingPersistedUIState.featureInteractionsfirst-timestamp plus interaction-count semantics.Design-review outcome:
auto-design-review-fixsubagent returned READY.Implementation and deviations:
automation-runwording to “queued” and added a catalog/union parity guard infeature-interactions.test.ts.Completeness verification:
Code-review loop:
review-codesubagents in parallel.brennan-test-changesresult:/Users/thebr/orca/workspaces/orca/contextual-feature-tours, branchbrennanb2025/contextual-feature-tours.demo-projectfor repo-backed interaction.featureInteractionstimestamps forusage-tracking,resource-manager,floating-workspace,workspace-board-actions,agent-browser-use,agent-orchestration,notifications,mobile-pairing,quick-commands,automation-created, andautomation-run.firstInteractedAtandinteractionCount; reviewed grep/static diff for no new telemetry carrying interaction IDs or user content.Static checks and focused tests:
pnpm run typecheckpassed.pnpm run lintpassed.git diff --checkpassed.src/shared/feature-interactions.test.ts,src/renderer/src/store/slices/ui.test.ts,src/main/runtime/rpc/methods/client-ui.test.ts,src/shared/feature-tips.test.ts,src/renderer/src/components/feature-tips/feature-tip-modal-state.test.ts,src/renderer/src/components/feature-tips/feature-tip-startup-gate.test.ts: 6 files, 88 tests.Post-review validation of setup/use/cookie/split distinctions:
agent-browser-setup,computer-use-setup, andagent-orchestration-setupare separate from actual runtime-use IDs.browser.*RPCs recordagent-browser-use, successfulcomputer.*RPCs other than capability probing recordcomputer-use, and successfulorchestration.*RPCs recordagent-orchestration.cookie-import, while browser profile listing and other profile management do not count as Agent Browser Use.terminal-tabs,terminal-panes, andtab-splitsremain distinct: real workspace tab organization, pane split/resize/merge, and tab-to-pane split/move workflows respectively.browser,browser-grab,browser-annotations,cookie-import,agent-browser-setup,agent-browser-use) rather than nested under one browser object.pnpm vitest run --config config/vitest.config.ts src/shared/feature-interactions.test.ts src/renderer/src/store/slices/ui.test.ts src/main/runtime/rpc/dispatcher-feature-interactions.test.ts src/main/runtime/rpc/methods/client-ui.test.ts src/renderer/src/store/slices/browser.test.ts src/renderer/src/store/slices/tabs.test.ts src/renderer/src/components/tab-group/TabGroupSplitLayout.test.ts src/main/persistence.test.ts src/renderer/src/web/web-preload-api.test.tspassed: 9 files, 336 tests.pnpm run typecheck:nodepassed.pnpm run typecheck:webpassed.pnpm run lintpassed.git diff --checkpassed.Accepted gaps / residual risk:
Automation run not found, after deleting the temporary automation immediately after dispatching its run. The requested interaction record had already persisted and this was treated as validation-induced cleanup noise, not a product regression.Latest Getting Started Setup Guide
This update adds the Getting started with Orca setup guide polish on top of the contextual tours work:
orca computerCLI commands to control the local app.Required follow-up: add the deferred advanced checklist items back after the core setup surface lands:
Validation for this update:
pnpm exec oxlint src/renderer/src/components/feature-wall/ComputerUseAnimatedVisual.tsx src/renderer/src/components/feature-wall/FeatureWallSetupChecklist.tsx src/renderer/src/components/feature-wall/FeatureWallSetupWorkflowActions.tsx src/renderer/src/components/feature-wall/SetupScriptAnimatedVisual.tsx src/renderer/src/components/feature-wall/feature-wall-setup-progress.ts src/renderer/src/components/feature-wall/feature-wall-setup-progress.test.ts src/renderer/src/components/setup-guide/SetupGuideModal.tsx src/renderer/src/components/setup-guide/use-setup-guide-progress.ts src/renderer/src/components/sidebar/SidebarNav.tsx src/renderer/src/components/settings/SettingsSetupGuideCard.tsx src/shared/feature-wall-setup-steps.tspassed.pnpm exec tsgo --noEmit -p config/tsconfig.tc.web.json --pretty falsepassed.pnpm vitest run src/renderer/src/components/feature-wall/feature-wall-setup-progress.test.ts src/renderer/src/store/slices/ui.test.tspassed: 2 files, 77 tests.Risk assessment
Risk: HIGH
Historic risk metadata backfill based on the existing
risk:highlabel.Risk: high
Historic risk metadata backfill based on the existing
risk:highlabel.Latest New-User Parallel Work Activation
This update keeps the new-user parallel-work tour intentionally scoped to the natural first two steps:
That supersedes the earlier five-step wording. The tour intentionally highlights the terminal split gesture rather than requiring two live agents in two terminal panes, because a brand-new user may not have real parallel work ready in the first workspace. Tasks and Automations remain contextual tours that appear when users visit those surfaces.
Implementation and process notes:
Tests:
pnpm run typecheckpassed.pnpm run lintpassed.git diff --checkpassed.71336a91fa7837f612e16fdac6381c9c3e869a10; PR is mergeable.Electron validation:
devRepoRoot=/Users/thebr/orca/workspaces/orca/contextual-feature-tours, branchbrennanb2025/contextual-feature-tours./Users/thebr/orca/workspaces/demo-projectas the app test target with an isolated dev user-data profile.automationstour, “What is an automation?”, with persistedcontextualToursSeenIdsandfeatureInteractionsupdated andwasFeaturePreviouslyInteracted=false.workspace-creationtour, “Pick a project,” with persisted state updated and first-visit telemetry unbiased.taskstour, “Choose the work source,” plus backing seen/interaction state.demo-projectworkspace, sawworkspace-agent-sessionsstep 1, “Split a terminal pane,” withStep 1 of 2; clicked the real “Split terminal” tour action; verified a two-pane terminal split,terminal-pane-splitinteraction, and step 2, “Start another task in parallel,” withStep 2 of 2.window.api.ui.get()matched the renderer store for contextual tour seen IDs and feature interactions.window.api.computerUsePermissions.getStatus()to reject before opening the real Getting started modal; progress stayed4/8,Install CLI & Skillsremained not completed, and no renderer error was logged.Evidence screenshots were captured under untracked
.tour-screenshots/validation/and were not committed.Residual gaps / notes:
web-preload-apitests, and direct persisted UI state was verified in Electron.