Skip to content

Conditional coachmarks with feature flag support #14

@aldefy

Description

@aldefy

Summary

Built-in support for conditionally showing coachmarks based on user segment, feature flags, or custom predicates.

Proposed API

coachmarkController.showIf(
    condition = { userSegment == "new" && !hasSeenOnboarding },
    target = onboardingTarget,
)

Details

  • showIf wraps show() with a predicate check
  • Works with sequences too: showSequenceIf(condition, targets)
  • Integrates with CoachmarkRepository for "already seen" checks
  • Composable version: LaunchedShowIf that re-evaluates on recomposition

Part of the v1.3 roadmap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestv1.3Version 1.3 milestone

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions