Skip to content

Commit 24300f9

Browse files
[Canvas] Remove Angular and unnecessary reporting config from Canvas (#54050)
* Remove Angular from Canvas * Remove reporting config behavior from Canvas since it's no longer needed Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 7a53f8b commit 24300f9

25 files changed

Lines changed: 118 additions & 371 deletions

File tree

x-pack/legacy/plugins/canvas/.storybook/storyshots.test.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ jest.mock('@elastic/eui/packages/react-datepicker', () => {
5050

5151
jest.mock('plugins/interpreter/registries', () => ({}));
5252

53-
// Disabling this test due to https://github.com/elastic/eui/issues/2242
54-
jest.mock(
55-
'../public/components/workpad_header/workpad_export/__examples__/disabled_panel.stories',
56-
() => {
57-
return 'Disabled Panel';
58-
}
59-
);
60-
6153
// Disabling this test due to https://github.com/elastic/eui/issues/2242
6254
jest.mock(
6355
'../public/components/workpad_header/workpad_export/flyout/__examples__/share_website_flyout.stories',

x-pack/legacy/plugins/canvas/i18n/angular.ts renamed to x-pack/legacy/plugins/canvas/i18n/capabilities.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
import { i18n } from '@kbn/i18n';
88
import { CANVAS as canvas } from './constants';
99

10-
export const AngularStrings = {
11-
CanvasRootController: {
12-
getReadOnlyBadgeText: () =>
10+
export const CapabilitiesStrings = {
11+
ReadOnlyBadge: {
12+
getText: () =>
1313
i18n.translate('xpack.canvas.badge.readOnly.text', {
1414
defaultMessage: 'Read only',
1515
}),
16-
getReadOnlyBadgeTooltip: () =>
16+
getTooltip: () =>
1717
i18n.translate('xpack.canvas.badge.readOnly.tooltip', {
1818
defaultMessage: 'Unable to save {canvas} workpads',
1919
values: {

x-pack/legacy/plugins/canvas/i18n/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { i18n } from '@kbn/i18n';
88

9-
export * from './angular';
9+
export * from './capabilities';
1010
export * from './components';
1111
export * from './constants';
1212
export * from './errors';

x-pack/legacy/plugins/canvas/public/angular/config/index.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

x-pack/legacy/plugins/canvas/public/angular/config/location_provider.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

x-pack/legacy/plugins/canvas/public/angular/config/state_management.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

x-pack/legacy/plugins/canvas/public/angular/controllers/canvas.tsx

Lines changed: 0 additions & 54 deletions
This file was deleted.

x-pack/legacy/plugins/canvas/public/angular/controllers/index.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

x-pack/legacy/plugins/canvas/public/angular/services/index.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

x-pack/legacy/plugins/canvas/public/angular/services/store.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)