LanternUI.Components.StateGlyph (LanternUI v0.8.2)

Copy Markdown View Source

Status circles, priority signal bars, run-pipeline, sync, and source glyphs for dense lists.

Sets are selected with kind. Status is Linear's circle (dotted backlog, empty todo, half-filled in progress, filled check for done, x for cancelled). Priority is Linear's signal bars, tinted by urgency; :none is three dashes. Run is a CI/pipeline set: queued, claiming an environment, running, verifying, passed, failed, blocked. Sync is an index/live set: empty, syncing, live, failed. Source is a kind set: repo, doc, ticket_memory, upload.

<.state_glyph kind="status" value="in_progress" />
<.state_glyph kind="priority" value="high" size="sm" />
<.state_glyph kind="run" value="verifying" />
<.state_glyph kind="sync" value="live" />
<.state_glyph kind="source" value="repo" />

Flicker-shaped aliases status_glyph/1, priority_glyph/1, run_glyph/1, sync_glyph/1, and source_glyph/1 take status= / priority= / state= / source= so a consuming page is a rename, not a remap. :selected_for_dev draws the same empty ring as :todo.

Summary

Functions

Flicker-shaped alias of state_glyph/1 with kind="priority".

Flicker-shaped alias of state_glyph/1 with kind="run".

Flicker-shaped alias of state_glyph/1 with kind="source".

Flicker-shaped alias of state_glyph/1 with kind="status".

Flicker-shaped alias of state_glyph/1 with kind="sync".

Functions

priority_glyph(assigns)

Flicker-shaped alias of state_glyph/1 with kind="priority".

Attributes

  • priority (:any) (required) - Priority (atom or string).
  • size (:string) - sm is 12px; md is 14px. Defaults to "md". Must be one of "sm", or "md".
  • label (:string) - Accessible name; decorative when omitted. Defaults to nil.
  • class (:any) - Extra classes merged onto the svg. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.

run_glyph(assigns)

Flicker-shaped alias of state_glyph/1 with kind="run".

Attributes

  • state (:any) (required) - Run-pipeline state (atom or string).
  • size (:string) - sm is 12px; md is 14px. Defaults to "md". Must be one of "sm", or "md".
  • label (:string) - Accessible name; decorative when omitted. Defaults to nil.
  • class (:any) - Extra classes merged onto the svg. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.

source_glyph(assigns)

Flicker-shaped alias of state_glyph/1 with kind="source".

Attributes

  • source (:any) (required) - Source kind (atom or string).
  • size (:string) - sm is 12px; md is 14px. Defaults to "md". Must be one of "sm", or "md".
  • label (:string) - Accessible name; decorative when omitted. Defaults to nil.
  • class (:any) - Extra classes merged onto the svg. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.

state_glyph(assigns)

Attributes

  • kind (:string) (required) - Glyph set: status circles, priority bars, run-pipeline, sync, or source-kind states. Must be one of "status", "priority", "run", "sync", or "source".
  • value (:any) (required) - Set value (atom or string). See the set lists in the moduledoc.
  • size (:string) - sm is 12px; md is 14px. Defaults to "md". Must be one of "sm", or "md".
  • label (:string) - Accessible name. Decorative (aria-hidden) when omitted — pair with visible text. Defaults to nil.
  • class (:any) - Extra classes merged onto the svg. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.

status_glyph(assigns)

Flicker-shaped alias of state_glyph/1 with kind="status".

Attributes

  • status (:any) (required) - Workflow status (atom or string).
  • size (:string) - sm is 12px; md is 14px. Defaults to "md". Must be one of "sm", or "md".
  • label (:string) - Accessible name; decorative when omitted. Defaults to nil.
  • class (:any) - Extra classes merged onto the svg. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.

sync_glyph(assigns)

Flicker-shaped alias of state_glyph/1 with kind="sync".

Attributes

  • state (:any) (required) - Sync state (atom or string).
  • size (:string) - sm is 12px; md is 14px. Defaults to "md". Must be one of "sm", or "md".
  • label (:string) - Accessible name; decorative when omitted. Defaults to nil.
  • class (:any) - Extra classes merged onto the svg. Defaults to nil.
  • Global attributes are accepted. Arbitrary HTML/phx-* attributes passed through.