Skip to content

fix: atproto plugin settings page blocks table missing page_action_id - #3647

Merged
ascorbic merged 2 commits into
emdash-cms:mainfrom
nozamdavid:patch-1
Sep 30, 2026
Merged

ascorbic merged 2 commits into
emdash-cms:mainfrom
nozamdavid:patch-1

Conversation

@nozamdavid

@nozamdavid nozamdavid commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Fix atproto plugin settings page failing to load

Closes #

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • User-visible strings in the admin UI are wrapped for translation (if applicable). Do not include messages.po changes except in translation PRs — a workflow extracts catalogs on merge to main.
  • I have added and reviewed the user-facing changeset (if this PR changes a published package)
  • I have included screenshots below if this PR changes the UI

Screenshots / test output

image image

@changeset-bot

changeset-bot Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3a2659d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@emdash-cms/plugin-atproto Patch

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

@github-actions github-actions Bot added area/plugins size/XS review/needs-review No maintainer or bot review yet labels Sep 29, 2026
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. Changeset. The author checked the changeset box, but no .changeset/*.md covers @emdash-cms/plugin-atproto. Without a changeset the fix will not trigger a release.
  2. Regression evidence. There is no test exercising the admin status page. A regression test that invokes plugin.routes.admin.handler with a page-load interaction and verifies the table block includes page_action_id (or passes validateBlockResponse) would protect against this regressing.

The code fix itself is clean and should land once those two items are addressed.

Comment thread packages/plugins/atproto/src/plugin.ts Resolved
Comment thread packages/plugins/atproto/src/plugin.ts Resolved
@emdashbot emdashbot Bot added review/awaiting-author Reviewed; waiting on the author to respond and removed review/needs-review No maintainer or bot review yet labels Sep 29, 2026
@nozamdavid

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Sep 29, 2026
@github-actions github-actions Bot added cla: signed review/needs-rereview New commits since the last review cla: needed and removed cla: needed review/awaiting-author Reviewed; waiting on the author to respond cla: signed labels Sep 29, 2026

@ascorbic ascorbic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@github-actions github-actions Bot added review/approved Approved; no new commits since query-count changed PR diff modifies query-count snapshot files and removed review/needs-rereview New commits since the last review labels Sep 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Query-count snapshot changes

44 routes changed, total Δ +44 queries.

SQLite

Route Before After Δ
GET / (cold) 5 6 +1
GET / (warm) 5 6 +1
GET /category/development (cold) 10 11 +1
GET /category/development (warm) 9 10 +1
GET /contributors (cold) 5 6 +1
GET /contributors (warm) 5 6 +1
GET /contributors-naive (cold) 12 13 +1
GET /contributors-naive (warm) 12 13 +1
GET /pages/about (cold) 5 6 +1
GET /pages/about (warm) 5 6 +1
GET /posts (cold) 5 6 +1
GET /posts (warm) 5 6 +1
GET /posts/building-for-the-long-term (cold) 15 16 +1
GET /posts/building-for-the-long-term (warm) 14 15 +1
GET /related (cold) 8 9 +1
GET /related (warm) 8 9 +1
GET /related-baseline (cold) 5 6 +1
GET /related-baseline (warm) 5 6 +1
GET /search (cold) 10 11 +1
GET /search (warm) 10 11 +1
GET /tag/webdev (cold) 9 10 +1
GET /tag/webdev (warm) 9 10 +1

D1

Route Before After Δ
GET / (cold) 20 21 +1
GET / (warm) 9 10 +1
GET /category/development (cold) 25 26 +1
GET /category/development (warm) 13 14 +1
GET /contributors (cold) 20 21 +1
GET /contributors (warm) 9 10 +1
GET /contributors-naive (cold) 27 28 +1
GET /contributors-naive (warm) 16 17 +1
GET /pages/about (cold) 20 21 +1
GET /pages/about (warm) 9 10 +1
GET /posts (cold) 20 21 +1
GET /posts (warm) 9 10 +1
GET /posts/building-for-the-long-term (cold) 26 27 +1
GET /posts/building-for-the-long-term (warm) 15 16 +1
GET /related (cold) 23 24 +1
GET /related (warm) 12 13 +1
GET /related-baseline (cold) 20 21 +1
GET /related-baseline (warm) 9 10 +1
GET /search (cold) 25 26 +1
GET /search (warm) 14 15 +1
GET /tag/webdev (cold) 25 26 +1
GET /tag/webdev (warm) 13 14 +1

Comparing snapshot files between base and head. Updated automatically on each push.

@pkg-pr-new

pkg-pr-new Bot commented Sep 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@3647

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@3647

@emdash-cms/auth-atproto

npm i https://pkg.pr.new/@emdash-cms/auth-atproto@3647

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@3647

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@3647

@emdash-cms/contentful-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/contentful-to-portable-text@3647

emdash

npm i https://pkg.pr.new/emdash@3647

create-emdash

npm i https://pkg.pr.new/create-emdash@3647

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@3647

@emdash-cms/plugin-cli

npm i https://pkg.pr.new/@emdash-cms/plugin-cli@3647

@emdash-cms/plugin-test

npm i https://pkg.pr.new/@emdash-cms/plugin-test@3647

@emdash-cms/plugin-types

npm i https://pkg.pr.new/@emdash-cms/plugin-types@3647

@emdash-cms/registry-client

npm i https://pkg.pr.new/@emdash-cms/registry-client@3647

@emdash-cms/registry-lexicons

npm i https://pkg.pr.new/@emdash-cms/registry-lexicons@3647

@emdash-cms/registry-loader

npm i https://pkg.pr.new/@emdash-cms/registry-loader@3647

@emdash-cms/registry-moderation

npm i https://pkg.pr.new/@emdash-cms/registry-moderation@3647

@emdash-cms/registry-verification

npm i https://pkg.pr.new/@emdash-cms/registry-verification@3647

@emdash-cms/sandbox-workerd

npm i https://pkg.pr.new/@emdash-cms/sandbox-workerd@3647

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@3647

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@3647

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@3647

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@3647

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@3647

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@3647

@emdash-cms/plugin-field-kit

npm i https://pkg.pr.new/@emdash-cms/plugin-field-kit@3647

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@3647

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@3647

commit: 3a2659d

@ascorbic

Copy link
Copy Markdown
Member

Note: the query count increase is because of a PR that dropped the count being merged to main

@ascorbic
ascorbic merged commit 998b983 into emdash-cms:main Sep 30, 2026
47 of 49 checks passed
@emdashbot

emdashbot Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Thanks for contributing to EmDash! 🎉

Join the EmDash Discord, then run /link to connect your GitHub account and claim the Contributor role.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/plugins cla: needed query-count changed PR diff modifies query-count snapshot files review/approved Approved; no new commits since size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants