Skip to content

Commit 06d1b4b

Browse files
authored
Hide Pro (#1688)
* Temporarily hide Pro tier * Fix lint after hiding Pro tier
1 parent 171745b commit 06d1b4b

File tree

2 files changed

+203
-84
lines changed

2 files changed

+203
-84
lines changed

pcweb/pages/pricing/plan_cards.py

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from reflex_ui.blocks.demo_form import demo_form_dialog
88

99
from pcweb.components.hosting_banner import HostingBannerState
10-
from pcweb.components.number_flow import number_flow
1110
from pcweb.constants import PRO_TIERS_TABLE, REFLEX_BUILD_URL, REFLEX_CLOUD_URL
1211

1312
YEARLY_MONTHS_FREE = 2 # 2 months free
@@ -199,43 +198,43 @@ def pricing_cards() -> rx.Component:
199198
target="_blank",
200199
),
201200
),
202-
card(
203-
"Pro",
204-
number_flow(
205-
value=rx.cond(
206-
monthly_yearly_toggle_cs.value == "monthly",
207-
ProTierState.selected_tier["price"],
208-
round(
209-
ProTierState.selected_tier["price"]
210-
* YEARLY_DISCOUNT_MULTIPLIER,
211-
1,
212-
),
213-
),
214-
trend="0",
215-
prefix="$",
216-
suffix=" /monthly",
217-
class_name="text-3xl text-secondary-12 font-semibold py-4",
218-
),
219-
"Build, deploy and scale your apps.",
220-
[
221-
Feature("TokenCircleIcon", "", pro_tiers_select()),
222-
Feature("SquareLock02Icon", "Private Projects"),
223-
Feature("CursorInWindowIcon", "Full-Fledged Browser IDE"),
224-
Feature("PlugSocketIcon", "Integrations"),
225-
Feature("GithubIcon", "Connect to Github"),
226-
Feature("Globe02Icon", "Custom Domains"),
227-
Feature("CpuIcon", "Up to 8 GB RAM / 4 vCPU per deployed app"),
228-
],
229-
ui.button(
230-
"Start with Pro plan",
231-
variant="secondary",
232-
size="lg",
233-
class_name="w-full font-semibold",
234-
on_click=ProTierState.redirect_to_billing(
235-
monthly_yearly_toggle_cs.value == "yearly"
236-
),
237-
),
238-
),
201+
# card(
202+
# "Pro",
203+
# number_flow(
204+
# value=rx.cond(
205+
# monthly_yearly_toggle_cs.value == "monthly",
206+
# ProTierState.selected_tier["price"],
207+
# round(
208+
# ProTierState.selected_tier["price"]
209+
# * YEARLY_DISCOUNT_MULTIPLIER,
210+
# 1,
211+
# ),
212+
# ),
213+
# trend="0",
214+
# prefix="$",
215+
# suffix=" /monthly",
216+
# class_name="text-3xl text-secondary-12 font-semibold py-4",
217+
# ),
218+
# "Build, deploy and scale your apps.",
219+
# [
220+
# Feature("TokenCircleIcon", "", pro_tiers_select()),
221+
# Feature("SquareLock02Icon", "Private Projects"),
222+
# Feature("CursorInWindowIcon", "Full-Fledged Browser IDE"),
223+
# Feature("PlugSocketIcon", "Integrations"),
224+
# Feature("GithubIcon", "Connect to Github"),
225+
# Feature("Globe02Icon", "Custom Domains"),
226+
# Feature("CpuIcon", "Up to 8 GB RAM / 4 vCPU per deployed app"),
227+
# ],
228+
# ui.button(
229+
# "Start with Pro plan",
230+
# variant="secondary",
231+
# size="lg",
232+
# class_name="w-full font-semibold",
233+
# on_click=ProTierState.redirect_to_billing(
234+
# monthly_yearly_toggle_cs.value == "yearly"
235+
# ),
236+
# ),
237+
# ),
239238
popular_card(
240239
"Enterprise",
241240
"Custom",
@@ -263,7 +262,7 @@ def pricing_cards() -> rx.Component:
263262
),
264263
),
265264
),
266-
class_name="grid xl:grid-cols-3 grid-cols-1 gap-4 w-full",
265+
class_name="grid grid-cols-1 xl:grid-cols-2 gap-4 w-full xl:w-auto mx-auto justify-items-center",
267266
)
268267

