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 Snippet } from "assets/icons/ads/snippet.svg";
|
||||
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
||||
import getFeatureFlags from "utils/featureFlags";
|
||||
|
||||
enum Shortcuts {
|
||||
PLUS = "PLUS",
|
||||
|
|
@ -221,10 +220,7 @@ export const generateQuickCommands = (
|
|||
recentEntities,
|
||||
5,
|
||||
);
|
||||
const actionCommands = [newBinding];
|
||||
if (getFeatureFlags().SNIPPET) {
|
||||
actionCommands.push(insertSnippet);
|
||||
}
|
||||
const actionCommands = [newBinding, insertSnippet];
|
||||
|
||||
suggestionsMatchingSearchText.push(
|
||||
...matchingCommands(actionCommands, searchText, []),
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import { Datasource } from "entities/Datasource";
|
|||
import { useEffect, useState } from "react";
|
||||
import { fetchRawGithubContentList } from "./githubHelper";
|
||||
import { PluginType } from "entities/Action";
|
||||
import getFeatureFlags from "utils/featureFlags";
|
||||
import { modText } from "./HelpBar";
|
||||
import { WidgetType } from "constants/WidgetConstants";
|
||||
import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory";
|
||||
|
|
@ -134,7 +133,6 @@ export const filterCategories: Record<SEARCH_CATEGORY_ID, SearchCategory> = {
|
|||
kind: SEARCH_ITEM_TYPES.category,
|
||||
id: SEARCH_CATEGORY_ID.SNIPPETS,
|
||||
desc: createMessage(SNIPPET_DESCRIPTION),
|
||||
show: () => getFeatureFlags().SNIPPET,
|
||||
},
|
||||
[SEARCH_CATEGORY_ID.DOCUMENTATION]: {
|
||||
title: "Search Documentation",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user