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
@@ -4,7 +4,7 @@ import { describe, expect, test } from 'vitest'
|
||||
|
||||
import { bottomOverlap } from '../src/modules/consent/CookieButton.js'
|
||||
import { TOTP_TEXTS } from '../src/modules/security/totp/totpTexts.js'
|
||||
import { ipalKit } from '../src/plugin.js'
|
||||
import { iapl } from '../src/plugin.js'
|
||||
import { withTotpParts } from './helpers.js'
|
||||
|
||||
const i18n = { defaultLocale: 'pl', locales: [{ code: 'pl', label: 'Polski' }, { code: 'en', label: 'English' }] }
|
||||
@@ -39,8 +39,8 @@ const base = (translations?: Record<string, unknown>): Config =>
|
||||
type Translations = Record<string, { totpPlugin: { setup: Record<string, string>; verify: { title: string } } }>
|
||||
|
||||
describe('2FA texts', () => {
|
||||
test('ipal-kit texts go over the package, the project over both; screens get a tab title', async () => {
|
||||
const config = await ipalKit({ i18n, twoFactor: { issuer: 'Acme', plugin: fakeTotp } } as never)(
|
||||
test('IAPL texts go over the package, the project over both; screens get a tab title', async () => {
|
||||
const config = await iapl({ i18n, twoFactor: { issuer: 'Acme', plugin: fakeTotp } } as never)(
|
||||
base({ en: { totpPlugin: { verify: { title: 'Project check' } } } }),
|
||||
)
|
||||
const t = config.i18n!.translations as Translations
|
||||
@@ -53,7 +53,7 @@ describe('2FA texts', () => {
|
||||
})
|
||||
|
||||
test("texts: false keeps the package's", async () => {
|
||||
const config = await ipalKit({ i18n, twoFactor: { issuer: 'Acme', plugin: fakeTotp, texts: false } } as never)(base())
|
||||
const config = await iapl({ i18n, twoFactor: { issuer: 'Acme', plugin: fakeTotp, texts: false } } as never)(base())
|
||||
expect((config.i18n!.translations as Translations).pl.totpPlugin.verify.title).toBe('Weryfikacja')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user