feat(platform): extend onboarding span metadata for Phase 567 (v0.8.530)

Add activeChannelId on identity.register; textChannelCount and activeChannelId
on guild.create and invite.join.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 15:00:50 -04:00
co-authored by Cursor
parent 427f3cb598
commit 51438b3a01
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -181,6 +181,8 @@ Expose a single `EventEmitter` API the UI drives over IPC (`apps/pearcord/index.
**v0.8.419 (Phase 456):** `session.startup` span ends with `guildCount` + `guildId`; `session.startup error` log. `identity.register` span + `identity.register error`. `guild.open` span end includes `guildId`. `loadGuild` / `createGuild` bust search cache and clear `_lastSearchFromCache`. Bundle: `npm run test:phase456-onboarding-session`. See [SESSION.md](../../docs/SESSION.md). **v0.8.419 (Phase 456):** `session.startup` span ends with `guildCount` + `guildId`; `session.startup error` log. `identity.register` span + `identity.register error`. `guild.open` span end includes `guildId`. `loadGuild` / `createGuild` bust search cache and clear `_lastSearchFromCache`. Bundle: `npm run test:phase456-onboarding-session`. See [SESSION.md](../../docs/SESSION.md).
**v0.8.530 (Phase 567):** Onboarding spans extend — `identity.register`/`guild.create`/`invite.join` `activeChannelId`; `guild.create`/`invite.join` `textChannelCount`. UI `#onboarding-panel-live` + `syncOnboardingLivePanelDuringGuildLoading`; **onboarding-errors** excludes dm/contacts/discovery/invites bleed; clipboard `onboardingPanelLiveBusy`/`onboardingRailChromeBusy`/`channelOnboardingGuildCount`. Bundle: `npm run test:phase567-onboarding`. See [ONBOARDING.md](../../docs/ONBOARDING.md).
**v0.8.474 (Phase 511):** Onboarding spans — `identity.register` (`usernameLen`, `displayNameLen`, `hadGuilds`), `guild.create` (`channelCount`, `isFirstGuild`, `listOnDiscovery`), `invite.join` (`inviteLen`, `guildId`) + matching error logs. UI `syncOnboardingPanelsDuringGuildLoading`, `#composer-onboarding-hint`, dev-log onboarding-errors + clipboard meta. Bundle: `npm run test:phase511-onboarding`. See [ONBOARDING.md](../../docs/ONBOARDING.md). **v0.8.474 (Phase 511):** Onboarding spans — `identity.register` (`usernameLen`, `displayNameLen`, `hadGuilds`), `guild.create` (`channelCount`, `isFirstGuild`, `listOnDiscovery`), `invite.join` (`inviteLen`, `guildId`) + matching error logs. UI `syncOnboardingPanelsDuringGuildLoading`, `#composer-onboarding-hint`, dev-log onboarding-errors + clipboard meta. Bundle: `npm run test:phase511-onboarding`. See [ONBOARDING.md](../../docs/ONBOARDING.md).
**v0.8.475 (Phase 512):** Settings spans — `settings.prefs` (`patchKeyCount`, `themeChanged`), `notifications.prefs`, `guild.update` / `settings.guild` (`nameChanged`, `iconChanged`, `nsfwGateChanged`). UI `syncSettingsPanelsDuringGuildLoading`, `#composer-settings-hint`, dev-log settings-errors + clipboard meta. Bundle: `npm run test:phase512-settings`. See [SETTINGS.md](../../docs/SETTINGS.md). **v0.8.475 (Phase 512):** Settings spans — `settings.prefs` (`patchKeyCount`, `themeChanged`), `notifications.prefs`, `guild.update` / `settings.guild` (`nameChanged`, `iconChanged`, `nsfwGateChanged`). UI `syncSettingsPanelsDuringGuildLoading`, `#composer-settings-hint`, dev-log settings-errors + clipboard meta. Bundle: `npm run test:phase512-settings`. See [SETTINGS.md](../../docs/SETTINGS.md).
+4
View File
@@ -1188,6 +1188,7 @@ class PearcordPlatform extends EventEmitter {
span.end({ span.end({
userId: user?.id || null, userId: user?.id || null,
guildCount: this.guilds?.length ?? 0, guildCount: this.guilds?.length ?? 0,
activeChannelId: this.activeChannelId || null,
spanKind: 'identity.register' spanKind: 'identity.register'
}) })
return boot return boot
@@ -7068,9 +7069,11 @@ class PearcordPlatform extends EventEmitter {
span.end({ span.end({
guildId: result?.guild?.id || null, guildId: result?.guild?.id || null,
channelCount: result?.channels?.length || 0, channelCount: result?.channels?.length || 0,
textChannelCount: (result?.channels || []).filter((c) => c.type === 'text').length,
listOnDiscovery, listOnDiscovery,
isFirstGuild, isFirstGuild,
hadGuilds: hadGuilds > 0, hadGuilds: hadGuilds > 0,
activeChannelId: this.activeChannelId || null,
spanKind: 'guild.create' spanKind: 'guild.create'
}) })
return result return result
@@ -7315,6 +7318,7 @@ class PearcordPlatform extends EventEmitter {
joined: !!guild, joined: !!guild,
inviteGuildId: invite?.guildId || null, inviteGuildId: invite?.guildId || null,
channelCount: invite?.channels?.length || 0, channelCount: invite?.channels?.length || 0,
textChannelCount: (invite?.channels || []).filter((c) => c.type === 'text').length,
activeChannelId: this.activeChannelId || null, activeChannelId: this.activeChannelId || null,
guildCount: (this.guilds || []).length guildCount: (this.guilds || []).length
}) })