Skip to content

Fix admin claims layout overflow and published agent card URL routing#313

Merged
GsCommand merged 1 commit into
mainfrom
codex/fix-admin-dashboard-overflow-and-card-urls
May 23, 2026
Merged

Fix admin claims layout overflow and published agent card URL routing#313
GsCommand merged 1 commit into
mainfrom
codex/fix-admin-dashboard-overflow-and-card-urls

Conversation

@GsCommand
Copy link
Copy Markdown
Contributor

Motivation

  • Ensure published agent card pretty-URLs like /agent-cards/agents/v1.1.0/trust/tenant.approveagent.eth.json resolve publicly instead of 404s.
  • Fix admin claims detail panel overflow so long strings and tables do not break the dashboard layout.

Description

  • Add a Vercel rewrite so /agent-cards/agents/v1.1.0/trust/:ens(.+).json routes to /api/agent-cards/card?ens=:ens to support ENS names containing dots by default (file: vercel.json).
  • Update api/agent-cards/card.js to derive ENS from a pretty path fallback, strip trailing .json, and preserve existing ens and path query behaviors while returning JSON or a JSON 404 when missing.
  • Revise public/admin/claims.html styles and UI to apply global box-sizing, center and cap container width, use a resilient grid (minmax(280px,360px) minmax(0,1fr)), add .table-scroll wrappers, enable safe wrapping/truncation for long strings, and render compact card URL rows with Open/Copy actions instead of a raw bulleted list.
  • Update the admin card-route test in tests/api-admin-publish-agent-cards.test.js to assert ENS lookup, pretty-path .json stripping, and missing-card 404 behavior.

Testing

  • Ran npm test and all tests passed (95 tests, 0 failures).
  • Ran cd examples/webhook-auto-verify && npm run check which completed successfully.
  • Ran npm run build which failed because the repository has no build script defined (informational only).

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 10:45pm
commandlayer-org Ready Ready Preview, Comment May 23, 2026 10:45pm
commandlayer-org111 Ready Ready Preview, Comment May 23, 2026 10:45pm

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