Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

827 B
Raw Blame
import type {
  EntityPickerOptions,
  EntityPickerProps,
} from "metabase/common/components/Pickers";
import type { RecentContexts } from "metabase-types/api";

export const RECENTS_CONTEXT: RecentContexts[] = ["selections"];

export const ENTITY_PICKER_OPTIONS = {
  hasDatabases: true,
  hasDataApps: true,
  hasConfirmButtons: false,
  hasRecents: true,
} satisfies EntityPickerOptions;

export const QUESTION_PICKER_OPTIONS: EntityPickerOptions = {
  hasRootCollection: true,
  hasPersonalCollections: true,
};

export const DASHBOARD_PICKER_OPTIONS: EntityPickerOptions = {
  hasRootCollection: true,
  hasPersonalCollections: true,
};

export const ENTRY_PICKER_MODELS: EntityPickerProps["models"] = [
  "table",
  "card",
  "dataset",
  "metric",
  "dashboard",
  "transform",
  "snippet",
  "action",
  "data-app",
];