Add build-time admin.locales allowlist - #3056
Conversation
CompletedFix the failing Format check on the candidate branch for issue #2973 (admin locale allowlist).
Outcome: Revised the candidate for issue #2973 to fix the failing Format check. Cause: the changeset `.changeset/admin-locale-allowlist.md` had a JS code block indented with spaces instead of tabs, so `pnpm format:check` (oxfmt + prettier) failed on CI. Fix: changed the code-block indentation in the changeset from spaces to tabs. No source code was altered. Verification:
The updated candidate has been published to `bot/fix-2973`. The existing draft PR is #3056. Mode: revise View live dashboard · Run: |
Scope checkThis PR changes 535 lines across 7 files. Large PRs are harder to review and more likely to be closed without review. If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs. See CONTRIBUTING.md for contribution guidelines. |
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/auth-atproto
@emdash-cms/blocks
@emdash-cms/cloudflare
@emdash-cms/contentful-to-portable-text
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/plugin-cli
@emdash-cms/plugin-types
@emdash-cms/registry-client
@emdash-cms/registry-lexicons
@emdash-cms/registry-moderation
@emdash-cms/registry-verification
@emdash-cms/sandbox-workerd
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-field-kit
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
3d65501 to
4b123fb
Compare
🦋 Changeset detectedLatest commit: fc2fec1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 17 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
FailedInvestigate and fix the E2E Cloudflare failure on the admin-locales candidate (#2973)
Outcome: I investigated the failing E2E Cloudflare (2/8) check on the #2973 candidate and determined it is not caused by the admin locale allowlist changes. **Reproduction**
**Diagnosis** **Verification**
**Action taken** Mode: revise View live dashboard · Run: |
4b123fb to
99ceab5
Compare
Timed outPlaywright browser installed; now run the reported E2E shard locally to reproduce the failure and gather logs.
Outcome: Timeout checkpoint summary Investigated the staged candidate for #2973 (build-time admin locale allowlist). What I checked
Current blocker
Exact remaining work before publishing
The conversation and workspace are saved. A maintainer can continue with `@emdashbot retry`. Mode: revise View live dashboard · Run: |
FailedRevise admin locale allowlist so runtime locale filtering works in production builds. Candidate published to bot/fix-2973.
Outcome: Investigated the E2E failure reported on PR #3056 and revised the `admin.locales` implementation. **E2E diagnosis** **Revision made**
**Verification**
Candidate branch `bot/fix-2973` published. Mode: revise View live dashboard · Run: |
|
@emdashbot retry |
99ceab5 to
7d14918
Compare
FailedInvestigate E2E failures on the #2973 candidate (admin locale allowlist) and revise the fix where needed.
Outcome: Investigated the failing E2E checks reported on the #2973 candidate (draft PR #3056). **What failed**
**Reproduction**
**Conclusion** **Verification of the candidate**
**Action taken** Mode: revise View live dashboard · Run: |
Re-publish unchanged. The failing E2E shard 2/8 reproduces on current main and is unrelated to locale changes. EmDash-Run: 5ce1e733-fcb2-4705-824a-bf88039a7fe8
7d14918 to
fc2fec1
Compare
What does this PR do?
Implements #2973.
Adds
emdash({ admin: { locales: ["en"] } })to ship only the admin UI locales a deployment needs. Unlisted locales still fall back to English at runtime, but their message catalogs are excluded from the bundle.Includes validation, runtime filtering of the locale switcher, a Vite resolver plugin that redirects both source-style and hashed-dist locale imports, and tests. A changeset is included for both
emdashand@emdash-cms/admin.Closes #2973.
A candidate change the reporter confirmed against their own site via the preview build:
Opened automatically by emdashbot as a draft. A maintainer must review before merge.
Type of change
Checklist
pnpm typecheckpassespnpm lintpassespnpm testpasses (or targeted tests for my change)pnpm formathas been runmessages.pochanges except in translation PRs — a workflow extracts catalogs on merge tomain.AI-generated code disclosure
Screenshots / test output