Skip to content

Commit

Permalink
feat(editor-3000): add visualization tab (#26268)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
EDsCODE and github-actions[bot] authored Dec 3, 2024
1 parent 5830eec commit 8b60590
Show file tree
Hide file tree
Showing 10 changed files with 430 additions and 151 deletions.
2 changes: 1 addition & 1 deletion frontend/src/layout/navigation-3000/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function Navbar(): JSX.Element {
? () => {
if (
activeNavbarItemId === item.identifier &&
isSidebarShown
!isSidebarShown
) {
hideSidebar()
} else {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/layout/navigation-3000/navigationLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export const navigation3000Logic = kea<navigation3000LogicType>([
featureFlags[FEATURE_FLAGS.SQL_EDITOR]
? {
identifier: Scene.SQLEditor,
label: 'Data warehouse',
label: 'Data warehouse 3000',
icon: <IconServer />,
to: urls.sqlEditor(),
logic: editorSidebarLogic,
Expand Down
1 change: 0 additions & 1 deletion frontend/src/queries/nodes/DataNode/dataNodeLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ export const dataNodeLogic = kea<dataNodeLogicType>([
const methodOptions: ApiMethodOptions = {
signal: cache.abortController.signal,
}

try {
const response = await concurrencyController.run({
debugTag: query.kind,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { variablesLogic } from './Components/Variables/variablesLogic'
import { dataVisualizationLogic, DataVisualizationLogicProps } from './dataVisualizationLogic'
import { displayLogic } from './displayLogic'

interface DataTableVisualizationProps {
export interface DataTableVisualizationProps {
uniqueKey?: string | number
query: DataVisualizationNode
setQuery: (query: DataVisualizationNode) => void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,10 @@ export const dataVisualizationLogic = kea<dataVisualizationLogicType>([
},
],
presetChartHeight: [
(state) => [state.dashboardId],
(dashboardId) => {
return !dashboardId
(state, props) => [props.key, state.dashboardId],
(key, dashboardId) => {
// Key for SQL editor based visiaulizations
return !key.includes('SQLEditorScene') && !dashboardId
},
],
sourceFeatures: [(_, props) => [props.query], (query): Set<QueryFeature> => getQueryFeatures(query.source)],
Expand Down
Loading

0 comments on commit 8b60590

Please sign in to comment.