Skip to content

pickAutoExperience

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/tour-widget/src/targeting.ts

The single experience the orchestrator should auto-present, if any: the highest-priority eligible one (the server pre-sorted by priority, so we keep that order and take the first eligible). Announcements/NPS/checklists and tours all compete on the same priority axis; one at a time.

Signature

ts
function pickAutoExperience(experiences: WidgetExperience[], state: WidgetState): WidgetExperience | null

Parameters

NameType
experiencesWidgetExperience[]
stateWidgetState

Returns: WidgetExperience | null

Was this page helpful?

Download as PDF