IAPL rename: docs, agent guide, skills, reference site and starter on the new names; changelog draft
- docs, AGENT.md, the 16 skills, PROGRAMISTA and README use the preferred names (scripted, same list of forms); past CHANGELOG entries and the proposals in docs/dev are not rewritten - AGENT.md: 'Names: IAPL and ipal-kit' — old name, new name, state in 1.x; what is not renamed; storageNames - iapl-upgrade '→ 1.17.0', PROGRAMISTA §6 item 72, CHANGELOG 1.17.0 (draft): nothing required - env.md, doctor.md (legacy-names, storage-names), stats.md, security.md, project-starter.md, iapl-reference, iapl-setup - skill scripts read ipal-audit-skip and IPAL_IP_HEADER too; audit rule ids stay what they were - reference site: iapl(), iapl-doctor.json, iapl-* skills, storageNames: 'iapl'; INDEX.md regenerated Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
425fac14fb
commit
b91984fbcd
@@ -1,9 +1,9 @@
|
||||
import type { Config, Plugin } from 'payload'
|
||||
|
||||
/**
|
||||
* Test fixture, on only with E2E_LATE_STAFF=1 (e2e/late-staff.spec.ts): a plugin listed AFTER ipalKit that adds
|
||||
* Test fixture, on only with E2E_LATE_STAFF=1 (e2e/late-staff.spec.ts): a plugin listed AFTER iapl that adds
|
||||
* a staff collection (`late-staff`, named in `access.staffCollections`) and a visitor collection with open
|
||||
* sign-up. ipalKit has already run when these collections appear, so it must give them its account rules when
|
||||
* sign-up. iapl has already run when these collections appear, so it must give them its account rules when
|
||||
* the config goes live — and it must do so in a BUILT site too, where bundlers rename every function.
|
||||
* Never part of a real site: the starter drops `e2e/` and the lines that use this file.
|
||||
*/
|
||||
@@ -13,7 +13,7 @@ export const E2E_LATE_STAFF = process.env.E2E_LATE_STAFF === '1'
|
||||
export const E2E_STAFF_SLUGS = ['late-staff', 'e2e-crew', 'e2e-late-text', 'e2e-staff', 'e2e-team', 'e2e-copy', 'e2e-copy-own-rules', 'e2e-copy-cross-op', 'e2e-copy-values', 'e2e-copy-team-admin', 'e2e-copy-opt-out']
|
||||
|
||||
/**
|
||||
* Listed BEFORE ipalKit: a staff collection of the project's own, without rules, whose roles are the plugin's values
|
||||
* Listed BEFORE iapl: a staff collection of the project's own, without rules, whose roles are the plugin's values
|
||||
* PLUS one more. `admin` on an account of it makes a plugin admin, so its accounts must not hand that value out.
|
||||
*/
|
||||
export const e2eEarlyStaff: Plugin = (config: Config) =>
|
||||
@@ -56,7 +56,7 @@ export const e2eLateStaff: Plugin = (config: Config) =>
|
||||
collections: [
|
||||
...(config.collections ?? []),
|
||||
...copies(config),
|
||||
// no access rules at all: Payload's defaults ("any logged-in user") are what ipalKit must replace
|
||||
// no access rules at all: Payload's defaults ("any logged-in user") are what iapl must replace
|
||||
{ slug: 'late-staff', auth: true, fields: [{ name: 'roles', type: 'select', hasMany: true, options: ['user', 'editor', 'admin'], saveToJWT: true }], versions: true },
|
||||
// a late staff collection whose `roles` is a text field: any value can be written there, `admin` included
|
||||
{ slug: 'e2e-late-text', auth: true, fields: [{ name: 'roles', type: 'text', hasMany: true }] },
|
||||
|
||||
@@ -4,7 +4,7 @@ import { randomUUID } from 'node:crypto'
|
||||
import { secondTestAdmin, totp } from './totp'
|
||||
|
||||
/**
|
||||
* The account rules on a BUILT site, for a staff collection that a plugin listed after ipalKit adds
|
||||
* The account rules on a BUILT site, for a staff collection that a plugin listed after iapl adds
|
||||
* (e2e/late-staff-fixture.ts). Unit tests run unminified code; a production bundle renames every function, and a
|
||||
* rule that told Payload's default access function by its name was silently skipped there. Run it against both
|
||||
* bundlers (README "Production check"):
|
||||
|
||||
@@ -5,7 +5,7 @@ import { totp } from './totp'
|
||||
|
||||
/**
|
||||
* The `back` link of the 2FA screens (twoFactor.safeBack, security.md). The 2FA package sends the browser to
|
||||
* `back` after a valid code; ipal-kit checks the value first. A prepared link must end on the admin root:
|
||||
* `back` after a valid code; IAPL checks the value first. A prepared link must end on the admin root:
|
||||
* no script in the panel, no other site. Run against a built site with the test admin (create-test-admin.ts).
|
||||
*
|
||||
* Two verify attempts for the test admin here; the smoke spec makes two more (the limit is 5 in 10 minutes).
|
||||
|
||||
Reference in New Issue
Block a user