pipeworks_mud_mapper.callbacks.workspace_callbacks ================================================== .. py:module:: pipeworks_mud_mapper.callbacks.workspace_callbacks .. autoapi-nested-parse:: Workspace panel callbacks. These callbacks keep the Workspace card up to date with SQLite metadata. Functions --------- .. autoapisummary:: pipeworks_mud_mapper.callbacks.workspace_callbacks.update_workspace_db pipeworks_mud_mapper.callbacks.workspace_callbacks.update_workspace_room_table pipeworks_mud_mapper.callbacks.workspace_callbacks.handle_workspace_room_click pipeworks_mud_mapper.callbacks.workspace_callbacks.queue_workspace_db_tool pipeworks_mud_mapper.callbacks.workspace_callbacks.poll_workspace_jobs pipeworks_mud_mapper.callbacks.workspace_callbacks.update_workspace_world_json Module Contents --------------- .. py:function:: update_workspace_db(_, __, ___, ____, _____, ______, selected_file) Refresh SQLite DB summary and map overview table. .. py:function:: update_workspace_room_table(selected_file, _, __, ___, selected_room) Render a table of rooms for the selected map in the Workspace tab. .. py:function:: handle_workspace_room_click(room_clicks, current_room) Select a room when a Workspace table row is clicked. .. py:function:: queue_workspace_db_tool(backup_clicks, export_map_clicks, export_zone_clicks, export_sql_clicks, workspace_jobs, selected_map) Queue a workspace DB tool job and surface immediate feedback. Each button click spawns an asynchronous job so the UI stays responsive while backups/exports run. A short alert confirms the action immediately. .. py:function:: poll_workspace_jobs(n_intervals, workspace_jobs) Poll background workspace jobs and surface completion feedback. Completed jobs are removed from the store, pending jobs are kept, and the newest alert is shown in the Workspace tab. .. py:function:: update_workspace_world_json(_, __) Render the configured world.json payload in the Workspace tab.