feat(platform): contacts span guildCount metadata (Phase 594)
Extend contacts.request, accept, decline, block, and unblock span ends with guildCount for hub-depth telemetry parity. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -55,6 +55,8 @@ Expose a single `EventEmitter` API the UI drives over IPC (`apps/pearcord/index.
|
|||||||
|
|
||||||
**v0.8.528 (Phase 565):** DM UI live region `#dm-panel-live`; **dm-errors** excludes voice/stage/screen/soundboard/presence/discovery/contacts bleed; clipboard `dmPanelLiveBusy`/`channelDmConversationCount`. Bundle: `npm run test:phase565-dms`. See [DM.md](../../docs/DM.md).
|
**v0.8.528 (Phase 565):** DM UI live region `#dm-panel-live`; **dm-errors** excludes voice/stage/screen/soundboard/presence/discovery/contacts bleed; clipboard `dmPanelLiveBusy`/`channelDmConversationCount`. Bundle: `npm run test:phase565-dms`. See [DM.md](../../docs/DM.md).
|
||||||
|
|
||||||
|
**v0.8.557 (Phase 594):** Contacts hub live region `#contacts-hub-panel-live`; **contacts-errors** excludes audit/compliance/slash/webhook/bot/automation/attachment/embed/message/reaction/pin/search/voice/stage/screen/soundboard/presence/discovery bleed; clipboard `contactsHubPanelLiveBusy`; `guildCount` on `contacts.request`/`accept`/`decline`/`block`/`unblock` span ends. Bundle: `npm run test:phase594-contacts`. See [CONTACTS.md](../../docs/CONTACTS.md).
|
||||||
|
|
||||||
**v0.8.527 (Phase 564):** Contacts UI live region `#contacts-panel-live`; **contacts-errors** excludes voice/stage/screen/soundboard/presence/discovery bleed; clipboard `contactsPanelLiveBusy`/`channelContactsAcceptedCount`. Bundle: `npm run test:phase564-contacts`. See [CONTACTS.md](../../docs/CONTACTS.md).
|
**v0.8.527 (Phase 564):** Contacts UI live region `#contacts-panel-live`; **contacts-errors** excludes voice/stage/screen/soundboard/presence/discovery bleed; clipboard `contactsPanelLiveBusy`/`channelContactsAcceptedCount`. Bundle: `npm run test:phase564-contacts`. See [CONTACTS.md](../../docs/CONTACTS.md).
|
||||||
|
|
||||||
**v0.8.556 (Phase 593):** Discovery hub live region `#discovery-hub-panel-live`; **discovery-errors** excludes audit/compliance/slash/webhook/bot/automation/attachment/embed/message/reaction/pin/search/voice/stage/screen/soundboard/presence bleed; clipboard `discoveryHubPanelLiveBusy`; `guildCount` on `discovery.list`/`join`/`filter`/`mesh`/`publish`/`prune` span ends; new `discovery.filter` span. Bundle: `npm run test:phase593-discovery`. See [DISCOVERY.md](../../docs/DISCOVERY.md).
|
**v0.8.556 (Phase 593):** Discovery hub live region `#discovery-hub-panel-live`; **discovery-errors** excludes audit/compliance/slash/webhook/bot/automation/attachment/embed/message/reaction/pin/search/voice/stage/screen/soundboard/presence bleed; clipboard `discoveryHubPanelLiveBusy`; `guildCount` on `discovery.list`/`join`/`filter`/`mesh`/`publish`/`prune` span ends; new `discovery.filter` span. Bundle: `npm run test:phase593-discovery`. See [DISCOVERY.md](../../docs/DISCOVERY.md).
|
||||||
|
|||||||
@@ -1288,7 +1288,8 @@ class PearcordPlatform extends EventEmitter {
|
|||||||
peerDisplayNameLen: String(peerDisplayName || '').trim().length,
|
peerDisplayNameLen: String(peerDisplayName || '').trim().length,
|
||||||
pendingOutCount: pendingOut.length,
|
pendingOutCount: pendingOut.length,
|
||||||
acceptedCount: accepted.length,
|
acceptedCount: accepted.length,
|
||||||
activeChannelId: this.activeChannelId
|
activeChannelId: this.activeChannelId,
|
||||||
|
guildCount: (this.guilds || []).length
|
||||||
})
|
})
|
||||||
return row
|
return row
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -1318,7 +1319,8 @@ class PearcordPlatform extends EventEmitter {
|
|||||||
accepted: row?.status === 'accepted' || row?.status === 'friend',
|
accepted: row?.status === 'accepted' || row?.status === 'friend',
|
||||||
acceptedCount: accepted.length,
|
acceptedCount: accepted.length,
|
||||||
pendingInCount: pendingIn.length,
|
pendingInCount: pendingIn.length,
|
||||||
activeChannelId: this.activeChannelId
|
activeChannelId: this.activeChannelId,
|
||||||
|
guildCount: (this.guilds || []).length
|
||||||
})
|
})
|
||||||
return row
|
return row
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -1347,7 +1349,8 @@ class PearcordPlatform extends EventEmitter {
|
|||||||
declined: true,
|
declined: true,
|
||||||
pendingInCount: pendingIn.length,
|
pendingInCount: pendingIn.length,
|
||||||
pendingOutCount: pendingOut.length,
|
pendingOutCount: pendingOut.length,
|
||||||
activeChannelId: this.activeChannelId
|
activeChannelId: this.activeChannelId,
|
||||||
|
guildCount: (this.guilds || []).length
|
||||||
})
|
})
|
||||||
return row
|
return row
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -1379,7 +1382,8 @@ class PearcordPlatform extends EventEmitter {
|
|||||||
spanKind: 'contacts.block',
|
spanKind: 'contacts.block',
|
||||||
peerUserId: peerUserId || null,
|
peerUserId: peerUserId || null,
|
||||||
blockedCount: blocked.length,
|
blockedCount: blocked.length,
|
||||||
activeChannelId: this.activeChannelId
|
activeChannelId: this.activeChannelId,
|
||||||
|
guildCount: (this.guilds || []).length
|
||||||
})
|
})
|
||||||
return row
|
return row
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@@ -1405,7 +1409,8 @@ class PearcordPlatform extends EventEmitter {
|
|||||||
spanKind: 'contacts.unblock',
|
spanKind: 'contacts.unblock',
|
||||||
peerUserId: peerUserId || null,
|
peerUserId: peerUserId || null,
|
||||||
blockedCount: blocked.length,
|
blockedCount: blocked.length,
|
||||||
activeChannelId: this.activeChannelId
|
activeChannelId: this.activeChannelId,
|
||||||
|
guildCount: (this.guilds || []).length
|
||||||
})
|
})
|
||||||
return row
|
return row
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user