feat(ui-flow): IPC for explore baseline, onboarding Explore, async thread filter
Phase 142: format-discovery-baseline-link handler (existing). Phase 143 (v0.8.108): - mark-onboarding-explore-shown clears first-guild Explore prompt - join-invite forwards explore deep-link results as deep-link-result - await setThreadsPanelFilter for USER_PREFS persistence Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -44,8 +44,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
return true
|
||||
}
|
||||
if (t === 'join-invite') {
|
||||
await platform.joinInvite(msg.code)
|
||||
const result = await platform.joinInvite(msg.code)
|
||||
pushState()
|
||||
if (result?.kind === 'explore') {
|
||||
send({ type: 'deep-link-result', url: msg.code, ...result })
|
||||
}
|
||||
return true
|
||||
}
|
||||
if (t === 'join-public-discovery') {
|
||||
@@ -73,6 +76,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
pushState()
|
||||
return true
|
||||
}
|
||||
if (t === 'mark-onboarding-explore-shown') {
|
||||
await platform.markOnboardingExploreShown()
|
||||
pushState()
|
||||
return true
|
||||
}
|
||||
if (t === 'set-discovery-tags') {
|
||||
await platform.setGuildDiscoveryTags(msg.guildId, msg.tags)
|
||||
pushState()
|
||||
@@ -553,6 +561,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
send({ type: 'invite-deep-link', url, inviteCode: code })
|
||||
return true
|
||||
}
|
||||
if (t === 'format-discovery-baseline-link') {
|
||||
const url = platform.formatDiscoveryExploreBaselineDeepLink()
|
||||
send({ type: 'discovery-baseline-deep-link', url })
|
||||
return true
|
||||
}
|
||||
if (t === 'format-guild-deep-link') {
|
||||
const url = platform.formatGuildDeepLink({
|
||||
guildId: msg.guildId,
|
||||
@@ -664,7 +677,7 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
return true
|
||||
}
|
||||
if (t === 'set-threads-panel-filter') {
|
||||
platform.setThreadsPanelFilter(msg.filter)
|
||||
await platform.setThreadsPanelFilter(msg.filter)
|
||||
pushState()
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user