Add feature tour Help menu hint (#2150)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Brennan Benson 2026-05-17 10:58:50 -07:00 committed by GitHub
parent f9191c6f2b
commit a9fbcbc0f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 3 deletions

View File

@ -127,9 +127,15 @@ export function FeatureTourNudge(): JSX.Element | null {
)}
</button>
<p className="line-clamp-2 text-xs leading-snug text-muted-foreground">
<p
className="line-clamp-2 text-xs leading-snug text-muted-foreground"
data-feature-tour-nudge-caption
>
{FEATURE_TOUR_NUDGE_TILE.caption}
</p>
<p className="text-xs leading-snug text-muted-foreground">
Reopen this any time from Help &gt; Feature tour.
</p>
<Button variant="default" size="sm" className="w-full gap-1.5" onClick={handleOpenTour}>
<PlayCircle className="size-3.5" />

View File

@ -252,7 +252,8 @@ export default function FeatureWallModal(): JSX.Element | null {
<DialogHeader className="gap-1">
<DialogTitle>Explore some of Orca&apos;s features</DialogTitle>
<DialogDescription>
Tasks, terminal, agents, browser, SSH, review, and more.
<span className="block">Tasks, terminal, agents, browser, SSH, review, and more.</span>
<span className="block">Reopen this any time from Help &gt; Feature tour.</span>
</DialogDescription>
</DialogHeader>

View File

@ -51,6 +51,7 @@ test.describe('Feature tour modal', () => {
await expect(
orcaPage.getByText('Tasks, terminal, agents, browser, SSH, review, and more.')
).toBeVisible()
await expect(orcaPage.getByText('Reopen this any time from Help > Feature tour.')).toBeVisible()
await expect(orcaPage.getByRole('listitem')).toHaveCount(12)
await expect(
orcaPage.getByRole('listitem', { name: /Remote worktrees over SSH/i })
@ -144,9 +145,13 @@ test.describe('Feature tour modal', () => {
'Browse GitHub and Linear tasks in-app. Start worktrees, review PRs, and approve without switching context.'
)
).toBeVisible()
await expect(nudge.getByText('Reopen this any time from Help > Feature tour.')).toBeVisible()
await expect
.poll(
() => nudge.locator('p').evaluate((node) => node.scrollHeight <= node.clientHeight + 1),
() =>
nudge
.locator('[data-feature-tour-nudge-caption]')
.evaluate((node) => node.scrollHeight <= node.clientHeight + 1),
{
message: 'feature tour nudge caption should not be clipped'
}