Repository navigation
fix: atproto plugin settings page blocks table missing page_action_id - #3647
Conversation
🦋 Changeset detectedLatest commit: 3a2659d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
All contributors have signed the CLA ✍️ ✅ |
There was a problem hiding this comment.
The approach is right: the AT Protocol plugin's status page table is missing a required page_action_id, which causes validateBlockResponse to reject the response and the settings page to fail to load. Adding the field fixes that validation failure, and the id "recent_syncs" is consistent with the existing admin surface.
I checked the diff, the TableBlock contract in packages/blocks/src/types.ts, the validation rules in packages/blocks/src/validation.ts, and how the runtime validates plugin admin responses (packages/core/src/emdash-runtime.ts). The code change is correct.
However, the PR is missing two AGENTS.md requirements for a published-package bug fix:
- Changeset. The author checked the changeset box, but no
.changeset/*.mdcovers@emdash-cms/plugin-atproto. Without a changeset the fix will not trigger a release. - Regression evidence. There is no test exercising the admin status page. A regression test that invokes
plugin.routes.admin.handlerwith a page-load interaction and verifies the table block includespage_action_id(or passesvalidateBlockResponse) would protect against this regressing.
The code fix itself is clean and should land once those two items are addressed.
|
I have read the CLA Document and I hereby sign the CLA |
Query-count snapshot changes44 routes changed, total Δ +44 queries. SQLite
D1
Comparing snapshot files between base and head. Updated automatically on each push. |
@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-test
@emdash-cms/plugin-types
@emdash-cms/registry-client
@emdash-cms/registry-lexicons
@emdash-cms/registry-loader
@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: |
|
Note: the query count increase is because of a PR that dropped the count being merged to main |
|
Thanks for contributing to EmDash! 🎉 Join the EmDash Discord, then run |
What does this PR do?
Fix atproto plugin settings page failing to load
Closes #
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.Screenshots / test output