269268

pcweb/pages/pricing/table.py

Lines changed: 165 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,127 @@
33
from reflex_ui.blocks.demo_form import demo_form_dialog
44

55
from pcweb.components.hosting_banner import HostingBannerState
6-
from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL
6+
from pcweb.constants import REFLEX_BUILD_URL # , REFLEX_CLOUD_URL
77

88
CLOUD_HOSTING_FEATURES = [
9-
("Max # Apps", "1", "5", "10"),
10-
("Max Machine Size", "1cpu, 1gb", "2cpu, 4gb shared", "Beyond 2cpu, 4gb"),
11-
("Dedicated Machines", False, False, True),
12-
("Custom Domains", "0", "5", "Unlimited"),
13-
("App Metrics", True, True, True),
14-
("Log Retention", "1 hour", "7 day", "90-Day Log History"),
15-
("Multiple Regions", False, True, True),
16-
('"Built with Reflex" Attribution', True, False, False),
17-
("One-click rollbacks", True, True, True),
9+
(
10+
"Max # Apps",
11+
"1",
12+
# "5",
13+
"10",
14+
),
15+
(
16+
"Max Machine Size",
17+
"1cpu, 1gb",
18+
# "2cpu, 4gb shared",
19+
"Beyond 2cpu, 4gb",
20+
),
21+
(
22+
"Dedicated Machines",
23+
False,
24+
# False,
25+
True,
26+
),
27+
(
28+
"Custom Domains",
29+
"0",
30+
# "5",
31+
"Unlimited",
32+
),
33+
(
34+
"App Metrics",
35+
True,
36+
# True,
37+
True,
38+
),
39+
(
40+
"Log Retention",
41+
"1 hour",
42+
# "7 day",
43+
"90-Day Log History",
44+
),
45+
(
46+
"Multiple Regions",
47+
False,
48+
# True,
49+
True,
50+
),
51+
(
52+
'"Built with Reflex" Attribution',
53+
True,
54+
# False,
55+
False,
56+
),
57+
(
58+
"One-click rollbacks",
59+
True,
60+
# True,
61+
True,
62+
),
1863
]
1964

2065
SECURITY_FEATURES = [
21-
("SSO/SAML", False, True, True),
22-
("Role-based access control", False, False, True),
23-
("On Premise Deployments", False, False, True),
24-
("Audit Logs", False, False, True),
25-
("HTTP/SSL", True, True, True),
26-
("Web App Firewall", True, True, True),
27-
("SOC 2 compliance", False, False, "On prem, custom"),
28-
("HIPAA BAA", False, False, "On prem, custom"),
66+
(
67+
"SSO/SAML",
68+
False,
69+
# True,
70+
True,
71+
),
72+
(
73+
"Role-based access control",
74+
False,
75+
# False,
76+
True,
77+
),
78+
(
79+
"On Premise Deployments",
80+
False,
81+
# False,
82+
True,
83+
),
84+
(
85+
"Audit Logs",
86+
False,
87+
# False,
88+
True,
89+
),
90+
(
91+
"HTTP/SSL",
92+
True,
93+
# True,
94+
True,
95+
),
96+
(
97+
"Web App Firewall",
98+
True,
99+
# True,
100+
True,
101+
),
102+
(
103+
"SOC 2 compliance",
104+
False,
105+
# False,
106+
"On prem, custom",
107+
),
108+
(
109+
"HIPAA BAA",
110+
False,
111+
# False,
112+
"On prem, custom",
113+
),
29114
]
30115

