Lightning.Projects.ProjectTreeItem (Lightning v2.16.7)

View Source

A node in a user-visible project tree. Carries only the fields needed to render the tree, with parent_id shaped for display (nil at the user's access roots, the nearest visible ancestor for descendants). sandbox? reflects the underlying DB shape (true when the project has a real parent_id in the database, regardless of where the user's access root sits) so the picker can pick the right icon for a sandbox surfaced as an access root. Not a persistable record.

Summary

Types

t()

@type t() :: %Lightning.Projects.ProjectTreeItem{
  color: String.t() | nil,
  id: Ecto.UUID.t(),
  name: String.t(),
  parent_id: Ecto.UUID.t() | nil,
  sandbox?: boolean()
}