Skip to content

Commit

Permalink
Pricing page update
Browse files Browse the repository at this point in the history
  • Loading branch information
hcourdent committed Oct 15, 2024
1 parent 9c07f87 commit c62ff1d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 34 deletions.
2 changes: 1 addition & 1 deletion docs/core_concepts/28_agent_workers/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Agent workers

Agent workers are a [Cloud plans and Self-Hosted Enterprise](/pricing) Feature.
Agent workers are a [Self-Hosted Enterprise](/pricing) Feature.

Agent workers are a 4th mode of execution of the Windmill binary, but instead of using `MODE=worker`, we use here `MODE=agent`.
It is most useful when workers are deployed remotely and they are in an unsecure environments and/or have a high latency to the Postgresql database.
Expand Down
68 changes: 39 additions & 29 deletions src/components/Pricing.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,18 @@ const sections = [
link: '/docs/advanced/self_host',
tooltip: 'Self-hosted only'
},
{
name: 'Agent workers',
tiers: {
'tier-free-selfhost': false,
'tier-enterprise-selfhost': true,
'tier-enterprise-cloud': false,
'tier-free': false,
'tier-team': false
},
link: '/docs/core_concepts/agent_workers',
tooltip: 'Self-hosted only'
},
{
name: 'Isolated & dedicated workers and database',
tiers: {
Expand Down Expand Up @@ -629,17 +641,6 @@ const sections = [
},
link: '/docs/core_concepts/staging_prod'
},
{
name: 'Agent workers',
tiers: {
'tier-free-selfhost': false,
'tier-enterprise-selfhost': true,
'tier-enterprise-cloud': true,
'tier-free': true,
'tier-team': true
},
link: '/docs/core_concepts/agent_workers'
},
{
name: 'OpenID Connect (OIDC)',
tiers: {
Expand All @@ -650,7 +651,7 @@ const sections = [
'tier-team': true
},
link: '/docs/core_concepts/oidc'
},
},
{
name: 'Codebases & bundles',
tiers: {
Expand Down Expand Up @@ -1110,23 +1111,32 @@ export default function Pricing() {
</div>

<a
href={tier.href}
target="_blank"
aria-describedby={tier.id}
className={classNames(
tier.id === 'tier-team'
? 'bg-blue-600 !text-white shadow-sm hover:bg-blue-700'
: tier.id === 'tier-enterprise-selfhost' && selectedOption === 'SMB'
? 'bg-blue-600 !text-white shadow-sm hover:bg-blue-700'
: tier.enterprise_edition
? 'bg-teal-600 !text-white shadow-sm hover:bg-teal-700'
: 'text-gray-900 hover:text-blue-600 dark:hover:text-blue-400 ring-1 ring-inset ring-gray-200 dark:ring-gray-600 hover:ring-gray-300 dark:hover:ring-gray-500 dark:text-white',
'!no-underline mt-6 block rounded-md py-2 px-3 text-center text-sm font-semibold leading-6 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600'
)}
>
{tier.customMessage ? tier.customMessage : 'Get in touch'}
</a>
<ul
href={
tier.id === 'tier-enterprise-selfhost' && selectedOption === 'SMB'
? 'https://billing.windmill.dev/b/eVa15ifGC1Fp8fu14f'
: tier.href
}
target="_blank"
aria-describedby={tier.id}
className={classNames(
tier.id === 'tier-team'
? 'bg-blue-600 !text-white shadow-sm hover:bg-blue-700'
: tier.id === 'tier-enterprise-selfhost' && selectedOption === 'SMB'
? 'bg-blue-600 !text-white shadow-sm hover:bg-blue-700'
: tier.enterprise_edition
? 'bg-teal-600 !text-white shadow-sm hover:bg-teal-700'
: 'text-gray-900 hover:text-blue-600 dark:hover:text-blue-400 ring-1 ring-inset ring-gray-200 dark:ring-gray-600 hover:ring-gray-300 dark:hover:ring-gray-500 dark:text-white',
'!no-underline mt-6 block rounded-md py-2 px-3 text-center text-sm font-semibold leading-6 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600'
)}
>
{tier.id === 'tier-enterprise-selfhost' && selectedOption === 'SMB'
? 'Try it for a month'
: tier.customMessage
? tier.customMessage
: 'Get in touch'}
</a>

<ul
role="list"
className="mt-8 space-y-3 text-sm leading-6 text-gray-600 xl:mt-10"
style={{ marginBottom: '4rem' }}
Expand Down
5 changes: 1 addition & 4 deletions src/theme/BlogPostItem/Header/Info/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ function Date({ date, formattedDate }) {
</time>
);
}
function Spacer() {
return <>{' · '}</>;
}

export default function BlogPostItemHeaderInfo({ className }) {
const { metadata } = useBlogPost();
const { date, formattedDate, readingTime } = metadata;
Expand All @@ -46,7 +44,6 @@ export default function BlogPostItemHeaderInfo({ className }) {
<Date date={date} formattedDate={formattedDate} />
{typeof readingTime !== 'undefined' && (
<>
<Spacer />
<ReadingTime readingTime={readingTime} />
</>
)}
Expand Down

0 comments on commit c62ff1d

Please sign in to comment.