From 791ccc1af6e4c154edf8a09a12060e66fb7939c3 Mon Sep 17 00:00:00 2001 From: batmanisko Date: Wed, 17 Jun 2026 12:44:30 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20pokyn=20pro=20z=C3=A1pis=20nov=C3=BDch?= =?UTF-8?q?=20funkc=C3=AD=20do=20changelogu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Přidána sekce do CLAUDE.md, která vyžaduje zaznamenání uživatelsky viditelných změn do server/changelogs/YYYY-MM-DD.json. --- CLAUDE.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index c7736cb..d4a473d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -126,3 +126,21 @@ Prettier is installed in `client/` (devDependency only, no script or config) — - TypeScript strict mode in both client and server - Server module resolution: Node16; Client: ESNext/bundler - `TODO.md` tracks open bugs and roadmap items — worth scanning before starting non-trivial work + +## Changelog (user-facing "What's new") + +When you add or change a user-visible feature, you MUST also record it in `server/changelogs/` so users see it via the in-app changelog (served by `server/src/routes/changelogRoutes.ts`, sorted newest-first with a `?since=` filter). + +Steps: + +1. Create or open the file for today's date: `server/changelogs/YYYY-MM-DD.json` (use today's date; one file per day). +2. The file content is a **JSON array of Czech strings**, one short user-facing sentence per change. Example: + ```json + [ + "Proklik na nabídku podniku ze stránky objednávek", + "Možnost přidat URL pro sledování stavu doručení pro Bolt Food" + ] + ``` +3. If a file for today already exists, append your entry to its array instead of creating a new file. +4. Write entries in Czech, phrased for end users (describe the benefit, not the implementation). Skip purely internal/refactor changes that users won't notice. +5. The route caches files in memory at read time, so a server restart is needed to pick up new/changed changelogs in a running dev instance.