Skip to content

DSL builder for coachmark sequences #13

@aldefy

Description

@aldefy

Summary

Fluent DSL builder for defining multi-step coachmark tours.

Proposed API

coachmarkController.tour("onboarding") {
    step("settings") {
        title = "Settings"
        description = "Customize your preferences"
        shape = circle(radiusPadding = 12.dp)
        connector = elbow()
    }
    step("profile") {
        title = "Profile"
        description = "View your account"
        shape = squircle()
    }
    onComplete { analytics.track("onboarding_done") }
}

Benefits

  • More readable than building List<CoachmarkTarget> manually
  • Inline callbacks per step
  • Named tours for analytics/persistence

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