Skip to content

Commit

Permalink
add flag back and tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE committed Dec 18, 2024
1 parent 0cef841 commit 274e712
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions frontend/src/scenes/data-warehouse/editor/OutputPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { useActions, useValues } from 'kea'
import { AnimationType } from 'lib/animations/animations'
import { Animation } from 'lib/components/Animation/Animation'
import { ExportButton } from 'lib/components/ExportButton/ExportButton'
import { FEATURE_FLAGS } from 'lib/constants'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { useMemo } from 'react'
import DataGrid from 'react-data-grid'
import { InsightErrorState, StatelessInsightLoadingState } from 'scenes/insights/EmptyStates'
Expand Down Expand Up @@ -45,6 +47,7 @@ export function OutputPane(): JSX.Element {
const { dataWarehouseSavedQueriesLoading } = useValues(dataWarehouseViewsLogic)
const { updateDataWarehouseSavedQuery } = useActions(dataWarehouseViewsLogic)
const { visualizationType, queryCancelled } = useValues(dataVisualizationLogic)
const { featureFlags } = useValues(featureFlagLogic)

const vizKey = useMemo(() => `SQLEditorScene`, [])

Expand Down Expand Up @@ -91,10 +94,14 @@ export function OutputPane(): JSX.Element {
key: OutputTab.Visualization,
label: 'Visualization',
},
{
key: OutputTab.Info,
label: 'Info',
},
...(featureFlags[FEATURE_FLAGS.DATA_MODELING]
? [
{
key: OutputTab.Info,
label: 'Info',
},
]
: []),
]}
/>
<div className="flex gap-4">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/data-warehouse/editor/QueryTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function QueryTabComponent({ model, active, onClear, onClick }: QueryTabProps):
onClear ? 'pl-3 pr-2' : 'px-3'
)}
>
{model.view?.name ?? 'Untitled'}
{model.view?.name ?? 'New query'}
{onClear && (
<LemonButton
onClick={(e) => {
Expand Down

0 comments on commit 274e712

Please sign in to comment.