refactor(sqllab): Separate left panel outside of tab container (#36360)

This commit is contained in:
JUST.in DO IT
2025-12-08 11:44:31 -08:00
committed by GitHub
parent 8a00badf45
commit 8d04c33adf
22 changed files with 819 additions and 463 deletions
@@ -22,7 +22,7 @@ import { useInView } from 'react-intersection-observer';
import { omit } from 'lodash';
import { EmptyState, Skeleton } from '@superset-ui/core/components';
import { t, FeatureFlag, isFeatureEnabled } from '@superset-ui/core';
import { styled, css, useTheme } from '@apache-superset/core/ui';
import { styled, css } from '@apache-superset/core/ui';
import QueryTable from 'src/SqlLab/components/QueryTable';
import { SqlLabRootState } from 'src/SqlLab/types';
import { useEditorQueriesQuery } from 'src/hooks/apiResources/queries';
@@ -62,7 +62,6 @@ const QueryHistory = ({
const { id, tabViewId } = useQueryEditor(String(queryEditorId), [
'tabViewId',
]);
const theme = useTheme();
const editorId = tabViewId ?? id;
const [ref, hasReachedBottom] = useInView({ threshold: 0 });
const [pageIndex, setPageIndex] = useState(0);
@@ -118,11 +117,7 @@ const QueryHistory = ({
}
return editorQueries.length > 0 ? (
<div
css={css`
padding-left: ${theme.sizeUnit * 4}px;
`}
>
<>
<QueryTable
columns={[
'state',
@@ -148,7 +143,7 @@ const QueryHistory = ({
/>
)}
{isFetching && <Skeleton active />}
</div>
</>
) : (
<StyledEmptyStateWrapper>
<EmptyState