Skip to content

Fix admin claims row click to load detail panel#363

Merged
GsCommand merged 1 commit into
mainfrom
codex/fix-admin-claims-dashboard-detail-panel
May 27, 2026
Merged

Fix admin claims row click to load detail panel#363
GsCommand merged 1 commit into
mainfrom
codex/fix-admin-claims-dashboard-detail-panel

Conversation

@GsCommand
Copy link
Copy Markdown
Contributor

Motivation

  • The admin claims UI displayed claim rows but clicking a row did not surface the claim detail because the detail fetch was brittle about auth headers and response shape and failed silently.
  • Provide clear feedback for loading and error states so operators can diagnose and continue testing payments/checkout flows.

Description

  • Updated public/admin/claims.html to send both Authorization: Bearer <ADMIN_API_KEY> and x-admin-api-key: <ADMIN_API_KEY> for admin list and detail requests to match server auth expectations.
  • Made the detail loader resilient to both response shapes (with and without top-level ok) and require only a present claim object to render.
  • Added an explicit loading state (Loading claim detail...), an error state formatted as Claim detail failed: <http status> — <error/status/message>, and safe console.debug lines for selected claimId, endpoint, HTTP status, and response status/error (without logging secrets).
  • Improved claim card affordance with hover and selected styling and preserved existing detail rendering (claimId, tenant, wallet, status, payment status, agent count, payment controls, agents/cards, events, transitions).

Testing

  • Ran npm test and all tests passed (87 passed, 0 failed).
  • Ran npm run check:links and it reported all local links/assets resolved.
  • Ran cd examples/webhook-auto-verify && npm run check and the example checks completed successfully.

Codex Task

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 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 27, 2026 4:21am
commandlayer-org Ready Ready Preview, Comment May 27, 2026 4:21am
commandlayer-org111 Ready Ready Preview, Comment May 27, 2026 4:21am

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