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
-4
@@ -9,7 +9,7 @@ import { serializeConsent } from '../src/modules/consent/storage.js'
|
||||
import { buildStatsEndpoint } from '../src/modules/stats/endpoint.js'
|
||||
import { dayOf, deviceFromUa, isBot, referrerHost, sanitizePath } from '../src/modules/stats/parse.js'
|
||||
import { lastDays, summarize } from '../src/modules/stats/summarize.js'
|
||||
import { ipalKit } from '../src/plugin.js'
|
||||
import { iapl } from '../src/plugin.js'
|
||||
|
||||
const CHROME = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0 Safari/537.36'
|
||||
const VID = 'a'.repeat(32)
|
||||
@@ -178,13 +178,13 @@ describe('stats — plugin wiring', () => {
|
||||
const i18n: I18nConfig = { defaultLocale: 'pl', locales: [{ code: 'pl', label: 'Polski' }] }
|
||||
|
||||
test('off by default', async () => {
|
||||
const config = await ipalKit({ i18n, twoFactor: false })(base())
|
||||
const config = await iapl({ i18n, twoFactor: false })(base())
|
||||
expect(config.collections?.some((c) => c.slug === 'stats-visits')).toBe(false)
|
||||
expect(config.endpoints?.some((e) => e.path === '/ipal/hit')).toBe(false)
|
||||
})
|
||||
|
||||
test('stats: true adds the collection, endpoint, view, nav link and dashboard card', async () => {
|
||||
const config = await ipalKit({ adminRoute: '/its', i18n, stats: true, twoFactor: false })(base())
|
||||
const config = await iapl({ adminRoute: '/its', i18n, stats: true, twoFactor: false })(base())
|
||||
expect(config.collections?.some((c) => c.slug === 'stats-visits')).toBe(true)
|
||||
expect(config.endpoints?.some((e) => e.path === '/ipal/hit' && e.method === 'post')).toBe(true)
|
||||
const components = config.admin?.components
|
||||
@@ -194,7 +194,7 @@ describe('stats — plugin wiring', () => {
|
||||
})
|
||||
|
||||
test('dashboard: false leaves the dashboard alone', async () => {
|
||||
const config = await ipalKit({ i18n, stats: { dashboard: false }, twoFactor: false })(base())
|
||||
const config = await iapl({ i18n, stats: { dashboard: false }, twoFactor: false })(base())
|
||||
expect(JSON.stringify(config.admin?.components?.beforeDashboard)).not.toContain('StatsWidget')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user