chore: Extract sidebar item injection token into separate package

- Add unit tests to cover custom resources sidebar items

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and Gabriel Accettola committed 2023-05-23 10:46:02 +02:00
1 parent add1a0a39e
commit 8ac66380ad
113 files changed
+5647 -1679

No files matched your search

+6 -5
View File
@@ -25,13 +25,14 @@ runInAction(() => {
registerLensCore(di, environment);
registerFeature(di,
loggerFeature,
loggerFeature,
);
registerFeature(di,
applicationFeature,
applicationFeatureForElectronMain,
messagingFeatureForMain,
registerFeature(
di,
applicationFeature,
applicationFeatureForElectronMain,
messagingFeatureForMain,
);
try {
+3 -1
View File
@@ -25,6 +25,7 @@ import { keyboardShortcutsFeature } from "@k8slens/keyboard-shortcuts";
import { reactApplicationFeature } from "@k8slens/react-application";
import { routingFeature } from "@k8slens/routing";
import { loggerFeature } from "@k8slens/logger";
import { clusterSidebarFeature } from "@k8slens/cluster-sidebar";
const environment = "renderer";
@@ -49,7 +50,8 @@ runInAction(() => {
keyboardShortcutsFeature,
reactApplicationFeature,
routingFeature,
metricsFeature
metricsFeature,
clusterSidebarFeature,
);
autoRegister({