hertzforge.service.action_table¶
action_table
¶
The action table beside the project tree (Brandon, 2026-11-06).
The first column is the selection: what it draws by itself (its defaults),
then what can run now, then what cannot and why. Each other column is the
selection with one more object: its header says the object types, each row
names the project's objects that would complete it, and a row with none is
off. A column's rows come from the same operations project.actions always
read, from the joint readings show draws, and from the acts on the
selection itself (rename, remove, link) that are not operations.
The shell filters by module and sorts; every row says which modules offer it.
Functions:
| Name | Description |
|---|---|
defaults |
What |
nested |
A column's rows with each one told what it is under ( |
action_table |
|
Classes¶
Functions:¶
defaults
¶
defaults(project: Any, kinds: list[str], names: list[str], records: dict[str, list[int]] | None = None) -> list[str]
What show draws by itself for objects of kinds. names are the
objects, when they exist, for what depends on the object itself, and
records the records picked in them: picked across data objects, they
are drawn together in place of any reading of the whole objects.
nested
¶
A column's rows with each one told what it is under (NESTS, HEADS).
A row is put under an action only when that action is in the column and can run: a
row whose setting is not offered stays where it was. A row of HEADS is put under
its head, a row of kind group that is not an action, which is added where the
first of its rows stood (the object's own, OBJECT_GROUP, last). The rows keep
their order; the shell draws a group's rows under it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rows
|
list of dict
|
The column's rows, as |
required |
Returns:
| Type | Description |
|---|---|
list of dict
|
The rows, a nested one with |
action_table
¶
action_table(project: Any, objects: list[str], records: dict[str, list[int]], part: dict[str, Any] | None = None) -> dict[str, Any]
{'columns': [...]}: the selection's column first, then one for each
object that could be added, then one for any object at all.