Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: consolidate segment copy #1206

Merged
merged 3 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 27 additions & 21 deletions src/components/Packaging/tiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ const SEGMENTS: Segment[] = [
tiers: ['Bronze', 'Silver', 'Gold'],
color: '#B7FDD7',
expanded: true,
text: "Ockam's Company Editions are built for production workloads, with direct support from the Ockam team, and can elastically scale to your needs. This product is purchased through your cloud marketplace vendor, so you can start building today with your 14 day free trial.",
text: "Ockam's Company editions are built for production workloads, with direct support from the Ockam team, and can elastically scale to your needs. This product is purchased through your cloud marketplace vendor, so you can start building today with your 14 day free trial.",
},
{
name: 'Enterprises',
tiers: ['Platinum', 'Business Critical'],
color: '#B5EEFF',
expanded: false,
text: 'Ockam is offered in a bring-your-own-cloud (BYOC) Enterprise Edition for companies that are committed to running software entirely within their own network boundaries. These plans are highly customizable. Please contact Ockam’s sales team for a technical consultation.',
text: "Ockam's Enterprise editions are designed for companies that have customised deployment needs, whether that is white labeling to embed Ockam within your own product or specific deployment topology requirements. Our Enterprise editions are available as a dedicated fully-managed solution deployed within Ockam's cloud, in a bring-your-own-cloud (BYOC) deployment, or entirely self-managed and self-hosted within your own network boundary. Please contact Ockam’s sales team for a technical consultation.",
},
];
const TIERS: Tier[] = [
Expand Down Expand Up @@ -259,7 +259,7 @@ const FEATURES: Feature[] = [
group: 'Prices',
},
{
name: 'Yearly commit - 20% discount included ',
name: 'Yearly commitment',
tiers: ['Platinum', 'Enterprise', 'Business Critical'],
onCard: true,
group: 'Prices',
Expand All @@ -272,24 +272,6 @@ const FEATURES: Feature[] = [
},

{ name: 'Shared Cloud', tiers: ['Premium', 'Bronze'], group: 'Runtime', onCard: true },
{
name: 'Dedicated Cloud',
tiers: ['Silver', 'Gold', 'Platinum', 'Enterprise', 'Business Critical'],
group: 'Runtime',
onCard: true,
},
{
name: 'Bring your own Cloud (BYOC)',
tiers: ['Enterprise', 'Business Critical'],
group: 'Runtime',
onCard: true,
},
{
name: 'Self-Managed in your Data Center / Cloud',
tiers: ['Business Critical'],
group: 'Runtime',
onCard: true,
},

{ name: 'Members', tiers: ['*'], hasLimits: true, group: 'Space elements' },
{ name: 'Projects', tiers: ['*'], hasLimits: true, group: 'Space elements' },
Expand Down Expand Up @@ -338,6 +320,25 @@ const FEATURES: Feature[] = [
group: 'Branding',
},

{
name: 'Dedicated Cloud',
tiers: ['Silver', 'Gold', 'Platinum', 'Enterprise', 'Business Critical'],
group: 'Runtime',
onCard: true,
},
{
name: 'Bring your own Cloud (BYOC)',
tiers: ['Enterprise', 'Business Critical'],
group: 'Runtime',
onCard: true,
},
{
name: 'Self-Managed in your Data Center / Cloud',
tiers: ['Business Critical'],
group: 'Runtime',
onCard: true,
},

{ name: 'Data transfer cap', tiers: ['*'], hasLimits: true, group: 'Data cap' },
];

Expand Down Expand Up @@ -449,6 +450,10 @@ const tiersForSegment = (segmentName: string): Tier[] => {
return [];
};

const segmentDetails = (segmentName: string): Segment | undefined => {
return SEGMENTS.find((s) => s.name === segmentName);
};

const hasFeature = (tier: Tier, feature: Feature): boolean => {
if (feature.tiers.indexOf('*') >= 0) return true;
if (feature.tiers.indexOf(tier.name) >= 0) return true;
Expand Down Expand Up @@ -481,4 +486,5 @@ export {
tiersForSegment,
featuresForTier,
hasFeature,
segmentDetails,
};
30 changes: 4 additions & 26 deletions src/pages/pricing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import DescriptionText from '@views/pricing/components/DescriptionText';
import circlesBackground from '@views/pricing/assets/circles-pricing-background.png';
import gradientBackground from '@views/pricing/assets/gradient-pricing-background.png';
import PricingTable from '@views/pricing/components/PricingTable';
import { segmentDetails } from '@root/components/Packaging/tiers';

const ogFeatures = ['🎉 Start free today', '🌱 Grow to any size', '🛟 Premium support & SLAs'].join(
'||',
Expand Down Expand Up @@ -103,15 +104,7 @@ const PricingPage: NextPageWithLayout<Props> = () => (
<PricingCard key={t.name} flexGrow={0} flexShrink={0} tier={t} />
))}
</Flex>
<DescriptionText>
<Box as="span" color="brand.500">
The Developer editions
</Box>{' '}
of Ockam are intended to be used by individual developers, that are working on hobby
projects, and not by companies. Support is via our community in Discord and GitHub,
and does not come with an SLA. If you are using Portals for Mac you will need a
developer edition license to use the application with your 14 day free trial.
</DescriptionText>
<DescriptionText>{segmentDetails('Developers')?.text}</DescriptionText>
</Flex>
</TabPanel>

Expand All @@ -128,14 +121,7 @@ const PricingPage: NextPageWithLayout<Props> = () => (
<PricingCard key={t.name} flexGrow={1} flexShrink={{ base: 0, lg: 1 }} tier={t} />
))}
</Flex>
<DescriptionText>
<Box as="span" color="brand.500">
Ockam&apos;s Company Editions
</Box>{' '}
are built for production workloads, with direct support from the Ockam team, and can
elastically scale to your needs. This product is purchased through your cloud
marketplace vendor, so you can start building today with your 14 day free trial.
</DescriptionText>
<DescriptionText>{segmentDetails('Companies')?.text}</DescriptionText>
</Flex>
</TabPanel>

Expand All @@ -152,15 +138,7 @@ const PricingPage: NextPageWithLayout<Props> = () => (
<PricingCard key={t.name} flexGrow={1} flexShrink={{ base: 0, lg: 1 }} tier={t} />
))}
</Flex>
<DescriptionText>
Ockam is offered in a bring-your-own-cloud (BYOC){' '}
<Box as="span" color="brand.500">
Enterprise Edition
</Box>{' '}
for companies that are committed to running software entirely within their own
network boundaries. These plans are highly customizable. Please contact Ockam’s
sales team for a technical consultation.
</DescriptionText>
<DescriptionText>{segmentDetails('Enterprises')?.text}</DescriptionText>
</Flex>
</TabPanel>
</TabPanels>
Expand Down
Loading