Skip to content

Commit

Permalink
search: add upsell for Sourcegraph workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Jan 31, 2025
1 parent 836db18 commit 925e2c0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/SearchCommand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,22 @@ export default function SearchCommand({ src, props }: { src: Sourcegraph; props?
icon={{ source: Icon.Book }}
actions={<ActionPanel>{openSearchSyntaxAction}</ActionPanel>}
/>
{isSourcegraphDotCom(src.instance) && (
<List.Item
title="Create a Sourcegraph workspace"
subtitle="Get an AI & search experience for your private code"
icon={{ source: Icon.Gift, tintColor: "F34E3F" }}
actions={
<ActionPanel>
<Action.OpenInBrowser
icon={Icon.Window}
title="Learn more"
url="https://workspaces.sourcegraph.com/plan"
/>
</ActionPanel>
}
/>
)}
</Fragment>
</List.Section>
)}
Expand Down

0 comments on commit 925e2c0

Please sign in to comment.