31116
SUPPORT_FEATURES = [
32117
(
33118
"Customer Success",
34119
"Discord/Github Community",
35-
"Discord/Github Community",
120+
# "Discord/Github Community",
36121
"Dedicated Support Channel",
37122
),
38123
(
39124
"Onboarding",
40125
"Documentation",
41-
"Documentation",
126+
# "Documentation",
42127
"Get a forward deployed engineer to help you get started",
43128
),
44129
]
@@ -47,46 +132,81 @@
47132
(
48133
"Credits",
49134
"50 daily credits (up to 150/month)",
50-
"1000 monthly credits",
135+
# "1000 monthly credits",
51136
"Custom",
52137
),
53-
("Agent (10 Credits per msg)", True, True, True),
54-
("Chat (1 Credit)", True, True, True),
138+
(
139+
"Agent (10 Credits per msg)",
140+
True,
141+
# True,
142+
True,
143+
),
144+
(
145+
"Chat (1 Credit)",
146+
True,
147+
# True,
148+
True,
149+
),
55150
]
56151

57152
REFLEX_BUILD_FUNCTIONALITY = [
58153
(
59154
"Privacy",
60155
"Public Projects",
61-
"Private Projects",
156+
# "Private Projects",
62157
"Private Projects /Group based controls",
63158
),
64159
(
65160
"Design",
66161
"Custom Designs/Theming",
162+
# "Custom Designs/Theming",
67163
"Custom Designs/Theming",
68-
"Custom Designs/Theming",
69164
),
70-
("Data", False, False, "Opt out of data training"),
71-
("Collaborators", "Single", "Single", "Multiple Collaborators/Editors"),
72-
("Integration", "Basic 5", "Pro 100+", "Enterprise Integrations"),
73-
("Download App Code", False, True, True),
165+
(
166+
"Data",
167+
False,
168+
# False,
169+
"Opt out of data training",
170+
),
171+
(
172+
"Collaborators",
173+
"Single",
174+
# "Single",
175+
"Multiple Collaborators/Editors",
176+
),
177+
(
178+
"Integration",
179+
"Basic 5",
180+
# "Pro 100+",
181+
"Enterprise Integrations",
182+
),
183+
(
184+
"Download App Code",
185+
False,
186+
# True,
187+
True,
188+
),
74189
]
75190

76191
REFLEX_BUILD_DEPLOYMENT = [
77192
(
78193
"Github",
79194
"Public Repo Sync",
80-
"Private Repo Sync",
195+
# "Private Repo Sync",
81196
"Enterprise Repo Sync Github, Gitlab, and Bitbucket.",
82197
),
83198
(
84199
"One Click Deploy",
85200
"Reflex Cloud",
86-
"Reflex Cloud",
201+
# "Reflex Cloud",
87202
"Databricks, AWS, Azure, GCP, Other",
88203
),
89-
("SSH access", False, True, True),
204+
(
205+
"SSH access",
206+
False,
207+
# True,
208+
True,
209+
),
90210
]
91211

92212

@@ -215,18 +335,18 @@ def header_item(text: str, button: rx.Component) -> rx.Component:
215335
),
216336
),
217337
# Pro column with button
218-
header_item(
219-
"Pro",
220-
ui.link(
221-
render_=ui.button(
222-
"Upgrade now",
223-
variant="secondary",
224-
class_name="font-semibold w-full",
225-
),
226-
to=f"{REFLEX_CLOUD_URL.rstrip('/')}/?redirect_url={REFLEX_CLOUD_URL.rstrip('/')}/billing/",
227-
target="_blank",
228-
),
229-
),
338+
# header_item(
339+
# "Pro",
340+
# ui.link(
341+
# render_=ui.button(
342+
# "Upgrade now",
343+
# variant="secondary",
344+
# class_name="font-semibold w-full",
345+
# ),
346+
# to=f"{REFLEX_CLOUD_URL.rstrip('/')}/?redirect_url={REFLEX_CLOUD_URL.rstrip('/')}/billing/",
347+
# target="_blank",
348+
# ),
349+
# ),
230350
# Enterprise column with button
231351
header_item(
232352
"Enterprise",
@@ -238,7 +358,7 @@ def header_item(text: str, button: rx.Component) -> rx.Component:
238358
)
239359
),
240360
),
241-
class_name="grid grid-cols-4 gap-6 p-4",
361+
class_name="grid grid-cols-3 gap-6 p-4",
242362
),
243363
class_name=(
244364
"sticky z-10 bg-slate-1 border-x border-slate-4 border-y",

0 commit comments

Comments
 (0)