Raxol.Docs.InteractiveTutorial.State (Raxol v0.3.0)
View SourceManages the state of the interactive tutorial system.
Summary
Functions
Gets the current step from the state.
Marks a tutorial as completed.
Creates a new empty state.
Updates the progress for a tutorial.
Types
@type step_id() :: String.t()
@type t() :: %Raxol.Docs.InteractiveTutorial.State{ bookmarks: %{required(tutorial_id()) => step_id()}, current_step: step_id() | nil, current_tutorial: tutorial_id() | nil, history: [{atom(), tutorial_id(), step_id()}], progress: %{required(tutorial_id()) => progress()}, tutorials: %{ required(tutorial_id()) => Raxol.Docs.InteractiveTutorial.Models.Tutorial.t() } }
@type tutorial_id() :: String.t()