Flatten a node's contributed actions (and nested AppGraphNode.ActionGroups) into the
{ nodes, edges } an useMenuActions / Menu consumes. The action nodes are spliced
verbatim, so their Effect data (and captured _actionContext) execute via executeMenuAction
without any onAction wiring.
Pure over a resolve function so it is testable without a live graph; resolve(id) returns the
direct actions for id (a node id at the top level, a group id when expanding a group).
Flatten a node's contributed actions (and nested AppGraphNode.ActionGroups) into the
{ nodes, edges }an useMenuActions /Menuconsumes. The action nodes are spliced verbatim, so their Effectdata(and captured_actionContext) execute viaexecuteMenuActionwithout anyonActionwiring.Pure over a
resolvefunction so it is testable without a live graph;resolve(id)returns the direct actions forid(a node id at the top level, a group id when expanding a group).