33from reflex_ui .blocks .demo_form import demo_form_dialog
44
55from 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
88CLOUD_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
2065SECURITY_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
31116SUPPORT_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]
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
57152REFLEX_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
76191REFLEX_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