MingaEditor.Session.ChromeState.WorkspaceSummary (Minga v0.1.0)

Copy Markdown View Source

User-facing summary for one workspace in shared chrome.

This is presentation data derived from editor state. It is not a source of truth for workspace membership or session lifecycle.

Summary

Functions

Builds a workspace summary.

Types

kind()

@type kind() :: :manual | :agent

status()

t()

@type t() :: %MingaEditor.Session.ChromeState.WorkspaceSummary{
  attention?: boolean(),
  closeable?: boolean(),
  color: non_neg_integer(),
  conflict_count: non_neg_integer(),
  draft_count: non_neg_integer(),
  icon: String.t(),
  id: non_neg_integer(),
  kind: kind(),
  label: String.t(),
  running_background_count: non_neg_integer(),
  status: status(),
  tab_count: non_neg_integer()
}

Functions

new(attrs)

@spec new(keyword()) :: t()

Builds a workspace summary.