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 74307f3b53..2cc8acffca 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
@@ -187,17 +187,7 @@ exports[`extension special characters in page registrations renders 1`] = `
{
let applicationBuilder: ApplicationBuilder;
@@ -86,10 +86,6 @@ describe("installing update", () => {
);
});
- it("notifies the user that checking for updates is happening", () => {
- expect(rendered.getByTestId("app-update-checking")).toBeInTheDocument();
- });
-
it("renders", () => {
expect(rendered.baseElement).toMatchSnapshot();
});
@@ -103,10 +99,6 @@ describe("installing update", () => {
await processCheckingForUpdatesPromise;
});
- it("notifies the user", () => {
- expect(rendered.getByTestId("app-update-not-available")).toBeInTheDocument();
- });
-
it("does not start downloading update", () => {
expect(downloadPlatformUpdateMock).not.toHaveBeenCalled();
});
@@ -114,12 +106,6 @@ describe("installing update", () => {
it("renders", () => {
expect(rendered.baseElement).toMatchSnapshot();
});
-
- it("when 5 seconds elapses, clears the notification to the user", () => {
- advanceFakeTime(6000);
-
- expect(rendered.getByTestId("app-update-idle")).toBeInTheDocument();
- });
});
describe("when new update is discovered", () => {
@@ -136,10 +122,6 @@ describe("installing update", () => {
expect(downloadPlatformUpdateMock).toHaveBeenCalled();
});
- it("notifies the user that download is happening", () => {
- expect(rendered.getByTestId("app-update-downloading")).toBeInTheDocument();
- });
-
it("renders", () => {
expect(rendered.baseElement).toMatchSnapshot();
});
@@ -153,10 +135,6 @@ describe("installing update", () => {
expect(quitAndInstallUpdateMock).not.toHaveBeenCalled();
});
- it("notifies the user about failed download", () => {
- expect(rendered.getByTestId("app-update-download-failed")).toBeInTheDocument();
- });
-
it("renders", () => {
expect(rendered.baseElement).toMatchSnapshot();
});
@@ -171,10 +149,6 @@ describe("installing update", () => {
expect(quitAndInstallUpdateMock).not.toHaveBeenCalled();
});
- it("notifies the user about successful download", () => {
- expect(rendered.getByTestId("app-update-available")).toBeInTheDocument();
- });
-
it("renders", () => {
expect(rendered.baseElement).toMatchSnapshot();
});
diff --git a/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap b/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap
index 7abb5b3bf5..aafe097eb1 100644
--- a/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap
+++ b/src/behaviours/extensions/__snapshots__/navigation-using-application-menu.test.ts.snap
@@ -187,17 +187,7 @@ exports[`extensions - navigation using application menu renders 1`] = `
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
diff --git a/src/behaviours/welcome/__snapshots__/navigation-using-application-menu.test.ts.snap b/src/behaviours/welcome/__snapshots__/navigation-using-application-menu.test.ts.snap
index d7575b76a7..43f0bf8522 100644
--- a/src/behaviours/welcome/__snapshots__/navigation-using-application-menu.test.ts.snap
+++ b/src/behaviours/welcome/__snapshots__/navigation-using-application-menu.test.ts.snap
@@ -187,17 +187,7 @@ exports[`welcome - navigation using application menu renders 1`] = `
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
-
-
- No new updates available
-
-
-
+ />
JSX.Element;
-}
-
-const EndNote = observer(({ version, note }: EndNoteProps) => {
- const [start] = useState(Date.now());
-
- if (start + 5000 <= reactiveNow()) {
- return idle();
- }
-
- return note(version ?? "");
-});
-
-const checking = () => (
- <>
-
-
Checking for updates...
- >
-);
-
-const available = (version: string) =>
{`${version ?? "Update"} is available`}
;
-
-const notAvailable = () =>
No new updates available
;
-
-const downloading = (version: string) => {
- return (
- <>
-
{`Downloading version ${version}...`}
-
- >
- );
-};
-
-const downloadFailed = (errMsg: string) =>
{errMsg}
;
-
-const idle = () =>
;
-
-
-export const NonInjectedAutoUpdateComponent = observer(({
- progressOfUpdateDownload,
- discoveredVersionState,
- downloadingUpdateState,
- checkingForUpdatesState,
-}: Dependencies) => {
- const discoveredVersion = discoveredVersionState.value.get();
-
- const { failed } = progressOfUpdateDownload.value.get();
-
- if (downloadingUpdateState.value.get()) {
-
- assert(discoveredVersion);
-
- return downloading(discoveredVersion.version);
- }
-
- if (checkingForUpdatesState.value.get()) {
- return checking();
- }
-
- if ( discoveredVersion) {
- return
;
- }
-
- if ( failed ) {
- return
;
- }
-
- return
;
-});
-
-export const AutoUpdateComponent = withInjectables
(NonInjectedAutoUpdateComponent, {
- getProps: (di, props) => ({
- progressOfUpdateDownload: di.inject(progressOfUpdateDownloadInjectable),
- discoveredVersionState: di.inject(discoveredUpdateVersionInjectable),
- downloadingUpdateState: di.inject(updateIsBeingDownloadedInjectable),
- checkingForUpdatesState: di.inject(updatesAreBeingDiscoveredInjectable),
- ...props,
- }),
-});
diff --git a/src/renderer/components/status-bar/auto-update-status-bar-item.injectable.ts b/src/renderer/components/status-bar/auto-update-status-bar-item.injectable.ts
deleted file mode 100644
index de8f1518e8..0000000000
--- a/src/renderer/components/status-bar/auto-update-status-bar-item.injectable.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Copyright (c) OpenLens Authors. All rights reserved.
- * Licensed under MIT License. See LICENSE in root directory for more information.
- */
-import { getInjectable } from "@ogre-tools/injectable";
-import { computed } from "mobx";
-import { AutoUpdateComponent } from "./auto-update-component";
-import { statusBarItemInjectionToken } from "./status-bar-item-injection-token";
-
-const autoUpdateStatusBarItemInjectable = getInjectable({
- id: "auto-update-status-bar-item",
-
- instantiate: () => ({
- component: AutoUpdateComponent,
- position: "left" as const,
- visible: computed(() => true),
- }),
-
- injectionToken: statusBarItemInjectionToken,
-});
-
-export default autoUpdateStatusBarItemInjectable;