Admin panel in English and Polish, reworded per docs/dev/admin-ux.md
- admin-i18n module: AdminText { en, pl }, component texts under the ipal
namespace (project translations win), en + pl admin languages when the
project sets none (project's supportedLanguages wins)
- every plugin label, description, option, tab and group as { en, pl };
explicit labels instead of auto-labels; sentence case; glossary terms
- visible renames (slugs, names, data unchanged): Cookie banner, Form
messages, Privacy group, Search engines, Maintenance, Spam protection,
E-mail sending, stats nav link Overview (hidden without access)
- Polish visitor defaults by page locale: cookie banner, form messages,
validators, lightbox, accessibility widget; {field} uses the label
- fixes: e-mail status banner used Turnstile wording; developer words and
env var names out of editor messages; stats numbers/dates in the admin
language; test e-mail no longer says ipal-kit
- test/adminUx.test.ts: length limits, en + pl present, no developer words
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
eeac33ed2f
commit
6b46bc0c14
@@ -6,6 +6,7 @@ import { userMeetsRole } from '../access/predicates.js'
|
||||
import { createDailyPurge } from '../shared/purge.js'
|
||||
import { clientIp, consumeRateLimit } from '../shared/rateLimit.js'
|
||||
import { CONSENT_CATEGORIES } from './categories.js'
|
||||
import { CONSENT_CATEGORY_LABELS } from './categoryLabels.js'
|
||||
|
||||
/**
|
||||
* Consent log — proof of consent (GDPR Art. 7(1): the controller must be able
|
||||
@@ -45,20 +46,27 @@ export function buildConsentLogCollection(): CollectionConfig {
|
||||
},
|
||||
admin: {
|
||||
defaultColumns: ['consentId', 'version', 'createdAt'],
|
||||
description: 'Proof of cookie consent: random id (also in the visitor cookie), choices, policy version, time. No personal data.',
|
||||
group: 'Settings',
|
||||
description: {
|
||||
en: 'Proof of each cookie banner choice, stored with a random ID and no personal data.',
|
||||
pl: 'Dowód każdego wyboru na banerze cookies, zapisany z losowym identyfikatorem, bez danych osobowych.',
|
||||
},
|
||||
group: { en: 'Privacy', pl: 'Prywatność' },
|
||||
useAsTitle: 'consentId',
|
||||
},
|
||||
fields: [
|
||||
{ name: 'consentId', type: 'text', index: true, required: true },
|
||||
{ name: 'version', type: 'number', required: true },
|
||||
{ name: 'consentId', type: 'text', index: true, label: { en: 'Consent ID', pl: 'Identyfikator zgody' }, required: true },
|
||||
{ name: 'version', type: 'number', label: { en: 'Consent version', pl: 'Wersja zgody' }, required: true },
|
||||
{
|
||||
name: 'choices',
|
||||
type: 'group',
|
||||
fields: CONSENT_CATEGORIES.map((c) => ({ name: c, type: 'checkbox' as const })),
|
||||
fields: CONSENT_CATEGORIES.map((c) => ({ name: c, type: 'checkbox' as const, label: CONSENT_CATEGORY_LABELS[c] })),
|
||||
label: { en: 'Choices', pl: 'Wybór' },
|
||||
},
|
||||
],
|
||||
labels: { plural: 'Consent records', singular: 'Consent record' },
|
||||
labels: {
|
||||
plural: { en: 'Consent records', pl: 'Rejestr zgód' },
|
||||
singular: { en: 'Consent record', pl: 'Zapis zgody' },
|
||||
},
|
||||
timestamps: true,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user