From fe4a6a1e9220d891bfadd190b5e983f525b62558 Mon Sep 17 00:00:00 2001 From: Do Siki Date: Wed, 19 Aug 2026 12:44:48 +0200 Subject: [PATCH] =?UTF-8?q?feat(footer):=20CMS-editable=20copyright=20with?= =?UTF-8?q?=202002=E2=80=93current=20year=20range?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The copyright text lived in site.ts with a build-time year and was not CMS-editable. It now lives in common.json (footer.copyright, editable via the Közös szövegek tab) with a {year} placeholder that resolves to the current year at render: '© 2002–{year} mozdIT Bt. Minden jog fenntartva.' Schema and types extended; site.ts keeps only the footer links. Closes MITHOME-66 --- proto/src/components/Footer.test.tsx | 4 ++-- proto/src/components/Footer.tsx | 5 +++-- proto/src/config/site.ts | 2 +- proto/src/content/common.json | 3 +++ proto/src/content/schema.js | 1 + proto/src/content/types.ts | 3 +++ 6 files changed, 13 insertions(+), 5 deletions(-) diff --git a/proto/src/components/Footer.test.tsx b/proto/src/components/Footer.test.tsx index 706214f..dae4655 100755 --- a/proto/src/components/Footer.test.tsx +++ b/proto/src/components/Footer.test.tsx @@ -36,11 +36,11 @@ describe('Footer', () => { expect(screen.getByText('Műszaki támogatás')).toBeInTheDocument() }) - it('should render copyright notice with dynamic year', () => { + it('should render copyright notice from common.json with the current year', () => { render(