Fix publish-agent-cards repair flow and redesign admin claims dashboard#311
Merged
GsCommand merged 1 commit intoMay 23, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
cards_publishedwhile admin UI showed a publish failure and card URLs were not surfaced.Description
POST /api/admin/publish-agent-cardsto use transactional writes (BEGIN/COMMIT/ROLLBACK where available), perform card/event/transition writes before updatingclaim_requests.status, and provide a repair path forcards_publishedclaims with missing/incomplete rows.CLAIM_NOT_APPROVED,AGENTS_NOT_FOUND,AGENT_CARD_PUBLISH_FAILED) and a safe debug payload emitted only outside production.GET /api/admin/claimto includecardsfromagent_cardsordered by ENS so the UI can show card URLs.public/admin/claims.htmlinto a simple light-themed, responsive two-column operator dashboard (max-width ~1180px) with auth card, claims list, detail pane, status badges, pipeline visualization, status-aware action buttons, visible card URLs with copy/open actions, timeline events/transitions, and a collapsible raw-JSON toggle.cardspayload (tests/api-admin-publish-agent-cards.test.jsandtests/api-admin-claims.test.js).Testing
npm test, all tests passed (92 passed, 0 failed).cd examples/webhook-auto-verify && npm run check, which completed successfully.cardsin admin claim detail; all succeeded.Codex Task