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
Removes the standalone, git-push-based content editor that predates
Payload CMS: content-editor.js, its scripts/cms-*.js modules, its
scripts/test-content-editor-*.js + scripts/test-cms-publish.js test
suite, scripts/markdown-render.js (only used by the editor's guide
renderer), the proto-side test doubles (cms-editor-client.test.ts,
cms-editor-shortcuts.test.ts), and the editor's own user guide
(docs/felhasznaloi-utmutato.md).
Kept: proto/src/content/*.json (still the source for
migrate-content-to-payload.ts and test fixtures for Header/Footer,
per MITHOME-96), proto/src/content/schema.js + scripts/test-content-schema.js
(still validate those JSON files), and docs/content-editor-recovery.md
(historical incident record, not user-facing tool docs).
Safety net before deletion (per user request): added
proto/scripts/export-content-snapshot.ts, a reusable Payload Local API
exporter, and ran it to produce docs/backups/payload-content-snapshot-*.json
— a full hu/en snapshot of every Global + LegalPages + Partners document
at the moment of retirement. Also confirmed no data-loss risk otherwise:
.content-backups/ (the editor's own gitignored backup dir) tops out at
2026-08-23, well before today's fresh migration run, and every JSON
edit ever made through the editor already exists as its own git commit
("content: frissítve a CMS-ből").
Updated dangling references: pre-deploy-tests.sh and
.agent/steering/testing.md (dropped the CMS test block),
.agent/workflows/deploy.md (publish flow is now Payload draft/publish,
not git push), CLAUDE.md + .agent/AGENTS.md (dropped the /cms-feature
workflow, deleted alongside it), README.md (stack description),
.agent/steering/development-rules.md (the guide-maintenance rule no
longer has a guide to maintain).
Verified: tsc, lint, proto unit tests (51 passed), root
test-content-schema.js, plane-sync unit tests, production build all
green after the deletion.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
83 lines
3.0 KiB
Markdown
Executable File
83 lines
3.0 KiB
Markdown
Executable File
# mozdIT Bt. — Weboldal fejlesztés (websitedev)
|
|
|
|
Modern Next.js weboldal a mozdIT Bt. számára — webtárhely, email- és DNS-szolgáltatás, magyar IT vállalkozás.
|
|
|
|
## Stack
|
|
|
|
- **Frontend**: Next.js 15 (Turbopack), React 19, TypeScript, Tailwind CSS 4
|
|
- **CMS**: Payload CMS (self-hosted, `/admin`), MongoDB adapter, draft/publish + verziózás, hu/en lokalizáció
|
|
- **Tartalom**: Payload Globals/Collections (a korábbi JSON-alapú content rendszer, `proto/src/content/`, csak a migrációs script forrásaként és teszt-fixture-ként él tovább — MITHOME-91/93)
|
|
- **Backend**: Next.js API routes, MongoDB
|
|
- **Tesztelés**: Jest, React Testing Library, Playwright (smoke)
|
|
- **Deploy**: natív Docker Compose (`deploy.sh`) + Gitea Actions nélkül, lokálisan vezérelt
|
|
- **Monitoring**: Winston + Loki, plusz `scripts/security-scan.sh` (ntfy riasztással)
|
|
|
|
## Gyors indítás
|
|
|
|
```bash
|
|
# Fejlesztői szerver
|
|
cd proto && npm run dev
|
|
|
|
# Docker fejlesztői környezet
|
|
docker-compose -f docker-compose.dev.yml up -d
|
|
|
|
# Teljes pre-deploy tesztkészlet
|
|
scripts/pre-deploy-tests.sh
|
|
```
|
|
|
|
## Feladatkezelés (Plane)
|
|
|
|
- **Projekt**: [MITHOME](https://pm.llmdev.mozdit.hu) (workspace: `developments`)
|
|
- **TODO.md**: helyi tükör, a Plane az elsődleges forrás
|
|
- **Szinkron**: `node plane-sync.js` (Plane → TODO.md)
|
|
- **Ticket-azonosítók**: `MITHOME-XX`
|
|
|
|
## Deploy
|
|
|
|
```bash
|
|
./scripts/deploy_to_stage_on_local.sh # staging: teljes tesztkészlet + push + deploy + smoke
|
|
./deploy.sh production # éles (szerveren, staging ellenőrzése után)
|
|
```
|
|
|
|
A CMS „Publikálás" gombja szintén commitol + pushol + deployol (csak a beállított környezetre). Részletek: `.agent/workflows/deploy.md`, `docs/helyi-staging-deploy.md`.
|
|
|
|
## Tartalomkezelés
|
|
|
|
A weboldal szövegei és a CMS a `proto/src/content/` JSON-fájljaiból jönnek:
|
|
|
|
```
|
|
proto/src/content/
|
|
├── schema.js # közös séma-validátor (Next + CMS)
|
|
├── types.ts # TypeScript típusok
|
|
├── index.ts # tartalom-betöltő
|
|
├── common.json # közös szövegek (gombok, lábléc, a11y)
|
|
└── pages/ # oldalankénti tartalom (home, about, services, …)
|
|
```
|
|
|
|
Használat:
|
|
|
|
```typescript
|
|
import { content, getPageContent } from '@/content'
|
|
const about = content.pages.about
|
|
```
|
|
|
|
## Dokumentáció
|
|
|
|
- **Agent-szabályok**: `.agent/AGENTS.md`, `.agent/steering/`, `.agent/workflows/`
|
|
- **CMS felhasználói útmutató**: `docs/felhasznaloi-utmutato.md` (a CMS-ben a ❓ Súgó is ezt rendereli)
|
|
- **Plane szinkron**: `PLANE-SYNC-GUIDE.md`
|
|
- **Staging deploy**: `docs/helyi-staging-deploy.md`
|
|
- **Gitea runner**: `docs/gitea-runner-telepites.md`
|
|
|
|
## Környezetek
|
|
|
|
- **Staging**: https://stage.mozdit.hu
|
|
- **CMS (staging)**: https://cms.stage.llmdev.mozdit.hu
|
|
- **ntfy (riasztás)**: `st_limidev_security` topic
|
|
|
|
## Biztonsági monitoring
|
|
|
|
`scripts/security-scan.sh` (cron, 5 percenként) kriptominer/backdoor indikátorokat figyel
|
|
(álcázott folyamatnevek, `/tmp/.kworkerd`-jellegű maradványok, magas CPU), és találat esetén
|
|
ntfy push-t küld a `st_limidev_security` topicra.
|