IAPL rename, scripted: preferred names in src, bin, scripts, services, tests; bin files and skill folders moved
Replaced by an explicit list of forms only (ten exported names, runtime env names, project file names and marks, commands, skill names, the log prefix, the brand in prose). Package name, import paths, routes, CSS tokens, data attributes, custom keys, context flags, the cookie and kv keys are not touched. package.json keeps the five old bin names beside the five new ones. The old names stop working in this commit and come back as aliases in the next; docs follow. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
414a4702df
commit
0a4f001797
@@ -2,13 +2,13 @@ import type { BasePayload, Config, Field, GlobalConfig, PayloadRequest } from 'p
|
||||
|
||||
import { describe, expect, test, vi } from 'vitest'
|
||||
|
||||
import { adminDocumentTitle, adminTexts, ipalT } from '../src/modules/admin-i18n/index.js'
|
||||
import { adminDocumentTitle, adminTexts, iaplT } from '../src/modules/admin-i18n/index.js'
|
||||
import { buildCookieScanEndpoints } from '../src/modules/consent/scanner/endpoint.js'
|
||||
import { DEFAULT_COOKIE_INTEGRATIONS, integrationLabel } from '../src/modules/consent/scanner/integrations.js'
|
||||
import { collectCookieFindings } from '../src/modules/consent/scanner/scan.js'
|
||||
import { constructionCloseLabel } from '../src/modules/construction/texts.js'
|
||||
import { faviconProblems } from '../src/modules/seo/faviconProblems.js'
|
||||
import { ipalKit } from '../src/plugin.js'
|
||||
import { iapl } from '../src/plugin.js'
|
||||
|
||||
vi.mock('server-only', () => ({}))
|
||||
|
||||
@@ -28,8 +28,8 @@ const fakePayload = (integrations: Record<string, unknown> = {}) =>
|
||||
|
||||
describe('statistics page title', () => {
|
||||
test('tab title in the admin language, with the title suffix', () => {
|
||||
expect(adminDocumentTitle(ipalT(tFor('pl'), 'statsTitle'), '- Payload')).toBe('Statystyki - Payload')
|
||||
expect(adminDocumentTitle(ipalT(tFor('en'), 'statsTitle'), '- Acme')).toBe('Statistics - Acme')
|
||||
expect(adminDocumentTitle(iaplT(tFor('pl'), 'statsTitle'), '- Payload')).toBe('Statystyki - Payload')
|
||||
expect(adminDocumentTitle(iaplT(tFor('en'), 'statsTitle'), '- Acme')).toBe('Statistics - Acme')
|
||||
expect(adminDocumentTitle('Statystyki', '')).toBe('Statystyki')
|
||||
})
|
||||
})
|
||||
@@ -93,14 +93,14 @@ describe('favicon check', () => {
|
||||
})
|
||||
|
||||
test('warnings read in both admin languages with the size filled in', () => {
|
||||
expect(ipalT(tFor('en'), 'faviconTooSmall', { height: 32, width: 32 })).toContain('32×32 px')
|
||||
expect(ipalT(tFor('pl'), 'faviconTooSmall', { height: 32, width: 32 })).toBe('Ikona ma 32×32 px. Google pokazuje ikony od 48×48 px; wgraj większą.')
|
||||
expect(ipalT(tFor('pl'), 'faviconNotSquare', { height: 96, width: 192 })).toContain('192×96 px')
|
||||
expect(iaplT(tFor('en'), 'faviconTooSmall', { height: 32, width: 32 })).toContain('32×32 px')
|
||||
expect(iaplT(tFor('pl'), 'faviconTooSmall', { height: 32, width: 32 })).toBe('Ikona ma 32×32 px. Google pokazuje ikony od 48×48 px; wgraj większą.')
|
||||
expect(iaplT(tFor('pl'), 'faviconNotSquare', { height: 96, width: 192 })).toContain('192×96 px')
|
||||
})
|
||||
|
||||
test('Site settings shows the check under the site icon', async () => {
|
||||
const i18n = { defaultLocale: 'en', locales: [{ code: 'en', label: 'English' }] }
|
||||
const config = await ipalKit({ access: { authCollection: 'users' }, i18n, twoFactor: false } as never)({
|
||||
const config = await iapl({ access: { authCollection: 'users' }, i18n, twoFactor: false } as never)({
|
||||
collections: [
|
||||
{ slug: 'users', auth: true, fields: [] },
|
||||
{ slug: 'media', fields: [], upload: true },
|
||||
|
||||
Reference in New Issue
Block a user