Skip to content

Add Publish agent cards button to admin claims UI#309

Merged
GsCommand merged 2 commits into
mainfrom
codex/verify-real-publish-agent-cards-button-in-claims.html
May 23, 2026
Merged

Add Publish agent cards button to admin claims UI#309
GsCommand merged 2 commits into
mainfrom
codex/verify-real-publish-agent-cards-button-in-claims.html

Conversation

@GsCommand
Copy link
Copy Markdown
Contributor

Motivation

  • Approved claims in public/admin/claims.html only showed a placeholder next step instead of a real publish action, so the admin UI needed a real button wired to the publish endpoint.
  • The intent is to enable admins to trigger publishing of agent cards from the claims UI by POSTing to /api/admin/publish-agent-cards without changing backend logic.
  • I attempted to verify whether PR Add admin-controlled agent card publishing from approved claims #306 was merged to main, but this checkout has no configured remote so a direct comparison against main was not possible.

Description

  • Replaced the approved-claim placeholder text with a real Publish agent cards button in public/admin/claims.html.
  • Added a frontend helper publishAgentCards(claimId) that issues POST /api/admin/publish-agent-cards with payload { claimId, actor: 'admin' } and reuses the existing error panel and refresh flow.
  • Did not modify any backend logic or add Stripe; the backend still exposes the cards_published status constant.
  • Modified file: public/admin/claims.html.

Testing

  • Ran the project test suite with npm test and all tests passed (80 passing, 0 failing).

Codex Task

@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
commandlayer-commandlayer-org Ready Ready Preview, Comment May 23, 2026 9:20pm
commandlayer-org Ready Ready Preview, Comment May 23, 2026 9:20pm
commandlayer-org111 Ready Ready Preview, Comment May 23, 2026 9:20pm

Request Review

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant