Skip to content

fix(dir): add TrustStatus & Verified badge - #1899

Merged
csirmazbendeguz merged 1 commit into
mainfrom
fix/trust-badges
Jul 28, 2026
Merged

csirmazbendeguz merged 1 commit into
mainfrom
fix/trust-badges

Conversation

@csirmazbendeguz

@csirmazbendeguz csirmazbendeguz commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

right now, the trusted badge on the AI card is displayed based on the catalog entry's trustManifest field

Screenshot 2026-07-27 at 17 19 11

this is incorrect (same reason as described in #1896 , it only checks if there's a signature, but doesn't check the signature's status )


this PR adds the agntcy.dir.trust.v1.Status metadata field to catalog entries (with trusted status calculated correctly):

"agntcy.dir.trust.v1.Status": {
  "trusted": true,
  "verified": true
}

and it also wires the UI to display the badge based on this instead (if true, display the badge)


this PR also adds a "Verified" badge for verified records. it's the same as the current "Trusted" badge, but in green. "Verified" in this case means the same as in #1896 - that the name verification passed

let me know if that's ok? or maybe we don't need a badge for that?

@github-actions github-actions Bot added the size/S Denotes a PR that changes 50-199 lines label Jul 27, 2026
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.57143% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
api/catalog/v1/catalog.go 92.0% 1 Missing and 1 partial ⚠️
server/database/gorm/catalog.go 80.0% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@github-actions github-actions Bot added size/M Denotes a PR that changes 200-999 lines and removed size/S Denotes a PR that changes 50-199 lines labels Jul 27, 2026
@csirmazbendeguz
csirmazbendeguz marked this pull request as ready for review July 27, 2026 15:31
@csirmazbendeguz
csirmazbendeguz requested a review from a team as a code owner July 27, 2026 15:31
@csirmazbendeguz csirmazbendeguz changed the title fix(dir): add TrustStatus to catalog entries fix(dir): add TrustStatus & Verified badge Jul 27, 2026
@csirmazbendeguz
csirmazbendeguz merged commit 381fbe8 into main Jul 28, 2026
34 checks passed
@csirmazbendeguz
csirmazbendeguz deleted the fix/trust-badges branch July 28, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 200-999 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants