Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { VisGroups } from '@kbn/visualizations-plugin/public';
import { ADD_PANEL_TRIGGER } from '@kbn/ui-actions-plugin/public';
import {
ADD_PANEL_ANNOTATION_GROUP,
ADD_PANEL_LEGACY_GROUP,
ADD_PANEL_OTHER_GROUP,
ADD_PANEL_VISUALIZATION_GROUP,
} from '@kbn/embeddable-plugin/public';
Expand All @@ -23,11 +22,9 @@ import { uiActionsService, visualizationsService } from '../../../services/kiban
import { navigateToVisEditor } from './navigate_to_vis_editor';
import type { MenuItem, MenuItemGroup } from './types';

const VIS_GROUP_TO_ADD_PANEL_GROUP: Record<VisGroups, undefined | PresentableGroup> = {
[VisGroups.AGGBASED]: undefined,
const VIS_GROUP_TO_ADD_PANEL_GROUP: Record<string, PresentableGroup> = {
[VisGroups.PROMOTED]: ADD_PANEL_VISUALIZATION_GROUP,
[VisGroups.TOOLS]: ADD_PANEL_ANNOTATION_GROUP,
[VisGroups.LEGACY]: ADD_PANEL_LEGACY_GROUP,
};

export async function getMenuItemGroups(
Expand Down
1 change: 0 additions & 1 deletion src/platform/plugins/shared/embeddable/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,5 @@ export function plugin(initializerContext: PluginInitializerContext) {
export {
ADD_PANEL_ANNOTATION_GROUP,
ADD_PANEL_OTHER_GROUP,
ADD_PANEL_LEGACY_GROUP,
ADD_PANEL_VISUALIZATION_GROUP,
} from './ui_actions/add_panel_groups';
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,3 @@ export const ADD_PANEL_OTHER_GROUP = {
getIconType: () => 'empty',
order: -1, // Given an item that doesn't specify a group is assigned zero, this forces other to come after all intentionally grouped section
};

export const ADD_PANEL_LEGACY_GROUP = {
id: 'legacy',
getDisplayName: () =>
i18n.translate('embeddableApi.common.constants.grouping.legacy', {
defaultMessage: 'Legacy',
}),
order: -2, // Given an item that doesn't specify a group is assigned zero, this forces it to the bottom of the list
};

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
* License v3.0 only", or the "Server Side Public License, v 1".
*/

export const ADD_AGG_VIS_ACTION_ID = 'ADD_AGG_VIS';
export const ACTION_EDIT_IN_LENS = 'ACTION_EDIT_IN_LENS';
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import { DataPublicPluginStart } from '@kbn/data-plugin/public';
import { CONTEXT_MENU_TRIGGER } from '@kbn/embeddable-plugin/public';
import { ADD_PANEL_TRIGGER, type UiActionsStart } from '@kbn/ui-actions-plugin/public';
import { ACTION_EDIT_IN_LENS, ADD_AGG_VIS_ACTION_ID } from './constants';
import type { UiActionsStart } from '@kbn/ui-actions-plugin/public';
import { ACTION_EDIT_IN_LENS } from './constants';
import { TypesStart } from '../vis_types/types_service';

export function registerActions(
Expand All @@ -22,9 +22,4 @@ export function registerActions(
const { EditInLensAction } = await import('./edit_in_lens_action');
return new EditInLensAction(data.query.timefilter.timefilter);
});

uiActions.addTriggerActionAsync(ADD_PANEL_TRIGGER, ADD_AGG_VIS_ACTION_ID, async () => {
const { AddAggVisualizationPanelAction } = await import('./add_agg_vis_action');
return new AddAggVisualizationPanelAction(types);
});
}
114 changes: 0 additions & 114 deletions test/functional/apps/dashboard/group1/create_and_add_embeddables.ts

This file was deleted.

Loading