Skip to content

Implement comprehensive database editor with editing capabilities #3931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/orange-wolves-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@finos/legend-extension-dsl-data-space-studio": minor
---

Add comprehensive DataSpace editor with tabbed interface
5 changes: 5 additions & 0 deletions .changeset/swift-banks-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@finos/legend-application-studio": minor
---

Add comprehensive database editor with editing capabilities for database elements
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.database-editor {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;

&__header {
&__lock {
margin-right: 0.5rem;
display: flex;
align-items: center;
}
}

&__content {
display: flex;
flex-direction: column;
height: 100%;
}

&__tabs {
display: flex;
border-bottom: 1px solid var(--color-dark-grey-200);
}

&__tab {
padding: 0.5rem 1rem;
cursor: pointer;
font-weight: 500;
color: var(--color-dark-grey-400);

&:hover {
color: var(--color-dark-grey-50);
}

&--active {
color: var(--color-dark-grey-50);
border-bottom: 2px solid var(--color-blue-200);
}
}

&__tab-content {
flex: 1;
overflow: auto;
}

&__general-panel {
padding: 1rem;

&__section {
margin-bottom: 1.5rem;

&__header {
font-weight: 600;
margin-bottom: 0.5rem;
}

&__content {
padding-left: 0.5rem;
}
}

&__field {
margin-bottom: 0.5rem;
display: flex;

&__label {
font-weight: 500;
width: 120px;
}

&__value {
flex: 1;
}
}
}

&__schemas-panel,
&__joins-panel,
&__filters-panel {
padding: 1rem;

&__actions {
margin-bottom: 1rem;
}

&__empty {
color: var(--color-dark-grey-400);
font-style: italic;
}
}

&__schema,
&__join,
&__filter {
margin-bottom: 1rem;

&__header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}

&__name-input {
flex: 1;
margin-right: 0.5rem;
}

&__remove-button {
flex-shrink: 0;
}
}

&__schema__tables {
margin-left: 1rem;

&__header {
font-weight: 500;
margin-bottom: 0.5rem;
}

&__empty {
color: var(--color-dark-grey-400);
font-style: italic;
margin-left: 1rem;
}
}

&__table {
margin-left: 1rem;
margin-bottom: 0.25rem;
}

&__join__details,
&__filter__details {
margin-left: 1rem;
margin-bottom: 0.5rem;
color: var(--color-dark-grey-300);
}

.embedded-query-builder {
height: 100%;
}
}

.dark-mode {
.database-editor {
&__tab {
color: var(--color-light-grey-200);

&:hover {
color: var(--color-light-grey-50);
}

&--active {
color: var(--color-light-grey-50);
border-bottom-color: var(--color-blue-400);
}
}

&__schemas-panel,
&__joins-panel,
&__filters-panel {
&__empty {
color: var(--color-light-grey-200);
}
}

&__schema__tables {
&__empty {
color: var(--color-light-grey-200);
}
}

&__join__details,
&__filter__details {
color: var(--color-light-grey-200);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { observer } from 'mobx-react-lite';
import React from 'react';
import {
BlankPanelContent,
Button,
LockIcon,
Panel,
PanelContent,
PanelHeader,
PanelLoadingIndicator,
} from '@finos/legend-art';
import { flowResult } from 'mobx';
import { useApplicationStore } from '@finos/legend-application';
import { useEditorStore } from '../../EditorStoreProvider.js';
import {
DATABASE_EDITOR_TAB,
DatabaseEditorState,
} from '../../../../stores/editor/editor-state/element-editor-state/database/DatabaseEditorState.js';
import { DatabaseGeneralPanel } from './DatabaseGeneralPanel.js';
import { DatabaseSchemasPanel } from './DatabaseSchemasPanel.js';
import { DatabaseJoinsPanel } from './DatabaseJoinsPanel.js';
import { DatabaseFiltersPanel } from './DatabaseFiltersPanel.js';

export const DatabaseEditor = observer(() => {
const editorStore = useEditorStore();
const applicationStore = useApplicationStore();
const databaseEditorState =
editorStore.tabManagerState.getCurrentEditorState(DatabaseEditorState);

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-query-deployment, ubuntu-latest)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-vscode-extension-dependencies, ubuntu-latest)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-pure-ide-deployment, ubuntu-latest)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, ubuntu-latest)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-repl-deployment, ubuntu-latest)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-server-showcase-deployment, ubuntu-latest)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Code Checks

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-data-cube-deployment, ubuntu-latest)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (core)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (data-cube)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (engine-roundtrip)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Codebase Maintenance Checks

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.

Check failure on line 44 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, windows-latest)

Argument of type 'typeof DatabaseEditorState' is not assignable to parameter of type 'Clazz<EditorState>'.
const database = databaseEditorState.database;

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-query-deployment, ubuntu-latest)

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-vscode-extension-dependencies, ubuntu-latest)

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-pure-ide-deployment, ubuntu-latest)

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, ubuntu-latest)

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-repl-deployment, ubuntu-latest)

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-server-showcase-deployment, ubuntu-latest)

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Code Checks

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-data-cube-deployment, ubuntu-latest)

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (core)

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (data-cube)

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (engine-roundtrip)

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Codebase Maintenance Checks

Property 'database' does not exist on type 'EditorState'.

Check failure on line 45 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, windows-latest)

Property 'database' does not exist on type 'EditorState'.
const isReadOnly = databaseEditorState.isReadOnly;

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-query-deployment, ubuntu-latest)

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-vscode-extension-dependencies, ubuntu-latest)

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-pure-ide-deployment, ubuntu-latest)

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, ubuntu-latest)

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-repl-deployment, ubuntu-latest)

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-server-showcase-deployment, ubuntu-latest)

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Code Checks

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-data-cube-deployment, ubuntu-latest)

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (core)

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (data-cube)

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (engine-roundtrip)

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Codebase Maintenance Checks

Property 'isReadOnly' does not exist on type 'EditorState'.

Check failure on line 46 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, windows-latest)

Property 'isReadOnly' does not exist on type 'EditorState'.

const handleTextModeClick = applicationStore.guardUnhandledError(() =>
flowResult(editorStore.toggleTextMode()),
);

const handleTabChange = (tabIndex: number): void => {
const tabs = Object.values(DATABASE_EDITOR_TAB);
if (tabIndex >= 0 && tabIndex < tabs.length) {
databaseEditorState.setSelectedTab(tabs[tabIndex] as DATABASE_EDITOR_TAB);

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-query-deployment, ubuntu-latest)

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-vscode-extension-dependencies, ubuntu-latest)

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-pure-ide-deployment, ubuntu-latest)

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, ubuntu-latest)

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-repl-deployment, ubuntu-latest)

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-server-showcase-deployment, ubuntu-latest)

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Code Checks

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-data-cube-deployment, ubuntu-latest)

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (core)

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (data-cube)

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (engine-roundtrip)

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Codebase Maintenance Checks

Property 'setSelectedTab' does not exist on type 'EditorState'.

Check failure on line 55 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, windows-latest)

Property 'setSelectedTab' does not exist on type 'EditorState'.
}
};

const renderTabContent = (): React.ReactNode => {
switch (databaseEditorState.selectedTab) {

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-query-deployment, ubuntu-latest)

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-vscode-extension-dependencies, ubuntu-latest)

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-pure-ide-deployment, ubuntu-latest)

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, ubuntu-latest)

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-repl-deployment, ubuntu-latest)

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-server-showcase-deployment, ubuntu-latest)

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Code Checks

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-data-cube-deployment, ubuntu-latest)

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (core)

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (data-cube)

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (engine-roundtrip)

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Codebase Maintenance Checks

Property 'selectedTab' does not exist on type 'EditorState'.

Check failure on line 60 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, windows-latest)

