Phase 998: add member page UI journey stub (v0.8.965)

Non-breaking headless journey stub for mesh stability UI member page request
keys + embed snapshot verification. No platform API or behavior changes.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-05 05:35:56 -04:00
co-authored by Cursor
parent 1ba3959808
commit b54371d035
+24
View File
@@ -1847,6 +1847,30 @@ class HeadlessSession {
}
}
/** Journey stub: mesh stability UI member page keys + embed snapshot (Phase 998). */
async runMeshStabilityUiMemberPageJourney (guildId) {
if (!this.platform) throw new Error('headless not started')
const gid = guildId || this.platform.guild?.guild?.id
if (!gid) throw new Error('no guild')
const path = require('bare-path')
const {
listMeshStabilityUiMemberPageFieldKeys,
buildMeshStabilityMemberPageSnapshot
} = require('pearcord-platform/mesh-stability-ui-member-page-keys')
const uiPath = path.join(__dirname, '..', '..', 'apps', 'pearcord', 'ui', 'mesh-stability-ui-member-page.js')
const { buildMeshStabilityMemberPageRequestEmbedHtml } = await import(uiPath)
const view = await this.refreshView()
const fields = listMeshStabilityUiMemberPageFieldKeys()
const sh = view?.guildSyncHealth || {}
const snapshot = buildMeshStabilityMemberPageSnapshot(sh)
const embedHtml = buildMeshStabilityMemberPageRequestEmbedHtml({
membersPartial: true,
memberTotal: 100,
memberCount: 25
})
return { guildId: gid, fields, snapshot, embedHtml, view }
}
/** Journey stub: mesh stability UI partition heal actions keys + embed snapshot (Phase 997). */
async runMeshStabilityUiPartitionHealActionsJourney (guildId) {
if (!this.platform) throw new Error('headless not started')