mud_server.admin_tui.screens.user_detail ======================================== .. py:module:: mud_server.admin_tui.screens.user_detail .. autoapi-nested-parse:: User detail screen for PipeWorks Admin TUI. Displays account metadata and a list of characters owned by the user. Classes ------- .. autoapisummary:: mud_server.admin_tui.screens.user_detail.UserDetailScreen Module Contents --------------- .. py:class:: UserDetailScreen(user) Bases: :py:obj:`textual.screen.Screen` User account detail screen. Shows user metadata plus characters owned by the user. Initialize with the user record selected from the users table. .. py:attribute:: BINDINGS .. py:attribute:: CSS :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ UserDetailScreen { layout: vertical; } .detail-container { height: 1fr; padding: 1 2; } .summary-box { border: solid $primary; padding: 1 2; height: auto; margin-bottom: 1; } .summary-row { height: auto; } .summary-label { width: 18; color: $text-muted; } .summary-value { color: $text; } .characters-panel { height: 1fr; } DataTable { height: 1fr; width: 100%; } """ .. raw:: html
.. py:method:: compose() Compose the user summary and character list layout. .. py:method:: on_mount() Validate permissions and load the user's character list. .. py:method:: on_key(event) Translate configured keys to local actions. .. py:method:: action_cursor_up() Move selection up one row. .. py:method:: action_cursor_down() Move selection down one row. .. py:method:: action_cursor_left() Move selection left one column. .. py:method:: action_cursor_right() Move selection right one column. .. py:method:: action_select() Open the selected character in a detail placeholder. .. py:method:: action_back() Return to the previous screen. .. py:method:: action_quit() Quit the application.