feat(pricing): remove all hardcoded prices, fetch live modular plans & standalone services from /api/public/plans

This commit is contained in:
Amirul Islam Redwan71
2026-11-28 06:52:02 +06:00
parent f9ea41dc79
commit d709037300
2 changed files with 192 additions and 155 deletions
+4 -62
View File
@@ -305,68 +305,10 @@ const PORTFOLIO_DATA = {
// "new agency, real results coming soon" state when this is empty. // "new agency, real results coming soon" state when this is empty.
testimonials: [], testimonials: [],
pricingTiers: [ // Dynamic SSOT: Pricing tiers are fetched LIVE at runtime from
{ // https://aura.auraajenticai.cloud/api/public/plans (Master Admin billing_plans table).
name: "Starter Shield", // NEVER hardcode prices here — edit plans live inside https://aura.auraajenticai.cloud/billing.
badge: "Founders Club · bKash", pricingTiers: [],
priceBdt: "৳1,999",
price: 16,
period: "/month",
description: "Entry shield for growing BD F-Commerce & E-Commerce shops (15–50 orders/day). Pays for itself by blocking just 6–15 fake COD orders.",
color: "emerald",
features: [
"24/7 Bengali & English AI Inbox (Facebook, Instagram, WhatsApp & Telegram)",
"Aura Risk Shield — Live 4-Courier Fake-Order & Return Rate Scanner",
"1-Click Multi-Courier Booking (Steadfast, Pathao, RedX & Paperfly)",
"Official Meta Cloud API WhatsApp at Direct Meta Rates (0% Markup)",
"Customer 360 Auto-COD Track Record Inside Live Chat",
"bKash Monthly Billing · Up to 2,000 Active Contacts",
"Free 2-Min Fake-Order Audit + 7-Day Zero-Risk Real Trial (৳0)",
],
cta: "Start 7-Day Free Trial (৳0)",
href: "https://auth.auraajenticai.cloud/register",
},
{
name: "Growth Autopilot",
badge: "Most Popular",
priceBdt: "৳3,499",
price: 29,
period: "/month",
description: "Full revenue engine for scaling brands (50–200 orders/day) to slash COD returns, recover carts, and launch high-ROAS creatives.",
color: "cyan",
features: [
"Everything in Starter Shield + Unlimited Contacts & Conversations",
"Revenue Booster — Automated Abandoned Chat, NDR & 28-Day Refill Recovery",
"WhatsApp Tier-1 Broadcast Campaigns (94–96% Read Rate)",
"Fahi-Vids PRO — 10 AI Bengali Ad Videos, Voiceovers & Thumbnails / month",
"WooCommerce & Shopify 2-Way Catalog Sync + Live Meta Pixel Telemetry",
"Google Maps Rooftop Geocoding & Automated Zone Delivery Fee Engine",
"Priority WhatsApp & Live Engineering Support",
],
cta: "Start Growth Trial",
href: "https://auth.auraajenticai.cloud/register",
},
{
name: "Scale Enterprise",
badge: "Full Growth OS",
priceBdt: "৳5,999",
price: 49,
period: "/month",
description: "Complete multi-outlet D2C & agency automation suite with Bengali Voice IVR, team RBAC, and Google Enterprise Analytics.",
color: "amber",
features: [
"Everything in Growth Autopilot + Multi-Seat Team Roles (Manager / Agent RBAC)",
"Twilio Bengali Voice IVR — Automated Phone Call COD Order Confirmation",
"Snehalata Marketplace Priority Listing & AI Virtual Try-On Exposure",
"Google Enterprise Suite (Live Verified GA4, GTM & Google Ads Sync)",
"Dedicated n8n Custom Automation Pipelines & Webhook Orchestration",
"Standalone Aura Courier MCP API Access for Developers & Agencies",
"Direct WhatsApp Priority Access to Aura Core Engineers",
],
cta: "Deploy Scale OS",
href: "https://auth.auraajenticai.cloud/register",
},
],
// Empty on purpose -- the old array here was fabricated (fake publish dates predating Aura's own // Empty on purpose -- the old array here was fabricated (fake publish dates predating Aura's own
// founding, an invented "18 months of production data" claim, and made-up client numbers matching // founding, an invented "18 months of production data" claim, and made-up client numbers matching
+188 -93
View File
@@ -536,107 +536,202 @@ const PRICING_COLORS = {
}; };
const PricingPage = () => { const PricingPage = () => {
const D = PORTFOLIO_DATA; const [plans, setPlans] = React.useState([]);
const [standaloneServices, setStandaloneServices] = React.useState([]);
const [trialPlan, setTrialPlan] = React.useState(null);
const [loading, setLoading] = React.useState(true);
const [err, setErr] = React.useState(false);
React.useEffect(() => {
let active = true;
fetch(`${DASHBOARD_API}/api/public/plans`, { signal: AbortSignal.timeout(5000) })
.then(r => (r.ok ? r.json() : Promise.reject(new Error('HTTP ' + r.status))))
.then(data => {
if (!active) return;
const all = Array.isArray(data?.plans) ? data.plans : [];
const tr = all.find(p => p.is_trial || p.id === 'trial') || null;
const paid = all.filter(p => !(p.is_trial || p.id === 'trial'));
setTrialPlan(tr);
setPlans(paid);
setStandaloneServices(Array.isArray(data?.standalone_services) ? data.standalone_services : []);
setLoading(false);
})
.catch(() => {
if (!active) return;
setErr(true);
setLoading(false);
});
return () => { active = false; };
}, []);
const startingBdt = plans.length > 0 ? Math.min(...plans.map(p => Number(p.monthly_price || 0)).filter(n => n > 0)) : null;
const trialDays = trialPlan?.trial_days || 7;
return ( return (
<main> <main>
<PageHero <PageHero
eyebrow="Transparent Bangladesh & Global SaaS Pricing" eyebrow="Live Platform Plans & Subscriptions"
title={<>Zero agency markups. <span style={{ fontFamily: "var(--font-serif)", fontStyle: "italic", fontWeight: 400 }}>Start at ৳1,999/mo with 7-day free trial.</span></>} title={
sub="No lock-in to a single courier. Connect Steadfast, Pathao, RedX & Paperfly with live COD Fraud Shield, 24/7 Bengali AI Inbox, and Official Meta Cloud API (0% markup) — payable directly via bKash or card." <>
Zero agency markups.{' '}
<span style={{ fontFamily: "var(--font-serif)", fontStyle: "italic", fontWeight: 400 }}>
{startingBdt ? `Start at ৳${startingBdt.toLocaleString()}/mo with ${trialDays}-day free trial.` : 'Transparent monthly plans synced live.'}
</span>
</>
}
sub="No lock-in to a single courier. Connect Steadfast, Pathao, RedX & Paperfly with live COD Fraud Shield, 24/7 Bengali AI Inbox, and Official Meta Cloud API (0% markup) — payable via bKash or card."
/> />
<section style={{ padding: "80px 0 120px" }}> <section style={{ padding: "80px 0 120px" }}>
<div className="container"> <div className="container">
<div style={{ {loading ? (
display: "grid", <div style={{ textAlign: "center", padding: "64px 0", color: "var(--text-dim)", fontFamily: "var(--font-mono)", fontSize: 13 }}>
gridTemplateColumns: "repeat(3, 1fr)", Loading live plans from Aura Cloud…
gap: 24, alignItems: "start", </div>
}} className="pricing-grid"> ) : err || plans.length === 0 ? (
{D.pricingTiers.map((tier, i) => { <div style={{ textAlign: "center", padding: "56px 24px", background: "var(--bg-card)", border: "1px solid var(--line)", borderRadius: "var(--radius)" }}>
const c = PRICING_COLORS[tier.color] || PRICING_COLORS.violet; <p style={{ margin: "0 0 16px", color: "var(--text-dim)" }}>Live pricing feed is momentarily refreshing. Create your free workspace or view current plans inside the portal.</p>
const isPopular = tier.badge === "Most Popular"; <a href="https://auth.auraajenticai.cloud/register" style={{ padding: "10px 22px", background: "var(--text)", color: "var(--bg)", borderRadius: 10, textDecoration: "none", fontSize: 14, fontWeight: 500 }}>Open Client Portal →</a>
return ( </div>
<div ) : (
key={i} <div style={{
className="reveal" display: "grid",
style={{ gridTemplateColumns: `repeat(${Math.min(3, plans.length)}, 1fr)`,
background: isPopular ? c.bg : "var(--bg-card)", gap: 24, alignItems: "start",
border: `1px solid ${isPopular ? c.border : "var(--line)"}`, }} className="pricing-grid">
borderRadius: "var(--radius)", {plans.map((tier, i) => {
padding: "32px", const c = PRICING_COLORS[tier.color] || PRICING_COLORS.violet;
position: "relative", const isPopular = Boolean(tier.popular || tier.badge === "Most Popular");
}} const bdt = Number(tier.monthly_price || 0);
> const approxUsd = bdt > 0 ? Math.max(1, Math.round(bdt / 122)) : 0;
{tier.badge && ( const feats = Array.isArray(tier.highlights) && tier.highlights.length > 0
<div style={{ ? tier.highlights
position: "absolute", top: -12, left: "50%", : [
transform: "translateX(-50%)", `${Number(tier.included_messages || 0).toLocaleString()} included AI conversations / month`,
background: isPopular ? c.text : "var(--bg-elev)", tier.overage_rate > 0 ? `Overage ৳${tier.overage_rate}/msg` : 'Predictable flat monthly billing',
color: isPopular ? "var(--bg)" : "var(--text-faint)", ];
fontSize: 10.5, fontWeight: 600, return (
padding: "3px 12px", borderRadius: 999, <div
fontFamily: "var(--font-mono)", key={tier.id || i}
border: `1px solid ${c.border}`, className="reveal"
whiteSpace: "nowrap",
}}>{tier.badge}</div>
)}
<div style={{ marginBottom: 24 }}>
<h3 style={{ margin: "0 0 6px", fontSize: 20, fontWeight: 600 }}>{tier.name}</h3>
<p style={{ margin: 0, fontSize: 13.5, color: "var(--text-dim)", lineHeight: 1.5 }}>{tier.description}</p>
</div>
<div style={{ marginBottom: 28 }}>
{tier.priceBdt ? (
<div>
<div style={{ display: "flex", alignItems: "baseline", gap: 6 }}>
<span style={{ fontSize: 40, fontWeight: 700, letterSpacing: "-0.03em", color: c.text }}>{tier.priceBdt}</span>
<span style={{ fontSize: 13, color: "var(--text-faint)", fontFamily: "var(--font-mono)" }}>{tier.period}</span>
</div>
{tier.price && (
<div style={{ fontSize: 12.5, color: "var(--text-faint)", fontFamily: "var(--font-mono)", marginTop: 4 }}>
≈ ${tier.price} USD{tier.period} · bKash / Card · 7-Day Free Trial (৳0)
</div>
)}
</div>
) : tier.price ? (
<div style={{ display: "flex", alignItems: "baseline", gap: 4 }}>
<span style={{ fontSize: 13, color: "var(--text-faint)" }}>USD</span>
<span style={{ fontSize: 40, fontWeight: 700, letterSpacing: "-0.03em", color: c.text }}>${tier.price.toLocaleString()}</span>
<span style={{ fontSize: 13, color: "var(--text-faint)", fontFamily: "var(--font-mono)" }}>{tier.period}</span>
</div>
) : (
<div style={{ fontSize: 28, fontWeight: 700, color: c.text }}>Custom Architecture</div>
)}
</div>
<ul style={{ margin: "0 0 28px", padding: 0, listStyle: "none", display: "grid", gap: 10 }}>
{tier.features.map((f, fi) => (
<li key={fi} style={{ display: "flex", gap: 10, fontSize: 13.5, color: "var(--text-dim)", lineHeight: 1.45 }}>
<span style={{ color: c.text, flexShrink: 0, marginTop: 1, fontWeight: 700 }}>✓</span>
{f}
</li>
))}
</ul>
<a
href={tier.href}
style={{ style={{
display: "block", textAlign: "center", background: isPopular ? c.bg : "var(--bg-card)",
padding: "12px 24px", border: `1px solid ${isPopular ? c.border : "var(--line)"}`,
background: isPopular ? c.text : "var(--bg-elev)", borderRadius: "var(--radius)",
color: isPopular ? "var(--bg)" : "var(--text)", padding: "32px",
border: `1px solid ${isPopular ? c.text : "var(--line)"}`, position: "relative",
borderRadius: 10, fontSize: 14, fontWeight: 500,
textDecoration: "none",
transition: "opacity 0.15s",
}} }}
onMouseEnter={e => e.currentTarget.style.opacity = "0.85"} >
onMouseLeave={e => e.currentTarget.style.opacity = "1"} {tier.badge && (
>{tier.cta} →</a> <div style={{
position: "absolute", top: -12, left: "50%",
transform: "translateX(-50%)",
background: isPopular ? c.text : "var(--bg-elev)",
color: isPopular ? "var(--bg)" : "var(--text-faint)",
fontSize: 10.5, fontWeight: 600,
padding: "3px 12px", borderRadius: 999,
fontFamily: "var(--font-mono)",
border: `1px solid ${c.border}`,
whiteSpace: "nowrap",
}}>{tier.badge}</div>
)}
<div style={{ marginBottom: 24 }}>
<h3 style={{ margin: "0 0 6px", fontSize: 20, fontWeight: 600 }}>{tier.name}</h3>
<p style={{ margin: 0, fontSize: 13.5, color: "var(--text-dim)", lineHeight: 1.5 }}>{tier.description}</p>
</div>
<div style={{ marginBottom: 28 }}>
{bdt > 0 ? (
<div>
<div style={{ display: "flex", alignItems: "baseline", gap: 6 }}>
<span style={{ fontSize: 40, fontWeight: 700, letterSpacing: "-0.03em", color: c.text }}>
{tier.currency === 'USD' ? `$${bdt.toLocaleString()}` : `৳${bdt.toLocaleString()}`}
</span>
<span style={{ fontSize: 13, color: "var(--text-faint)", fontFamily: "var(--font-mono)" }}>/month</span>
</div>
<div style={{ fontSize: 12.5, color: "var(--text-faint)", fontFamily: "var(--font-mono)", marginTop: 4 }}>
{tier.currency !== 'USD' ? `≈ $${approxUsd} USD/mo · ` : ''}bKash / Card · {trialDays}-Day Free Trial (৳0)
</div>
</div>
) : (
<div style={{ fontSize: 28, fontWeight: 700, color: c.text }}>Custom Architecture</div>
)}
</div>
{Array.isArray(tier.included_services_detail) && tier.included_services_detail.length > 0 && (
<div style={{ display: "flex", flexWrap: "wrap", gap: 6, marginBottom: 18 }}>
{tier.included_services_detail.map((svc, si) => (
<span key={si} style={{
fontSize: 11, fontFamily: "var(--font-mono)",
padding: "3px 9px", borderRadius: 999,
background: "rgba(255,255,255,0.04)",
border: `1px solid ${c.border}`,
color: c.text,
}}>{svc.name}</span>
))}
</div>
)}
<ul style={{ margin: "0 0 28px", padding: 0, listStyle: "none", display: "grid", gap: 10 }}>
{feats.map((f, fi) => (
<li key={fi} style={{ display: "flex", gap: 10, fontSize: 13.5, color: "var(--text-dim)", lineHeight: 1.45 }}>
<span style={{ color: c.text, flexShrink: 0, marginTop: 1, fontWeight: 700 }}>✓</span>
{f}
</li>
))}
</ul>
<a
href={tier.href || "https://auth.auraajenticai.cloud/register"}
style={{
display: "block", textAlign: "center",
padding: "12px 24px",
background: isPopular ? c.text : "var(--bg-elev)",
color: isPopular ? "var(--bg)" : "var(--text)",
border: `1px solid ${isPopular ? c.text : "var(--line)"}`,
borderRadius: 10, fontSize: 14, fontWeight: 500,
textDecoration: "none",
transition: "opacity 0.15s",
}}
onMouseEnter={e => e.currentTarget.style.opacity = "0.85"}
onMouseLeave={e => e.currentTarget.style.opacity = "1"}
>{tier.cta || 'Start Free Trial'} →</a>
</div>
);
})}
</div>
)}
{standaloneServices.length > 0 && (
<div style={{ marginTop: 64 }}>
<div style={{ marginBottom: 24 }}>
<div style={{ fontSize: 11.5, fontFamily: "var(--font-mono)", textTransform: "uppercase", letterSpacing: "0.08em", color: "var(--accent-2)", marginBottom: 6 }}>
Modular Standalone Services
</div> </div>
); <h3 style={{ margin: "0 0 6px", fontSize: 22, fontWeight: 600 }}>Or pick any individual Aura service à la carte</h3>
})} <p style={{ margin: 0, fontSize: 14, color: "var(--text-dim)" }}>Live pricing synchronized directly from Aura Cloud Catalog — bundle any combination or start with a single tool.</p>
</div> </div>
<div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(260px, 1fr))", gap: 16 }}>
{standaloneServices.map((svc, idx) => (
<div key={svc.slug || idx} style={{ background: "var(--bg-card)", border: "1px solid var(--line)", borderRadius: 12, padding: "20px 22px", display: "flex", flexDirection: "column", justifyContent: "space-between", gap: 12 }}>
<div>
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8, marginBottom: 6 }}>
<strong style={{ fontSize: 15 }}>{svc.name}</strong>
<span style={{ fontSize: 10.5, fontFamily: "var(--font-mono)", color: "var(--text-faint)", textTransform: "uppercase" }}>{svc.category}</span>
</div>
{svc.description && <p style={{ margin: 0, fontSize: 12.5, color: "var(--text-dim)", lineHeight: 1.5 }}>{svc.description}</p>}
</div>
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "baseline", paddingTop: 10, borderTop: "1px solid var(--line)" }}>
<span style={{ fontSize: 18, fontWeight: 700, color: "#34d399" }}>
{svc.monthly_price && svc.monthly_price > 0 ? `৳${Number(svc.monthly_price).toLocaleString()}/mo` : 'Custom / Included'}
</span>
{svc.trial_days > 0 && <span style={{ fontSize: 11, fontFamily: "var(--font-mono)", color: "var(--text-faint)" }}>{svc.trial_days}d trial</span>}
</div>
</div>
))}
</div>
</div>
)}
<div style={{ <div style={{
marginTop: 64, padding: "32px 40px", marginTop: 64, padding: "32px 40px",
@@ -646,7 +741,7 @@ const PricingPage = () => {
gap: 24, alignItems: "center", gap: 24, alignItems: "center",
}} className="pricing-cta-row"> }} className="pricing-cta-row">
<div> <div>
<h3 style={{ margin: "0 0 6px", fontSize: 18, fontWeight: 500 }}>3-Step Zero-Risk Onboarding: 2-Min Free Fake-Order Audit → 7-Day Trial (৳0) → bKash Lock-in</h3> <h3 style={{ margin: "0 0 6px", fontSize: 18, fontWeight: 500 }}>3-Step Zero-Risk Onboarding: 2-Min Free Fake-Order Audit → {trialDays}-Day Trial (৳0) → bKash Lock-in</h3>
<p style={{ margin: 0, fontSize: 14, color: "var(--text-dim)" }}>Send 20 recent customer numbers on WhatsApp (+880 1317-685758) for a free live 4-courier fraud audit, or email hello@auraajenticai.cloud for agency / custom ERP deployment.</p> <p style={{ margin: 0, fontSize: 14, color: "var(--text-dim)" }}>Send 20 recent customer numbers on WhatsApp (+880 1317-685758) for a free live 4-courier fraud audit, or email hello@auraajenticai.cloud for agency / custom ERP deployment.</p>
</div> </div>
<a <a