exlab_wizard.ui.components.tree_context_menu#

Tree context-menu renderers.

GUI/Orchestrator Redesign §4.6 / decision 4A / §9.1.

Two right-click context menus live on tree nodes:

  • Owned-equipment nodeEdit equipment… and Remove… both deep- link into Settings → Equipment List. Add lives on the toolbar (decision 4A); these stay in Settings.

  • Run nodeForce sync, Clear verified, View log. These are the relocated bottom-dock per-run actions (§4.6) and are also surfaced on the run’s Metadata pane.

The renderers are NiceGUI thin wrappers around ui.context_menu(); both take a single callable (on_tree_context_action / on_run_staging_action) that the mount layer wires.

Received-equipment nodes deliberately have no context menu — they aren’t editable from this device (Redesign §3.3 + decision 3).

Functions

render_equipment_context_menu(*, ...)

Render the right-click menu for an owned-equipment tree node.

render_run_context_menu(*, run_path, on_action)

Render the right-click menu for a run tree node.

exlab_wizard.ui.components.tree_context_menu.render_equipment_context_menu(*, equipment_id, on_action)[source]#

Render the right-click menu for an owned-equipment tree node.

The callback receives (equipment_id, action); the mount layer routes both actions to the Settings → Equipment List page with the equipment pre-selected (decision 4A).

Parameters:
Return type:

Any

exlab_wizard.ui.components.tree_context_menu.render_run_context_menu(*, run_path, on_action)[source]#

Render the right-click menu for a run tree node.

The callback receives (run_path, action). The three actions match RUN_CONTEXT_FORCE_SYNC / RUN_CONTEXT_CLEAR_VERIFIED / RUN_CONTEXT_VIEW_LOG and are the relocated bottom-dock per-run actions (Redesign §4.6).

Parameters:
Return type:

Any