Files
websitedev/openspec/specs/public-site/spec.md
Do SikiandClaude Opus 5.5 8687ae28a2
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
docs(openspec): archive MITHOME-112/113 English content change
Sync localized legal pages, English translation status, non-destructive
AI draft import, validated English legal pages and the admin validation
prompt into content-management, and the approved-English-only gate into
public-site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 12:14:53 +02:00

86 lines
3.1 KiB
Markdown

# Public Site Specification
## Purpose
A mozdIT Bt. publikus, magyar és angol nyelvű weboldalának útvonalait, tartalmát és
megjelenítési viselkedését írja le.
## Requirements
### Requirement: Locale-prefixed routes
The public site SHALL serve the Hungarian and English locales under `/hu` and `/en`
URL prefixes respectively. The bare root URL SHALL redirect to the default Hungarian
home route `/hu`.
#### Scenario: Open the home page in a supported locale
- **WHEN** a visitor opens `/hu` or `/en`
- **THEN** the site SHALL render the home page in the requested locale
#### Scenario: Open a localized content page
- **WHEN** a visitor opens a supported page using its locale-specific slug, such as
`/hu/rolunk` or `/en/about`
- **THEN** the site SHALL resolve and render that page in the URL locale
### Requirement: CMS-backed public content
The public site SHALL read editable page content from the Payload CMS through the
server-side content adapter. It SHALL render the home, about, services, contact,
privacy, and terms pages, and SHALL include partner entries with usable logos on the
home page.
#### Scenario: An administrator publishes page content
- **WHEN** a published page or global is read by a public request
- **THEN** the site SHALL render the current published Payload content without
requiring an application rebuild or redeployment
#### Scenario: A partner has no usable logo
- **WHEN** a partner has no uploaded logo URL
- **THEN** the public home page SHALL omit that partner from the rendered partner list
### Requirement: Unknown public routes return not found
The public site SHALL return its not-found page for unsupported locale prefixes and
unknown or unsupported page slugs.
#### Scenario: Open a route with an unsupported locale or slug
- **WHEN** a visitor requests a locale outside `hu` and `en`, or a slug not mapped to
a supported page in that locale
- **THEN** the site SHALL render the not-found response
### Requirement: Locale-specific page metadata
The public site SHALL generate page titles, descriptions, and Open Graph locale
metadata for the requested locale where page metadata is available.
#### Scenario: Request metadata for a localized page
- **WHEN** metadata is generated for a supported page and locale
- **THEN** its title and description SHALL use that locale's page content or configured
localized fallback text
### Requirement: Approved English content only
An English public page SHALL render its English content only when that page's English
translation status is "approved". Otherwise it SHALL render the Hungarian content of the
same page. Routing, navigation labels, and shared values SHALL be unaffected by the
status.
#### Scenario: English translation is an unapproved AI draft
- **WHEN** a visitor opens an English page whose translation status is "AI draft
awaiting review"
- **THEN** the page SHALL render the Hungarian content
#### Scenario: English translation is approved
- **WHEN** a visitor opens an English page whose translation status is "approved" and
the page is published
- **THEN** the page SHALL render the English values, falling back to Hungarian for any
field without an English value