Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/review/domain/TreeNodes

Pure (DOMAIN-001): the changed-units tree as data.

Cockpit client (features), next. Source: ui/client/features/review/domain/TreeNodes.ts.

Functions#

buildTreeNodes()#

buildTreeNodes(grouping, byFeature, byLayer, flat): TreeNodeView[]

Defined in: ui/client/features/review/domain/TreeNodes.ts:11

The nodes of the tree for one grouping. Every id is unique, and prefixed by the grouping so each view keeps its own open/closed state.

Parameters#

grouping

TreeGrouping

byFeature

FeatureGroup[]

byLayer

LayerView[]

flat

TreeFile[]

Returns#

TreeNodeView[]


findFileNode()#

findFileNode(nodes, path): TreeNodeView | null

Defined in: ui/client/features/review/domain/TreeNodes.ts:39

The file row for a path in this grouping (a file appears once per grouping).

Parameters#

nodes

TreeNodeView[]

path

string | null

Returns#

TreeNodeView | null


findNode()#

findNode(nodes, id): TreeNodeView | null

Defined in: ui/client/features/review/domain/TreeNodes.ts:29

The node with this id, anywhere in the tree.

Parameters#

nodes

TreeNodeView[]

id

string

Returns#

TreeNodeView | null