docs(openspec): add workflows and baseline specs
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

This commit is contained in:
Do Siki
2026-09-28 00:24:21 +02:00
parent d699bf4787
commit 2ad3e75c87
23 changed files with 2910 additions and 1 deletions
+65
View File
@@ -0,0 +1,65 @@
# 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