diff --git a/__mocks__/react-beautiful-dnd.tsx b/__mocks__/react-beautiful-dnd.tsx new file mode 100644 index 0000000000..6404bfd450 --- /dev/null +++ b/__mocks__/react-beautiful-dnd.tsx @@ -0,0 +1,15 @@ +/** + * Copyright (c) OpenLens Authors. All rights reserved. + * Licensed under MIT License. See LICENSE in root directory for more information. + */ +import React from "react"; + +import type { + DragDropContextProps, + DraggableProps, + DroppableProps, +} from "react-beautiful-dnd"; + +export const DragDropContext = ({ children }: DragDropContextProps) => <>{ children }; +export const Draggable = ({ children }: DraggableProps) => <>{ children }; +export const Droppable = ({ children }: DroppableProps) => <>{ children }; diff --git a/package.json b/package.json index 85bdc48329..7a9f1264b6 100644 --- a/package.json +++ b/package.json @@ -209,11 +209,11 @@ "@hapi/subtext": "^7.0.4", "@kubernetes/client-node": "^0.16.3", "@material-ui/styles": "^4.11.5", - "@ogre-tools/fp": "9.0.0", - "@ogre-tools/injectable": "9.0.0", - "@ogre-tools/injectable-extension-for-auto-registration": "9.0.0", - "@ogre-tools/injectable-extension-for-mobx": "9.0.0", - "@ogre-tools/injectable-react": "9.0.0", + "@ogre-tools/fp": "9.0.1", + "@ogre-tools/injectable": "9.0.1", + "@ogre-tools/injectable-extension-for-auto-registration": "9.0.1", + "@ogre-tools/injectable-extension-for-mobx": "9.0.1", + "@ogre-tools/injectable-react": "9.0.1", "@sentry/electron": "^3.0.7", "@sentry/integrations": "^6.19.3", "@side/jest-runtime": "^1.0.1", diff --git a/src/behaviours/__snapshots__/extension-special-characters-in-page-registrations.test.tsx.snap b/src/behaviours/__snapshots__/extension-special-characters-in-page-registrations.test.tsx.snap index 91606c6ec9..74307f3b53 100644 --- a/src/behaviours/__snapshots__/extension-special-characters-in-page-registrations.test.tsx.snap +++ b/src/behaviours/__snapshots__/extension-special-characters-in-page-registrations.test.tsx.snap @@ -3,71 +3,206 @@ exports[`extension special characters in page registrations renders 1`] = `
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- No new updates available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
-
- No new updates available + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
+ Some page +
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+ + + arrow_right + +
-
-
- Some page + class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- No new updates available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
-
- No new updates available + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
+ Child page +
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+ + + arrow_right + +
-
-
- Child page + class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
-
- No new updates available + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
+
    +
  • + some-string-value-from-navigate +
  • +
  • + 126 +
  • +
  • + some-array-value-from-navigate +
  • +
+ +
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+ + + arrow_right + +
-
-
-
    -
  • - some-string-value-from-navigate -
  • -
  • - 126 -
  • -
  • - some-array-value-from-navigate -
  • -
- +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
-
- No new updates available + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
+
    +
  • + some-string-value +
  • +
  • + 42 +
  • +
  • + some-array-value,some-other-array-value +
  • +
+ +
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+ + + arrow_right + +
-
-
-
    -
  • - some-string-value -
  • -
  • - 42 -
  • -
  • - some-array-value,some-other-array-value -
  • -
- +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
-
- No new updates available + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
+
    +
  • + some-changed-string-value +
  • +
  • + 84 +
  • +
  • + some-changed-array-value,some-other-changed-array-value +
  • +
+ +
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+ + + arrow_right + +
-
-
-
    -
  • - some-changed-string-value -
  • -
  • - 84 -
  • -
  • - some-changed-array-value,some-other-changed-array-value -
  • -
- +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
-
- No new updates available -
+ + home + + + + + arrow_back + + + + + arrow_forward + +
+
-
-
-
-    {
+    
+
+
+        {
   "someParameter": "some-value",
   "someOtherParameter": "some-other-value"
 }
-  
+
+ +
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+
+
+
+
+
+ No new updates available +
+
+
+
+
+
@@ -84,74 +136,126 @@ exports[`navigating between routes given route with optional path parameters whe exports[`navigating between routes given route without path parameters when navigating to route renders 1`] = `
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
-
- No new updates available + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
+ Some component +
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+ + + arrow_right + +
-
-
- Some component + class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- No new updates available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
-
- No new updates available -
-
-
-
-
-
-
-
-

- Add Clusters from Kubeconfig -

-

- Clusters added here are - - not - - merged into the - - ~/.kube/config - - file. - - Read more about adding clusters. - -

-
-
+ + - -
+ arrow_back + + + + + arrow_forward + +
+
+
+
+
-
-
- +

+ Add Clusters from Kubeconfig +

+

+ Clusters added here are + + not + + merged into the + + ~/.kube/config + + file. + - - close - - -

+ Read more about adding clusters. + +

+
+
+
+
+ + + close + + +
+ +
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+
+
+
+
+
+ No new updates available +
+
+
+
({ - Tooltip: () => null, -})); - jest.mock("../../renderer/components/tooltip/withTooltip", () => ({ withTooltip: (Target: any) => ({ tooltip, tooltipOverrideDisabled, ...props }: any) => , })); diff --git a/src/behaviours/application-update/__snapshots__/installing-update-using-topbar-button.test.tsx.snap b/src/behaviours/application-update/__snapshots__/installing-update-using-topbar-button.test.tsx.snap index 089b031c96..8f3981f48a 100644 --- a/src/behaviours/application-update/__snapshots__/installing-update-using-topbar-button.test.tsx.snap +++ b/src/behaviours/application-update/__snapshots__/installing-update-using-topbar-button.test.tsx.snap @@ -4,71 +4,206 @@ exports[`encourage user to update when sufficient time passed since update was d
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- No new updates available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- No new updates available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
-
- Checking for updates... + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+
+ Checking for updates... +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- Downloading version some-version... + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+
+ + + arrow_left + +
+ class="HotbarIndex" + > +
+ 0 +
+
+ + + arrow_right + +
+ class="StatusBar" + > +
+
+
+ Downloading version some-version... +
+
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - - -
-
-
-
-
+ + + arrow_back + + + + + arrow_forward + + + +
+
+
+
+
- Download of update failed + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ Download of update failed +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - - -
-
-
-
-
+ + + arrow_back + + + + + arrow_forward + + + +
+
+
+
+
- some-version is available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ some-version is available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- No new updates available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- No new updates available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
-
- Checking for updates... + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+
+ Checking for updates... +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- Downloading version some-version... + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+
+ + + arrow_left + +
+ class="HotbarIndex" + > +
+ 0 +
+
+ + + arrow_right + +
+ class="StatusBar" + > +
+
+
+ Downloading version some-version... +
+
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - - -
-
-
-
-
+ + + arrow_back + + + + + arrow_forward + + + +
+
+
+
+
- Download of update failed + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ Download of update failed +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - - -
-
-
-
-
+ + + arrow_back + + + + + arrow_forward + + + +
+
+
+
+
- some-version is available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ some-version is available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- No new updates available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- No new updates available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
- - - home - - - - - arrow_back - - - - - arrow_forward - - -
-
-
-
-
+ + + home + + + + + arrow_back + + + + + arrow_forward + + +
+
+
+
+
+
- No new updates available + +
+
+

+ Welcome to OpenLens 5! +

+

+ To get you started we have auto-detected your clusters in your + + kubeconfig file and added them to the catalog, your centralized + + view for managing all your cloud-native resources. +
+
+ If you have any questions or feedback, please join our + + Lens Community slack channel + + . +

+ +
+
+
+
+
+
+ + + arrow_left + + +
+
+ 0 +
+
+ + + arrow_right + + +
+ class="StatusBar" + > +
+
+
+ No new updates available +
+
+
+
+
-
`; exports[`cluster - order of sidebar items when rendered when parent is expanded renders 1`] = `
+
+