mud_server.admin_tui.screens.database_tabs
Tab handlers for the Admin TUI database screen.
These classes isolate per-tab setup and data loading so the main screen can focus on orchestration and user input.
Classes
Users tab handler (account list and sorting). |
|
Tombstoned users tab handler. |
|
Worlds catalog tab handler. |
|
Character locations tab handler. |
|
Active connections tab handler. |
|
Sessions tab handler. |
|
Chat messages tab handler. |
|
Database tables list tab handler. |
|
Generic table data viewer tab handler. |
Module Contents
- class mud_server.admin_tui.screens.database_tabs.UsersTab(screen)
Users tab handler (account list and sorting).
- setup()
Configure the users DataTable columns.
- async load()
Fetch and display users from the database.
- sort_by_column(column_index)
Sort users by the selected column, toggling direction.
- resolve_user(user_id)
Return the cached user dict matching the given id.
- toggle_tombstoned_visibility()
Toggle whether tombstoned users are shown in the users table.
- class mud_server.admin_tui.screens.database_tabs.TombstonedTab(screen)
Tombstoned users tab handler.
- setup()
Configure the tombstoned users DataTable columns.
- async load()
Fetch and display tombstoned users from the database.
- class mud_server.admin_tui.screens.database_tabs.WorldsTab(screen)
Worlds catalog tab handler.
- setup()
Configure the worlds DataTable columns.
- async load()
Fetch and display worlds from the database.
- class mud_server.admin_tui.screens.database_tabs.CharacterLocationsTab(screen)
Character locations tab handler.
- setup()
- async load()
- class mud_server.admin_tui.screens.database_tabs.ConnectionsTab(screen)
Active connections tab handler.
- setup()
- async load()
- class mud_server.admin_tui.screens.database_tabs.SessionsTab(screen)
Sessions tab handler.
- setup()
- async load()
- class mud_server.admin_tui.screens.database_tabs.ChatTab(screen)
Chat messages tab handler.
- setup()
- async load()