A governance repo for all things of the hypercollective

No links for blobs #8

open opened by kzoeps.com

when viewing the data for org.hypercerts.def#smallImage or largeImage it has the link but then it doesnt link to any image just the ref is provided and the image is displayed. it would be nice to have a proper link to it just like pdsls.dev


Type: feature Project: impactindexer

Fixed! The $link CID in blob objects is now rendered as a clickable link that opens the blob directly in a new tab.

Changes made to JsonView.tsx:

  1. Added a BlobLink component that resolves the PDS URL and renders the CID as a link to {pdsUrl}/xrpc/com.atproto.sync.getBlob?did={did}&cid={cid}
  2. Modified JsonNode to detect when we're inside a blob ref object and pass that context down
  3. When rendering the $link field inside a blob ref, it's now linkified just like DIDs and AT-URIs

This works for all blob types (images, audio, and any other blobs) in the data explorer. Similar to how pdsls.dev shows blob links.

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:u7h3dstby64di67bxaotzxcz/sh.tangled.repo.issue/3mdl3cwl2vh2m