feat(web): subscribe button should link to sign up if not logged in with next to pricing tab

pull/720/head
Travis Fischer 2025-07-04 21:37:02 -05:00
rodzic c3d39f1d62
commit 8167006e20
4 zmienionych plików z 15 dodań i 5 usunięć

Wyświetl plik

@ -484,6 +484,10 @@ function ProjectHeader({
project: Project
tab?: MarketplacePublicProjectDetailTab
}) {
const ctx = useAgentic()
const pricingTabHref = `/marketplace/projects/${project.identifier}?tab=pricing`
return (
<>
{/* <MarketplacePublicProjectDetailNav
@ -513,7 +517,11 @@ function ProjectHeader({
asChild={tab !== 'pricing'}
>
<Link
href={`/marketplace/projects/${project.identifier}?tab=pricing`}
href={
ctx?.isAuthenticated
? pricingTabHref
: `/signup?${sanitizeSearchParams({ next: pricingTabHref })}`
}
>
Subscribe to {project.identifier}
</Link>

Wyświetl plik

@ -18,7 +18,7 @@ import { useLocalStorage } from 'react-use'
import * as config from '@/lib/config'
type AgenticContextType = {
export type AgenticContextType = {
api: AgenticApiClient
isAuthenticated: boolean
logout: () => void

Wyświetl plik

@ -11,6 +11,9 @@ import { calendarBookingUrl, githubUrl } from '@/lib/config'
import { useAgentic } from './agentic-provider'
import { GitHubStarCounter } from './github-star-counter'
const docsPublishingQuickStartUrl =
'https://docs.agentic.so/publishing/quickstart'
export function SupplySideCTA({
variant = 'github',
heroVariant = 'orange'
@ -26,9 +29,9 @@ export function SupplySideCTA({
<Link
href={
ctx?.isAuthenticated
? 'https://docs.agentic.so/publishing/quickstart'
? docsPublishingQuickStartUrl
: `/signup?${sanitizeSearchParams({
next: 'https://docs.agentic.so/publishing/quickstart'
next: docsPublishingQuickStartUrl
})}`
}
>

Wyświetl plik

@ -21,7 +21,6 @@
- tool input/output schemas; move `$schema` to the top
- break out into a few subcomponents; some can be server components
- mcp inspector
- subscribe button should link to sign up if not logged in with next to pricing tab
- improve private project page
- link to public page if published
- list deployment versions