From 955aa28bc8f307f221e5060b0d6f040903653f93 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 21 Apr 2022 10:18:50 -0400 Subject: [PATCH] Make ThemeStore non-singleton and fix navigation-to-terminal-preferences.test.ts Signed-off-by: Sebastian Malton --- ...ation-to-terminal-preferences.test.ts.snap | 29 ++++------ .../preferences/closing-preferences.test.tsx | 4 +- ...igation-to-application-preferences.test.ts | 4 +- .../navigation-to-editor-preferences.test.ts | 4 +- ...to-extension-specific-preferences.test.tsx | 27 ++++++--- ...vigation-to-kubernetes-preferences.test.ts | 4 +- .../navigation-to-proxy-preferences.test.ts | 4 +- ...vigation-to-telemetry-preferences.test.tsx | 4 +- ...navigation-to-terminal-preferences.test.ts | 14 ++--- .../navigation-using-application-menu.test.ts | 4 +- src/common/__tests__/user-store.test.ts | 6 +- src/common/user-store/preferences-helpers.ts | 6 +- src/common/vars.ts | 3 +- src/extensions/renderer-api/theming.ts | 7 ++- ...alue-from-registered-channel.injectable.ts | 8 ++- .../get-value-from-registered-channel.ts | 9 ++- src/renderer/bootstrap.tsx | 2 +- .../components/+catalog/catalog.test.tsx | 6 -- .../components/+cluster/cluster-issues.tsx | 44 +++++++++++---- .../+cluster/cluster-pie-charts.tsx | 8 ++- .../release-details/release-details.tsx | 9 ++- .../components/+nodes/node-charts.tsx | 23 +++++++- .../components/+preferences/application.tsx | 12 ++-- .../components/+preferences/terminal.tsx | 4 +- .../volume-claim-disk-chart.tsx | 23 +++++++- .../overview-workload-status.tsx | 19 ++++++- .../+workloads-pods/container-charts.tsx | 23 +++++++- src/renderer/components/chart/bar-chart.tsx | 22 ++++++-- src/renderer/components/chart/pie-chart.tsx | 30 ++++++++-- .../dock/__test__/dock-tabs.test.tsx | 7 --- .../__test__/log-resource-selector.test.tsx | 7 --- .../terminal/create-terminal.injectable.ts | 2 + .../components/dock/terminal/terminal.ts | 5 +- .../components/dock/terminal/view.tsx | 9 ++- .../__tests__/hotbar-remove-command.test.tsx | 7 --- .../components/item-object-list/content.tsx | 51 ++++++++++------- .../monaco-editor/monaco-editor.tsx | 55 +++++++++++------- .../components/select/select.test.tsx | 8 --- src/renderer/components/select/select.tsx | 30 ++++++++-- src/renderer/theme-store.injectable.ts | 20 ------- src/renderer/themes/lens-dark.ts | 2 +- src/renderer/themes/lens-light.ts | 2 +- src/renderer/themes/store.injectable.ts | 21 +++++++ .../{theme.store.ts => themes/store.ts} | 56 ++++++++++++------- 44 files changed, 406 insertions(+), 238 deletions(-) delete mode 100644 src/renderer/theme-store.injectable.ts create mode 100644 src/renderer/themes/store.injectable.ts rename src/renderer/{theme.store.ts => themes/store.ts} (70%) diff --git a/src/behaviours/preferences/__snapshots__/navigation-to-terminal-preferences.test.ts.snap b/src/behaviours/preferences/__snapshots__/navigation-to-terminal-preferences.test.ts.snap index 76064feb67..ff3ae16b20 100644 --- a/src/behaviours/preferences/__snapshots__/navigation-to-terminal-preferences.test.ts.snap +++ b/src/behaviours/preferences/__snapshots__/navigation-to-terminal-preferences.test.ts.snap @@ -105,7 +105,7 @@ exports[`preferences - navigation to terminal preferences given in preferences, class="SubTitle" > Theme - +
Extension Install Registry - +
This setting is to change the registry URL for installing extensions by name. - - If you are unable to access the default registry ( - https://registry.npmjs.org - ) - - you can change it in your + If you are unable to access the default registry (https://registry.npmjs.org) you can change it in your .npmrc -  file or in the input below. + file or in the input below.

Start-up - +
Locale Timezone - +
Terminal Shell Path - +
Terminal copy & paste - +