From 837c06fdfba5d612e3398f8c152449ea2e3d1447 Mon Sep 17 00:00:00 2001 From: AldemirLucas Date: Wed, 3 Jun 2026 12:55:04 -0300 Subject: [PATCH 1/3] feat: introduce BD Orgs plan page, update pricing structure, and enhance localization for new features --- .../componentsUserPage/PlansAndPayment.js | 33 ++++- next/pages/api/stripe/getPlans.js | 8 +- next/pages/bd-orgs.js | 58 ++++++++ next/pages/prices.js | 129 ++++++++++-------- next/public/locales/en/bd-orgs.json | 6 + next/public/locales/en/menu.json | 2 +- next/public/locales/en/prices.json | 17 ++- next/public/locales/en/user.json | 9 +- next/public/locales/es/bd-orgs.json | 6 + next/public/locales/es/menu.json | 2 +- next/public/locales/es/prices.json | 17 ++- next/public/locales/es/user.json | 9 +- next/public/locales/pt/bd-orgs.json | 6 + next/public/locales/pt/menu.json | 2 +- next/public/locales/pt/prices.json | 19 ++- next/public/locales/pt/user.json | 15 +- 16 files changed, 249 insertions(+), 89 deletions(-) create mode 100644 next/pages/bd-orgs.js create mode 100644 next/public/locales/en/bd-orgs.json create mode 100644 next/public/locales/es/bd-orgs.json create mode 100644 next/public/locales/pt/bd-orgs.json diff --git a/next/components/organisms/componentsUserPage/PlansAndPayment.js b/next/components/organisms/componentsUserPage/PlansAndPayment.js index b8c688ca5..420a2d580 100644 --- a/next/components/organisms/componentsUserPage/PlansAndPayment.js +++ b/next/components/organisms/componentsUserPage/PlansAndPayment.js @@ -175,8 +175,6 @@ export default function PlansAndPayment ({ userData }) { const filteredPlans = { bd_pro_month : filterData("BD Pro", "month", true, 47)[0].node, bd_pro_year : filterData("BD Pro", "year", true, 444)[0].node, - bd_empresas_month : filterData("BD Empresas", "month", true, 385)[0].node, - bd_empresas_year : filterData("BD Empresas", "year", true, 3700)[0].node, bd_chatbot_month : filterChatbot("month", 30)[0]?.node, bd_chatbot_year : filterChatbot("year", 326)[0]?.node, } @@ -347,7 +345,15 @@ export default function PlansAndPayment ({ userData }) { }], resources : [ {name: t('username.accessFor10Accounts')}, - {name: t('username.prioritySupport')} + {name: t('username.prioritySupport')}, + {name: t('username.bdOrgsChatbot'), hideInListFeature: true}, + {name: t('username.bdOrgsSegmentedInfrastructure')}, + {name: t('username.bdOrgsUnifiedBilling')}, + { + name: t('username.bdOrgsSpecializedServices'), + linkText: t('username.bdOrgsLearnMore'), + linkHref: '/services', + }, ]} } @@ -361,6 +367,8 @@ export default function PlansAndPayment ({ userData }) { } const ListFeature = ({ elm, index, notIncludes = false }) => { + if (!elm || elm === "" || elm.hideInListFeature) return null; + return ( {notIncludes ? @@ -371,7 +379,24 @@ export default function PlansAndPayment ({ userData }) { {elm.name} + > + {elm.linkHref ? ( + <> + {elm.name}{" "} + + {elm.linkText} + + + ) : ( + elm.name + )} + {elm.tooltip && { + const name = node.productName?.toLowerCase() || "" + const slug = node.productSlug?.toLowerCase() || "" + return !name.includes("empresas") && !slug.includes("empresas") + }) + + res.status(200).json({ data: edges, success: true }) } diff --git a/next/pages/bd-orgs.js b/next/pages/bd-orgs.js new file mode 100644 index 000000000..8d783ba13 --- /dev/null +++ b/next/pages/bd-orgs.js @@ -0,0 +1,58 @@ +import { Box, Stack } from "@chakra-ui/react"; +import Head from "next/head"; +import Script from "next/script"; +import { useTranslation } from "next-i18next"; +import { serverSideTranslations } from "next-i18next/serverSideTranslations"; +import { MainPageTemplate } from "../components/templates/main"; +import { withPages } from "../hooks/pages.hook"; + +export async function getStaticProps({ locale }) { + const pages = await withPages(); + return { + props: { + ...pages, + ...(await serverSideTranslations(locale, ["common", "menu", "bd-orgs"])), + }, + }; +} + +export default function BdOrgs() { + const { t } = useTranslation("bd-orgs"); + + return ( + + + {t("pageTitle")} + + + + +