Janne Savolainen and Mikko Aspiala
ff9e9bd169
Re-implement some Extension API features using injectables
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2022-01-07 12:10:02 +02:00
Sebastian Malton
764d7754e5
fix test
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-01-05 12:22:43 -05:00
Sebastian Malton
3ce9bfe4f9
Move hotbarManagerInjectable to different file
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-01-05 12:10:21 -05:00
Sebastian Malton
f8ae1149fb
Make all of Command* injectable, with some others too
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-01-05 11:48:52 -05:00
Sebastian Malton
abe90ad92a
Add CRDs to Command Palette and fix bugs
...
- Deprecate the "scope" on command registrations as it is buggy and
generally unfixable
- Switch to mounting CommandContainer in each new frame so that there is
no need to broadcast anything other than opening palette
- Add CRD entries to the command registry within each cluster
- Add navigate to CommandActionContext to simplify handling of root
frame scoped URLs
- Switch to using DI for some of the deps
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-01-05 11:48:51 -05:00
Sebastian Malton
4f75acf2b4
Ban circular dependencies ( #3547 )
2022-01-05 11:35:44 -05:00
dependabot[bot]
b227a86711
Bump got from 11.8.2 to 11.8.3 ( #4517 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-05 09:37:14 -05:00
dependabot[bot]
5591f8dca5
Bump dompurify from 2.3.3 to 2.3.4 ( #4568 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-05 09:37:01 -05:00
Janne Savolainen
4224937260
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-app-paths
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2022-01-05 15:04:43 +02:00
Sebastian Malton
6a97a7b35b
Fix CRD.getPreferedVersion() to work based on apiVersion ( #4553 )
...
* Fix CRD.getPreferedVersion() to work based on apiVersion
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add tests
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-01-05 07:53:28 -05:00
Janne Savolainen and Mikko Aspiala
9d33fff906
Cascade different refactorings to eliminate global shared state from app paths
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2022-01-05 13:26:49 +02:00
Sebastian Malton
2a31c5a0d5
Removing JS adding #terminal-init so that unit tests don't have global state ( #4627 )
2022-01-04 10:20:41 -05:00
Lauri Nevala
02056a6090
Fix prometheus operator metrics work out of the box ( #4617 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2022-01-04 15:43:45 +02:00
Juho Heikka
1db805b451
Extension tray menu items ( #4619 )
...
* Add extension ability to add tray menu items.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Add tray menu extension documentation
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Add tests to tray menu items. Fix autorun infinite loop.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Fix documentation
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Remove unnecessary slice()
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Define a type for tray menu registration
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Change TrayMenuRegistration not to leak or depend on Electron Menu API
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Update trayMenus Extension API documentation
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Refactor all tests to use runInAction
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2021-12-31 15:50:01 +02:00
Janne Savolainen
58ea0dc822
Merge pull request #4613 from jansav/top-bar-registry
...
Replace TopBarRegistry with reactive solution
2021-12-31 12:03:51 +02:00
Janne Savolainen
71388a0ea3
Switch typing of a component to props instead of React.FC
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-31 09:32:24 +02:00
Janne Savolainen and Mikko Aspiala
6ca58570b0
Replace TopBarRegistry with reactive solution
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-31 09:32:19 +02:00
Janne Savolainen
ed7d2889e2
Merge pull request #4615 from jansav/welcome-menu-registry
...
Replace WelcomeMenuRegistry and WelcomeBannerRegistry with reactive solution
2021-12-31 09:28:29 +02:00
Alex Andreev
5bdfea6e31
Native switch component ( #4610 )
...
* Switch component initial draft
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Add onClick event
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* onClick fine-tunings
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fine-tuning styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix light theme thumb color
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Using native switch in places
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Removing material ui switcher
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Revert "Removing material ui switcher"
This reverts commit 6b9e0a090c .
* Mark Switcher and FormSwitch as deprecated
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Using theme-light mixin
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix fetching values from onChange callback
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Add custon onChange event with checked prop
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Check for onChange() availability
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix show minimap label
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-12-30 13:58:28 +03:00
Alex Andreev
d8dbe51e7a
Fix close button overflow in Preferences ( #4611 )
...
* Adding basic colors to tailwind theme
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Using tailwind inline to style close button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Make Select look similar to inputs
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Moving styles into separate module
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Convert tailwind commands to css
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-12-28 17:10:06 +03:00
Janne Savolainen and Mikko Aspiala
c5613a2e6a
Remove WelcomeBannerRegistry in favor of reactive solution
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-28 13:55:55 +02:00
Janne Savolainen and Mikko Aspiala
04ac2ff3dd
Remove WelcomeMenuRegistry in favor of reactive solution
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-28 13:55:54 +02:00
Janne Savolainen and Mikko Aspiala
ab4a8c8a1d
Convert a class component to functional component
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-28 13:55:50 +02:00
Janne Savolainen and Mikko Aspiala
908a40975e
Extract minimal dependencies over a god class to satisfy Interface Segregation Principle and make stubbing in unit testing easier
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-28 11:51:35 +02:00
Janne Savolainen and Mikko Aspiala
13873f5d85
Replace a dependency to full implementation with an interface to allow minimal stubbing
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-28 11:51:34 +02:00
Janne Savolainen and Mikko Aspiala
a9189f82e6
Stop using global shared state for ExtensionDiscovery and it's relatives
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-28 11:51:34 +02:00
Janne Savolainen
41aacb3db2
Merge pull request #4612 from jansav/update-injectable
...
Adapt to recent simplifications in injectable
2021-12-28 11:51:11 +02:00
Janne Savolainen and Mikko Aspiala
5325b902b6
Fix code style
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-27 14:17:40 +02:00
Janne Savolainen and Mikko Aspiala
c2e5df0c84
Stop exporting dependencies for being redundant
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-27 14:17:39 +02:00
Janne Savolainen and Mikko Aspiala
6f0686e9a4
Adapt to changes in injectable
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-27 14:17:38 +02:00
Janne Savolainen and Mikko Aspiala
8a78c73e19
Update ogre-tools and async-fn
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com >
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-27 14:17:37 +02:00
Roman
b127af7bb6
DRY: light theme sass mixin ( #4606 )
...
Signed-off-by: Roman <ixrock@gmail.com >
2021-12-27 13:21:14 +02:00
Roman
7e498d52d0
fix: leaking global classes from cluster-issues css-module ( #4605 )
...
Signed-off-by: Roman <ixrock@gmail.com >
2021-12-27 09:48:04 +01:00
Sebastian Malton and Alex Andreev
8082501bb3
Remove unnecessary CatalogEntityItem ( #4582 )
...
* Remove unnecessary CatalogEntityItem
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Using simple notation to set search url params
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix styles file name
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-12-24 13:49:34 +03:00
Roman
2d279a6b99
using both sass + modules + tailwind (optional) ( #4604 )
...
using sass + css-modules + tailwind for styling, part of #3701
2021-12-23 12:29:36 +02:00
Strokachuk Oleg
71175a0ae1
Show all helm release statuses. Fix lensapp#4586 ( #4594 )
...
Signed-off-by: zifter <zifter.ai@gmail.com >
2021-12-23 12:20:27 +03:00
Juho Heikka
9284741df5
Show splash window until bundled extensions have been loaded ( #4570 )
...
* Show splash window until bundled extensions have been loaded
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Remove unnecessary variable.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Refactor autoInitExtensions
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
* Add timeout to waiting for bundled extensions to load
Signed-off-by: Juho Heikka <juho.heikka@gmail.com >
2021-12-23 11:00:18 +02:00
Jari Kolehmainen
43277d2af6
Less noisy metrics-not-available error logging ( #4602 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-12-22 16:11:06 +02:00
Sebastian Malton
f8fa33ec8c
Upgrade to latest version of @typescript-eslint/* pkgs ( #4576 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-12-20 07:18:01 +03:00
Sebastian Malton
8f194b87c3
Add getBaseRegistryUrl dep to attemptInstallByInfoInjectable ( #4590 )
2021-12-17 11:53:00 -05:00
Sebastian Malton
43c16d6203
Fix <Extensions> not building ( #4588 )
2021-12-17 11:01:34 -05:00
Sebastian Malton
e9d99d8485
Replace all uses of promiseExec with promiseExecFile ( #4514 )
2021-12-17 10:29:09 -05:00
Sebastian Malton
78678bdf2f
Add support for customizing the extension install registry URL ( #4503 )
2021-12-17 10:28:59 -05:00
Janne Savolainen
a711499bb6
Update ogre-tools for improved types of withInjectables ( #4587 )
2021-12-17 10:28:26 -05:00
Juho Heikka
96309814dc
Add ability from extension to add preferences to application preferences ( #4579 )
2021-12-17 08:30:05 -05:00
Sebastian Malton
bde0a9ef91
Change isEnabledForCluster to use KubernetesCluster instead of Cluster ( #4584 )
2021-12-17 08:28:47 -05:00
Janne Savolainen
3418c0acfe
Merge pull request #4527 from jansav/make-menu-registry-obsolete
...
Remove MenuRegistry in favour of dependency injection
2021-12-16 15:11:30 +02:00
Janne Savolainen
c0a0127d2d
Merge pull request #4557 from lensapp/remove-weird-whitespace
...
Remove all 'NonBreakingSpace' characters from the repo
2021-12-16 08:38:55 +02:00
Janne Savolainen
f56f3be79b
Merge pull request #4569 from lensapp/issue-4567
...
Fix crash with InstallChart
2021-12-16 08:27:20 +02:00
Janne Savolainen
8337dfd21b
Fix test that was accidentally broken
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi >
2021-12-16 07:14:16 +02:00