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

Wyświetl plik

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

Wyświetl plik

@ -11,6 +11,9 @@ import { calendarBookingUrl, githubUrl } from '@/lib/config'
import { useAgentic } from './agentic-provider' import { useAgentic } from './agentic-provider'
import { GitHubStarCounter } from './github-star-counter' import { GitHubStarCounter } from './github-star-counter'
const docsPublishingQuickStartUrl =
'https://docs.agentic.so/publishing/quickstart'
export function SupplySideCTA({ export function SupplySideCTA({
variant = 'github', variant = 'github',
heroVariant = 'orange' heroVariant = 'orange'
@ -26,9 +29,9 @@ export function SupplySideCTA({
<Link <Link
href={ href={
ctx?.isAuthenticated ctx?.isAuthenticated
? 'https://docs.agentic.so/publishing/quickstart' ? docsPublishingQuickStartUrl
: `/signup?${sanitizeSearchParams({ : `/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 - tool input/output schemas; move `$schema` to the top
- break out into a few subcomponents; some can be server components - break out into a few subcomponents; some can be server components
- mcp inspector - mcp inspector
- subscribe button should link to sign up if not logged in with next to pricing tab
- improve private project page - improve private project page
- link to public page if published - link to public page if published
- list deployment versions - list deployment versions