feat(cms): hosting plans page with lifecycle gate and net + VAT prices (MITHOME-130)
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
- Products collection (interim mirror of the PLATFM-14 catalogue contract): lifecycle status, product type, required whole-forint net price, yearly billing, service definition, per-product English gate - HostingPlans global: page copy, comparison labels, VAT rate (27%) - Gate: production shows only active plans, staging all but retired; with no showable plan the page is 404 and left out of the menu and the sitemap - /hu/tarhely-csomagok <-> /en/hosting-plans via PAGE_SLUGS (hreflang, language switcher, CTA page picker) - Seed migration 20260929_hosting_plans: mIT Start (14 900 Ft/yr, 5 mailboxes) and mIT Mid (23 900 Ft/yr) as drafts, English AI draft; idempotent - Production SEO suite expects at least 12 sitemap URLs; new SMOKE-10 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0c5888761b
commit
1e0742a548
@@ -2,7 +2,7 @@ import { notFound } from 'next/navigation'
|
||||
import Header from '../../../components/Header'
|
||||
import Footer from '../../../components/Footer'
|
||||
import { isLocale, localePath, type Locale } from '@/lib/i18n'
|
||||
import { getCommonContent, getHomeContent } from '@/lib/payload-content'
|
||||
import { getCommonContent, getHomeContent, hasHostingPlans } from '@/lib/payload-content'
|
||||
import { siteConfig, getMainNavigation, getFooterNavigation, getFooterLegalLinks, getSiteDescription, getLanguageSwitcherLabel } from '@/config/site'
|
||||
|
||||
// WHY force-dynamic (MITHOME-97): ezek az oldalak a Payload Local API-t hívják
|
||||
@@ -25,9 +25,10 @@ export default async function LocaleLayout({
|
||||
if (!isLocale(rawLocale)) notFound()
|
||||
const locale: Locale = rawLocale
|
||||
|
||||
const [common, home] = await Promise.all([
|
||||
const [common, home, hostingPlans] = await Promise.all([
|
||||
getCommonContent(locale),
|
||||
getHomeContent(locale),
|
||||
hasHostingPlans(), // MITHOME-130: menu item only while the page has a plan
|
||||
])
|
||||
|
||||
const isStaging = process.env.NEXT_PUBLIC_DEPLOY_ENV === 'staging'
|
||||
@@ -40,7 +41,7 @@ export default async function LocaleLayout({
|
||||
</div>
|
||||
)}
|
||||
<Header
|
||||
nav={getMainNavigation(locale)}
|
||||
nav={getMainNavigation(locale, { hostingPlans })}
|
||||
homeHref={localePath(locale)}
|
||||
a11y={common.a11y}
|
||||
languageLabel={getLanguageSwitcherLabel(locale)}
|
||||
|
||||
Reference in New Issue
Block a user