Property 'selectedTab' does not exist on type 'EditorState'.
case DATABASE_EDITOR_TAB.GENERAL:
return (
<DatabaseGeneralPanel databaseEditorState={databaseEditorState} />

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-query-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-vscode-extension-dependencies, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-pure-ide-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-repl-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-server-showcase-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Code Checks

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-data-cube-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (core)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (data-cube)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (engine-roundtrip)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Codebase Maintenance Checks

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 63 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, windows-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.
);
case DATABASE_EDITOR_TAB.SCHEMAS:
return (
<DatabaseSchemasPanel databaseEditorState={databaseEditorState} />

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-query-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-vscode-extension-dependencies, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-pure-ide-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-repl-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-server-showcase-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Code Checks

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-data-cube-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (core)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (data-cube)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (engine-roundtrip)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Codebase Maintenance Checks

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 67 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, windows-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.
);
case DATABASE_EDITOR_TAB.JOINS:
return <DatabaseJoinsPanel databaseEditorState={databaseEditorState} />;

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-query-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-vscode-extension-dependencies, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-pure-ide-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-repl-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-server-showcase-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Code Checks

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-data-cube-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (core)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (data-cube)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (engine-roundtrip)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Codebase Maintenance Checks

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 70 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, windows-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.
case DATABASE_EDITOR_TAB.FILTERS:
return (
<DatabaseFiltersPanel databaseEditorState={databaseEditorState} />

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-query-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-vscode-extension-dependencies, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-pure-ide-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-repl-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-server-showcase-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Code Checks

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-data-cube-deployment, ubuntu-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (core)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (data-cube)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (engine-roundtrip)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Codebase Maintenance Checks

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.

Check failure on line 73 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, windows-latest)

Type 'EditorState' is missing the following properties from type 'DatabaseEditorState': database, queryDatabaseState, selectedTab, element, and 2 more.
);
case DATABASE_EDITOR_TAB.QUERY:
return (
<div className="embedded-query-builder">
{databaseEditorState.queryDatabaseState && (

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-query-deployment, ubuntu-latest)

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-vscode-extension-dependencies, ubuntu-latest)

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-pure-ide-deployment, ubuntu-latest)

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, ubuntu-latest)

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-repl-deployment, ubuntu-latest)

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-server-showcase-deployment, ubuntu-latest)

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Code Checks

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-data-cube-deployment, ubuntu-latest)

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (core)

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (data-cube)

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Test Group (engine-roundtrip)

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Run Codebase Maintenance Checks

Property 'queryDatabaseState' does not exist on type 'EditorState'.

Check failure on line 78 in packages/legend-application-studio/src/components/editor/editor-group/database/DatabaseEditor.tsx

View workflow job for this annotation

GitHub Actions / Check Application Build (@finos/legend-application-studio-deployment, windows-latest)

Property 'queryDatabaseState' does not exist on type 'EditorState'.
<div>Query functionality will be implemented here</div>
)}
</div>
);
default:
return <BlankPanelContent>Select a tab</BlankPanelContent>;
}
};

return (
<div className="database-editor">
<Panel>
<PanelHeader>
<div className="panel__header__title">
{isReadOnly && (
<div className="database-editor__header__lock">
<LockIcon />
</div>
)}
<div className="panel__header__title__label">database</div>
<div className="panel__header__title__content">{database.name}</div>
</div>
<div className="panel__header__actions">
{!isReadOnly && (
<Button
className="panel__header__action"
text="Edit in Text Mode"
onClick={handleTextModeClick}
/>
)}
</div>
</PanelHeader>
<div className="panel__content database-editor__content">
<div className="database-editor__tabs">
{Object.values(DATABASE_EDITOR_TAB).map((tab, index) => (
<div
key={String(tab)}
className={`database-editor__tab ${
tab === databaseEditorState.selectedTab
? 'database-editor__tab--active'
: ''
}`}
onClick={() => handleTabChange(index)}
>
{String(tab)}
</div>
))}
</div>
<PanelContent className="database-editor__tab-content">
<PanelLoadingIndicator isLoading={false} />
{renderTabContent()}
</PanelContent>
</div>
</Panel>
</div>
);
});
Loading
Loading