This is an automated email from the ASF dual-hosted git repository.

justinpark pushed a commit to branch 5.0-extensions
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/5.0-extensions by this push:
     new 34ebb8a7dc chore(sqllab): add logging for switching south panel tabs 
(#36168) (#36369)
34ebb8a7dc is described below

commit 34ebb8a7dcf57a992a6d34bcede345988a62a0b0
Author: JUST.in DO IT <[email protected]>
AuthorDate: Tue Dec 2 10:32:55 2025 -0800

    chore(sqllab): add logging for switching south panel tabs (#36168) (#36369)
---
 superset-frontend/src/SqlLab/components/SouthPane/index.tsx | 4 ++++
 superset-frontend/src/logger/LogUtils.ts                    | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/superset-frontend/src/SqlLab/components/SouthPane/index.tsx 
b/superset-frontend/src/SqlLab/components/SouthPane/index.tsx
index 5e1aff271c..edc9ec0b2b 100644
--- a/superset-frontend/src/SqlLab/components/SouthPane/index.tsx
+++ b/superset-frontend/src/SqlLab/components/SouthPane/index.tsx
@@ -29,6 +29,8 @@ import Icons from 'src/components/Icons';
 import { SqlLabRootState } from 'src/SqlLab/types';
 import { useExtensionsContext } from 'src/extensions/ExtensionsContext';
 import ExtensionsManager from 'src/extensions/ExtensionsManager';
+import useLogAction from 'src/logger/useLogAction';
+import { LOG_ACTIONS_SQLLAB_SWITCH_SOUTH_PANE_TAB } from 'src/logger/LogUtils';
 import QueryHistory from '../QueryHistory';
 import {
   STATUS_OPTIONS,
@@ -128,8 +130,10 @@ const SouthPane = ({
   );
   const innerTabContentHeight = height - TAB_HEIGHT;
   const southPaneRef = createRef<HTMLDivElement>();
+  const logAction = useLogAction({ sqlEditorId: queryEditorId });
   const switchTab = (id: string) => {
     dispatch(setActiveSouthPaneTab(id));
+    logAction(LOG_ACTIONS_SQLLAB_SWITCH_SOUTH_PANE_TAB, { tab: id });
   };
   const removeTable = useCallback(
     (key, action) => {
diff --git a/superset-frontend/src/logger/LogUtils.ts 
b/superset-frontend/src/logger/LogUtils.ts
index 913a3d5af7..784be5af50 100644
--- a/superset-frontend/src/logger/LogUtils.ts
+++ b/superset-frontend/src/logger/LogUtils.ts
@@ -85,6 +85,8 @@ export const LOG_ACTIONS_SQLLAB_COPY_RESULT_TO_CLIPBOARD =
   'sqllab_copy_result_to_clipboard';
 export const LOG_ACTIONS_SQLLAB_CREATE_CHART = 'sqllab_create_chart';
 export const LOG_ACTIONS_SQLLAB_LOAD_TAB_STATE = 'sqllab_load_tab_state';
+export const LOG_ACTIONS_SQLLAB_SWITCH_SOUTH_PANE_TAB =
+  'sqllab_switch_south_pane_tab';
 
 // Log event types 
--------------------------------------------------------------
 export const LOG_EVENT_TYPE_TIMING = new Set([

Reply via email to