Resource inventory screen for MADSci TUI.
Provides resource browsing with filtering by type and search, a detail panel for selected resources, and actions for delete, lock/unlock, and tree visualization.
Classes¶
ConfirmDeleteScreen(resource_id: str, resource_name: str, **kwargs: Any)Modal confirmation dialog for resource deletion.
Initialize the confirmation screen.
Ancestors (in MRO)¶
textual.screen.ModalScreen
textual.screen.Screen
typing.Generic
textual.widget.Widget
textual.dom.DOMNode
textual.message_pump.MessagePump
Class variables¶
DEFAULT_CSS:can_focus:can_focus_children:Methods¶
compose(self) ‑> Iterable[textual.widget.Widget]- Compose the confirmation dialog.
on_button_pressed(self, event: Button.Pressed) ‑> None- Handle button press.
ResourcesScreen(**kwargs: Any)Screen showing resource inventory and management.
Initialize the screen.
Ancestors (in MRO)¶
madsci.client.cli.tui.mixins.ActionBarMixin
madsci.client.cli.tui.mixins.AutoRefreshMixin
madsci.client.cli.tui.mixins.ServiceURLMixin
textual.screen.Screen
typing.Generic
textual.widget.Widget
textual.dom.DOMNode
textual.message_pump.MessagePump
Class variables¶
BINDINGS: ClassVar[list[BindingType]]:can_focus:can_focus_children:Methods¶
action_delete_resource(self) ‑> NonePrompt for confirmation before deleting the selected resource.
action_go_back(self) ‑> NoneGo back to the dashboard.
action_new_resource(self) ‑> NoneNotify user to use CLI for resource creation.
action_refresh(self) ‑> NoneRefresh resource data.
action_show_tree(self) ‑> NoneShow the resource tree for the selected resource.
action_toggle_lock(self) ‑> NoneToggle lock on the selected resource.
compose(self) ‑> Iterable[textual.widget.Widget]Compose the resources screen layout.
on_data_table_row_selected(self, event: DataTable.RowSelected) ‑> NoneHandle row selection in the resources table.
Args: event: The row selected event.
on_filter_bar_filter_changed(self, event: FilterBar.FilterChanged) ‑> NoneHandle filter changes from the FilterBar.
Args: event: The filter changed event with search and filters.
on_mount(self) ‑> NoneHandle screen mount - set up table and load data.
refresh_data(self) ‑> NoneRefresh resource data from the resource manager.