@@ -50,7 +50,7 @@ function calculateWorkerPrice(memoryGB, tierId, selectedOption) {
50
50
let basePrice = 25 + ( effectiveMemory - 1 ) * 25 ;
51
51
52
52
// Apply discounts based on selectedOption
53
- if ( selectedOption === 'SMB ' || selectedOption === 'Nonprofit' ) {
53
+ if ( selectedOption === 'Pro ' || selectedOption === 'Nonprofit' ) {
54
54
basePrice = basePrice * 0.4 ; // 60% discount
55
55
}
56
56
return basePrice ;
@@ -117,9 +117,9 @@ const ComputeUnitsSummary = ({ workerGroups, nativeWorkers, selectedOption, tier
117
117
< div className = "flex flex-col gap-1 text-sm text-gray-600 dark:text-gray-200 min-h-[6.5rem]" >
118
118
< span className = "text-gray-900 dark:text-white" >
119
119
Total < a href = "#compute-units" className = "custom-link text-gray-900 hover:text-gray-600 dark:text-white dark:hover:text-gray-200" > compute units</ a > (CU):
120
- { ' ' } < span className = { selectedOption === 'SMB ' && totalComputeUnits > 10 ? "text-rose-700 dark:text-red-400" : "" } >
120
+ { ' ' } < span className = { selectedOption === 'Pro ' && totalComputeUnits > 10 ? "text-rose-700 dark:text-red-400" : "" } >
121
121
{ Math . round ( totalComputeUnits ) }
122
- { selectedOption === 'SMB ' && totalComputeUnits > 10 ? ' (max 10 CU on Pro plan)' : '' }
122
+ { selectedOption === 'Pro ' && totalComputeUnits > 10 ? ' (max 10 CU on Pro plan)' : '' }
123
123
</ span >
124
124
</ span >
125
125
{ Object . entries ( groupedWorkers )
@@ -188,8 +188,8 @@ export default function PriceCalculator({ period, tier, selectedOption }) {
188
188
// Get the appropriate pricing based on selectedOption and tier.id
189
189
function getPriceByOption ( ) {
190
190
if ( tier . id === 'tier-enterprise-selfhost' ) {
191
- if ( selectedOption === 'SMB ' && tier . price_smb ) {
192
- return tier . price_smb ;
191
+ if ( selectedOption === 'Pro ' && tier . price_pro ) {
192
+ return tier . price_pro ;
193
193
} else if ( selectedOption === 'Nonprofit' && tier . price_nonprofit ) {
194
194
return tier . price_nonprofit ;
195
195
}
@@ -242,7 +242,7 @@ export default function PriceCalculator({ period, tier, selectedOption }) {
242
242
243
243
// Apply minimum worker group pricing
244
244
let minimumWorkerPrice = tier . id === 'tier-enterprise-cloud' ? 200 : 100 ;
245
- if ( tier . id === 'tier-enterprise-selfhost' && ( selectedOption === 'SMB ' || selectedOption === 'Nonprofit' ) ) {
245
+ if ( tier . id === 'tier-enterprise-selfhost' && ( selectedOption === 'Pro ' || selectedOption === 'Nonprofit' ) ) {
246
246
minimumWorkerPrice = 40 ;
247
247
}
248
248
@@ -341,19 +341,19 @@ export default function PriceCalculator({ period, tier, selectedOption }) {
341
341
return sum + ( pricePerWorker * group . workers ) ;
342
342
} , 0 ) + ( pricing . worker ?. native * nativeWorkers / 8 ) ) <
343
343
( tier . id === 'tier-enterprise-cloud' ? 200 :
344
- ( selectedOption === 'SMB ' || selectedOption === 'Nonprofit' ? 40 : 100 ) ) && (
344
+ ( selectedOption === 'Pro ' || selectedOption === 'Nonprofit' ? 40 : 100 ) ) && (
345
345
< span className = "text-sm text-rose-700 dark:text-red-400" >
346
346
Price for workers can't be below ${ tier . id === 'tier-enterprise-cloud'
347
347
? ( period . value === 'annually' ? '2,000' : '200' )
348
- : ( selectedOption === 'SMB ' || selectedOption === 'Nonprofit'
348
+ : ( selectedOption === 'Pro ' || selectedOption === 'Nonprofit'
349
349
? ( period . value === 'annually' ? '400' : '40' )
350
350
: ( period . value === 'annually' ? '1,000' : '100' ) ) }
351
351
/{ period . value === 'annually' ? 'yr' : 'mo' }
352
352
</ span >
353
353
) }
354
354
355
- { /* New CU limit warning for SMB */ }
356
- { selectedOption === 'SMB ' && (
355
+ { /* New CU limit warning for Pro */ }
356
+ { selectedOption === 'Pro ' && (
357
357
( ( ) => {
358
358
const counts = getWorkerCounts ( workerGroups ) ;
359
359
const totalComputeUnits = ( counts . small / 2 || 0 ) +
@@ -380,7 +380,7 @@ export default function PriceCalculator({ period, tier, selectedOption }) {
380
380
( counts . standard || 0 ) +
381
381
( ( 1 / 8 ) * nativeWorkers ) +
382
382
( 2 * ( counts . large || 0 ) ) ;
383
- const isOverLimit = selectedOption === 'SMB ' && totalComputeUnits > 10 ;
383
+ const isOverLimit = selectedOption === 'Pro ' && totalComputeUnits > 10 ;
384
384
const textColor = isOverLimit ? "text-rose-700 dark:text-red-400" : "text-gray-900 dark:text-white" ;
385
385
const subTextColor = isOverLimit ? "text-rose-700 dark:text-red-400" : "text-gray-500" ;
386
386
@@ -553,7 +553,7 @@ export default function PriceCalculator({ period, tier, selectedOption }) {
553
553
</ div >
554
554
< Slider
555
555
min = { 1 }
556
- max = { selectedOption === 'SMB ' ? 10 : 1000 }
556
+ max = { selectedOption === 'Pro ' ? 10 : 1000 }
557
557
step = { 1 }
558
558
defaultValue = { group . workers }
559
559
onChange = { ( value ) => updateWorkerGroup ( index , 'workers' , value ) }
@@ -613,7 +613,7 @@ export default function PriceCalculator({ period, tier, selectedOption }) {
613
613
</ div >
614
614
< Slider
615
615
min = { 0 }
616
- max = { selectedOption === 'SMB ' ? 32 : 200 }
616
+ max = { selectedOption === 'Pro ' ? 32 : 200 }
617
617
step = { 8 }
618
618
defaultValue = { 8 }
619
619
onChange = { ( value ) => setNativeWorkers ( value ) }
@@ -743,7 +743,7 @@ export default function PriceCalculator({ period, tier, selectedOption }) {
743
743
amount = { computeTotalPrice ( ) }
744
744
period = { period . value }
745
745
className = { classNames (
746
- selectedOption === 'SMB ' && totalComputeUnits > 10
746
+ selectedOption === 'Pro ' && totalComputeUnits > 10
747
747
? "text-rose-700 dark:text-red-400"
748
748
: "text-gray-900 dark:text-white"
749
749
) }
@@ -763,7 +763,7 @@ export default function PriceCalculator({ period, tier, selectedOption }) {
763
763
onClick = { ( ) => setShowQuoteForm ( true ) }
764
764
className = { classNames (
765
765
'text-sm cursor-pointer border shadow-sm !no-underline mt-6 block rounded-md py-2 px-3 text-center font-semibold leading-6 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2' ,
766
- tier . id === 'tier-enterprise-cloud' || selectedOption !== 'SMB '
766
+ tier . id === 'tier-enterprise-cloud' || selectedOption !== 'Pro '
767
767
? 'border-teal-600 text-teal-600 hover:text-teal-700 dark:hover:text-teal-500 hover:bg-teal-50 dark:hover:bg-teal-950 focus-visible:outline-teal-600'
768
768
: 'border-blue-600 text-blue-600 hover:text-blue-700 dark:hover:text-blue-500 hover:bg-blue-50 dark:hover:bg-blue-950 focus-visible:outline-blue-600'
769
769
) }
0 commit comments