Compare commits

...

5 Commits

Author SHA1 Message Date
Uladzimir Havenchyk
cb8b57fc1e Merge branch 'master' into dedup-types 2025-09-25 00:07:30 +03:00
Uladzimir Havenchyk
b5d1ea0f89 Merge branch 'master' into dedup-types 2025-09-24 22:12:57 +03:00
Uladzimir Havenchyk
a4fa689f3c always deduplicate 2025-09-24 19:09:31 +03:00
Uladzimir Havenchyk
72c5a7ad97 fix types 2025-09-24 19:08:55 +03:00
Uladzimir Havenchyk
2ad71ebf40 chore: deduplicate frontend dependencies 2025-09-24 18:49:22 +03:00
6 changed files with 239 additions and 2518 deletions

View File

@@ -47,7 +47,7 @@ type PermissionsPageLayoutProps = {
confirmBar?: ReactNode;
diff?: PermissionsGraph;
isDirty?: boolean;
onSave?: () => void;
onSave: () => void;
onLoad?: () => void;
saveError?: string;
clearSaveError?: () => void;

View File

@@ -60,6 +60,9 @@ const defaultDatasetEditorProps = {
toggleSnippetSidebar: noop,
toggleTemplateTagsEditor: noop,
runDirtyQuestionQuery: noop,
dataReferenceStack: [],
popDataReferenceStack: noop,
pushDataReferenceStack: noop,
};
const renderDatasetEditor = async (card: Card | UnsavedCard) => {

View File

@@ -55,6 +55,7 @@ import type NativeQuery from "metabase-lib/v1/queries/NativeQuery";
import type {
DatasetColumn,
Field,
ModelIndex,
RawSeries,
ResultsMetadata,
VisualizationSettings,
@@ -72,6 +73,10 @@ import { EditorTabs } from "./EditorTabs";
import { EDITOR_TAB_INDEXES } from "./constants";
type MetadataDiff = Record<string, Partial<Field>>;
type DataReferenceStackItem = {
type: string;
item: unknown;
};
export type DatasetEditorInnerProps = {
question: Question;
@@ -115,6 +120,9 @@ export type DatasetEditorInnerProps = {
toggleDataReference: () => void;
toggleSnippetSidebar: () => void;
forwardedRef?: React.Ref<HTMLDivElement>;
dataReferenceStack: DataReferenceStackItem[];
popDataReferenceStack: () => void;
pushDataReferenceStack: () => void;
};
const INITIAL_NOTEBOOK_EDITOR_HEIGHT = 500;
@@ -136,7 +144,7 @@ function mapStateToProps(state: any) {
const mapDispatchToProps = { setDatasetEditorTab };
function getSidebar(
props: DatasetEditorInnerProps & { modelIndexes?: unknown },
props: DatasetEditorInnerProps & { modelIndexes?: ModelIndex[] },
{
datasetEditorTab,
isQueryError,

View File

@@ -20,6 +20,11 @@ import type {
TimelineEvent,
} from "metabase-types/api";
type DataReferenceStackItem = {
type: string;
item: unknown;
};
interface NativeQueryRightSidebarProps {
question: Question;
timelineEvents: TimelineEvent[];
@@ -51,6 +56,9 @@ interface NativeQueryRightSidebarProps {
getEmbeddedParameterVisibility: (
slug: string,
) => EmbeddingParameterVisibility;
dataReferenceStack: DataReferenceStackItem[];
popDataReferenceStack: () => void;
pushDataReferenceStack: () => void;
}
export const NativeQueryRightSidebar = (

View File

@@ -463,7 +463,7 @@
"lint-prettier": "yarn && yarn lint-prettier-pure",
"lint-prettier-pure": "prettier --check '{frontend,enterprise/frontend,e2e}/**/*.{js,jsx,ts,tsx,css}'",
"lint-yaml": "yamllint **/*.{yaml,yml} --ignore=node_modules/**/*.{yaml,yml}",
"postinstall": "yarn yarn-deduplicate --scopes @babel && patch-package",
"postinstall": "yarn yarn-deduplicate && patch-package",
"precommit": "lint-staged --shell",
"preinstall": "echo $npm_execpath | grep -q yarn || echo '\\033[0;33mSorry, npm is not supported. Please use Yarn (https://yarnpkg.com/).\\033[0m'",
"prepare": "husky install",

2732
yarn.lock

File diff suppressed because it is too large Load Diff