Minga.Mode.ExtensionConfirmState (Minga v0.1.0)

Copy Markdown View Source

FSM state for the extension update confirmation dialog.

Holds the list of pending updates, the current index being shown, and whether the user wants details for the current item.

Summary

Types

t()

An update summary for display in the confirmation dialog.

Types

t()

@type t() :: %Minga.Mode.ExtensionConfirmState{
  accepted: [non_neg_integer()],
  current: non_neg_integer(),
  show_details: boolean(),
  updates: [update_entry()]
}

update_entry()

@type update_entry() :: %{
  name: atom(),
  source_type: :git | :hex,
  old_ref: String.t(),
  new_ref: String.t(),
  commit_count: non_neg_integer(),
  branch: String.t() | nil,
  pinned: boolean()
}

An update summary for display in the confirmation dialog.