Removed snippets feature flag (#7839)
This commit is contained in:
parent
8d92d82e92
commit
cb2ad8990a
|
|
@ -14,7 +14,6 @@ import { ReactComponent as NewPlus } from "assets/icons/menu/new-plus.svg";
|
||||||
import { ReactComponent as Binding } from "assets/icons/menu/binding.svg";
|
import { ReactComponent as Binding } from "assets/icons/menu/binding.svg";
|
||||||
import { ReactComponent as Snippet } from "assets/icons/ads/snippet.svg";
|
import { ReactComponent as Snippet } from "assets/icons/ads/snippet.svg";
|
||||||
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
||||||
import getFeatureFlags from "utils/featureFlags";
|
|
||||||
|
|
||||||
enum Shortcuts {
|
enum Shortcuts {
|
||||||
PLUS = "PLUS",
|
PLUS = "PLUS",
|
||||||
|
|
@ -221,10 +220,7 @@ export const generateQuickCommands = (
|
||||||
recentEntities,
|
recentEntities,
|
||||||
5,
|
5,
|
||||||
);
|
);
|
||||||
const actionCommands = [newBinding];
|
const actionCommands = [newBinding, insertSnippet];
|
||||||
if (getFeatureFlags().SNIPPET) {
|
|
||||||
actionCommands.push(insertSnippet);
|
|
||||||
}
|
|
||||||
|
|
||||||
suggestionsMatchingSearchText.push(
|
suggestionsMatchingSearchText.push(
|
||||||
...matchingCommands(actionCommands, searchText, []),
|
...matchingCommands(actionCommands, searchText, []),
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ import { Datasource } from "entities/Datasource";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { fetchRawGithubContentList } from "./githubHelper";
|
import { fetchRawGithubContentList } from "./githubHelper";
|
||||||
import { PluginType } from "entities/Action";
|
import { PluginType } from "entities/Action";
|
||||||
import getFeatureFlags from "utils/featureFlags";
|
|
||||||
import { modText } from "./HelpBar";
|
import { modText } from "./HelpBar";
|
||||||
import { WidgetType } from "constants/WidgetConstants";
|
import { WidgetType } from "constants/WidgetConstants";
|
||||||
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
||||||
|
|
@ -134,7 +133,6 @@ export const filterCategories: Record<SEARCH_CATEGORY_ID, SearchCategory> = {
|
||||||
kind: SEARCH_ITEM_TYPES.category,
|
kind: SEARCH_ITEM_TYPES.category,
|
||||||
id: SEARCH_CATEGORY_ID.SNIPPETS,
|
id: SEARCH_CATEGORY_ID.SNIPPETS,
|
||||||
desc: createMessage(SNIPPET_DESCRIPTION),
|
desc: createMessage(SNIPPET_DESCRIPTION),
|
||||||
show: () => getFeatureFlags().SNIPPET,
|
|
||||||
},
|
},
|
||||||
[SEARCH_CATEGORY_ID.DOCUMENTATION]: {
|
[SEARCH_CATEGORY_ID.DOCUMENTATION]: {
|
||||||
title: "Search Documentation",
|
title: "Search Documentation",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user