From a5691046203a7117c6ae698f840c161c73fb471a Mon Sep 17 00:00:00 2001 From: archipelago Date: Tue, 16 Jun 2026 14:02:16 -0400 Subject: [PATCH] fix(web5): carry node DID through to Connected Nodes routing The backend already sends did in federation peer lists, but the Peer type omitted it and federationNodeToPeer() dropped it when mapping. Add did?: string to Peer and pass node.did through, so trusted/observer node rows route to Federation/Mesh by their real DID (falling back to pubkey/onion) instead of failing the build on a missing property. Co-Authored-By: Claude Opus 4.8 (1M context) --- neode-ui/src/views/web5/Web5ConnectedNodes.vue | 1 + neode-ui/src/views/web5/types.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/neode-ui/src/views/web5/Web5ConnectedNodes.vue b/neode-ui/src/views/web5/Web5ConnectedNodes.vue index aaaf526a..834280c2 100644 --- a/neode-ui/src/views/web5/Web5ConnectedNodes.vue +++ b/neode-ui/src/views/web5/Web5ConnectedNodes.vue @@ -408,6 +408,7 @@ function federationNodeToPeer(node: FederationNode): Peer { return { onion: node.onion, pubkey: node.pubkey, + did: node.did, name: node.name || `Federation: ${node.did?.slice(0, 16) || 'node'}`, } } diff --git a/neode-ui/src/views/web5/types.ts b/neode-ui/src/views/web5/types.ts index 4730abe7..a6af7a48 100644 --- a/neode-ui/src/views/web5/types.ts +++ b/neode-ui/src/views/web5/types.ts @@ -159,4 +159,4 @@ export interface DwnMessageEntry { export type VisibilityLevel = 'hidden' | 'discoverable' | 'public' -export type Peer = { onion: string; pubkey: string; name?: string } +export type Peer = { onion: string; pubkey: string; name?: string; did?: string }