Janne Savolainen
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
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
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
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
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
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
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
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
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
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
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
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
Janne Savolainen
250b301655
Revert code style change
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-16 07:14:16 +02:00
Janne Savolainen
a2486da0eb
Fix linting
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-16 07:14:15 +02:00
Janne Savolainen
2189679a30
Merge remote-tracking branch 'upstream/master' into make-menu-registry-obsolete
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-15 16:14:08 +02:00
Sebastian Malton
e32c33fc18
Add lint rule
...
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-15 08:41:28 -05:00
Janne Savolainen
9f7515db0e
Revert "Introduce a way to start replacing usages of Singleton base-class with no changes required on use places"
...
This reverts commit 34a47f5f
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-15 15:37:37 +02:00
Janne Savolainen
c92c8f8a11
Replace global state usages of ExtensionLoader with DI
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-15 15:37:36 +02:00
Janne Savolainen
0b172de741
Adapt to change in DI to minimize boilerplate
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-15 15:13:43 +02:00
Sebastian Malton
f6193718ff
Fix crash on NetworkPolicy when matchLabels is missing ( #4500 )
2021-12-14 14:10:27 -05:00
Alex Andreev
637f26ae1e
Custom title controls on Windows ( #4528 )
...
* Add context menu in topbar
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding windows title buttons
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding win sandwitch icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Hide windows controls behind the flags
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix topbar layout
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Using topbar as draggable area
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix sandwich icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Mark no-draggable areas
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove ipcMainOn window calls
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Explicitly hide main window menu
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix tests more
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Restore linux native view
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Not removing menu in linux
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Showing custom window buttons in Linux
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove frame on linux and windows
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Move open context menu event handler to initializers
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Set x, y context menu position explicitly
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-12-14 19:01:57 +02:00
Sebastian Malton
1e22cffcd8
Fix extension engine range not working for some ^ ranges ( #4554 )
2021-12-14 11:57:34 -05:00
Sebastian Malton
d775d53078
Fix not being able to clear set cluster icon ( #4555 )
2021-12-14 11:38:31 -05:00
Sebastian Malton
a454b29971
Fix crash with InstallChart
...
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-14 09:15:15 -05:00
Sebastian Malton
56e72b3a74
Fix ERR_UNSAFE_PORT from LensProxy ( #4558 )
...
* Fix ERR_UNSAFE_PORT from LensProxy
- Use the current list of ports from chromium as it is much easier to
just reject using one of those instead of trying to handle the
ERR_UNSAFE_PORT laod error from a BrowserWindow.on("did-fail-load")
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Move all port handling into LensProxy
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* don't use so many exceptions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-14 12:38:35 +02:00
Sebastian Malton
1d1a85f9ea
Use electron.clipboard for all clipboard uses ( #4535 )
2021-12-13 10:45:24 -05:00
Sebastian Malton
c0e0408c9b
Remove all 'NonBreakingSpace' characters from the repo
...
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-10 13:06:33 -05:00
Sebastian Malton
181197fad8
Remove unnecesarry TerminalApi.destroy and TerminalApi.reconnect overloads ( #4538 )
2021-12-10 09:07:18 -05:00
Sebastian Malton
747ef8daee
Special case goBack to navigate to catalog if no where to go back to ( #4544 )
2021-12-10 09:07:07 -05:00
Sebastian Malton
6284bd1eb4
Fix crash in ClusterStatus ( #4533 )
2021-12-09 16:03:18 -05:00
Sebastian Malton
b665a2efe7
Fix freeze after closing terminal on windows ( #4536 )
2021-12-09 15:52:27 -05:00
Sebastian Malton
541c00cf24
Add tooltip for cluster name in sidebar ( #4534 )
2021-12-09 08:40:06 -05:00
Iku-turso
f3d45ea78b
Fix hangup on application start by auto-registering more injectables
...
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-09 14:35:29 +02:00
Alex Andreev
3dd6b432c9
Export KubeJsonApi to extensions ( #4496 )
...
* Export KubeJsonApi to extensions
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Make forCluster() to consume clusterId as arg
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fix lint
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-12-09 15:11:34 +03:00
Janne Savolainen
b4a1c2af9f
Make ExtensionLoader injectable to avoid confusion when instance should be created
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-09 08:14:15 +02:00
Janne Savolainen
34a47f5f44
Introduce a way to start replacing usages of Singleton base-class with no changes required on use places
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-09 08:09:49 +02:00
Janne Savolainen
f9cf08b4a8
Make sure that extensions have been initialized before exposing them as enabled extensions
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-09 07:41:43 +02:00
Janne Savolainen
41837e86bb
Remove forgotten console.log used for debug
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-08 14:17:15 +02:00
Janne Savolainen
717b62d2e6
Remove obsolete code
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-08 13:10:50 +02:00
Janne Savolainen
67c24cac9a
Switch to getting menu items by observing change in extensions instead local state
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2021-12-08 13:10:50 +02:00
Mario Sarcher
16a26724d9
Fixes a typo in kubeconfig sync "add"-button label ( #4522 )
...
Signed-off-by: Mario Sarcher <mario@sarcher.de>
2021-12-08 08:12:29 +01:00
Janne Savolainen
7ed50f83fc
Add breadcrumbs to removal of kube objects, but also discuss about general improvements ( #4282 )
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Co-authored-by: Janne Savolainen <janne.savolainen@houston-inc.com>
Co-authored-by: Mikko Aspiala <mikko.aspiala@houston-inc.com>
2021-12-06 13:05:05 -05:00
Sebastian Malton
304941d397
Fix IngressApi being registered with a wrong new apiBase ( #4485 )
2021-12-03 15:19:01 -05:00
Sebastian Malton
7dfd4d586c
Fix error notifications not being displayed for CreateResource tab ( #4502 )
2021-12-03 12:49:42 -05:00
Alex Andreev
d73df7fe0d
Show active hotbar on bottom ( #4476 )
...
- Extends extension API to support choosing sides for bottom bar entries
2021-12-03 09:41:08 -05:00
dependabot[bot]
8055ba261b
Bump @types/url-parse from 1.4.4 to 1.4.5 ( #4494 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-12-03 08:59:18 -05:00
Jim Ehrismann
29c9c73a13
catch app.getPath() errors ( #4492 )
...
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-12-02 20:52:03 -05:00
dependabot[bot]
1c16b697ae
Bump joi from 17.4.2 to 17.5.0 ( #4486 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-12-02 16:09:38 -05:00
Jim Ehrismann
f78d9c5fc2
add debug for locating startup issues ( #4481 )
2021-12-02 09:34:06 -05:00
Alex Andreev
6e543961ac
Fixing unexpected avatar width shrink ( #4483 )
2021-12-02 09:12:44 -05:00
Panu Horsmalahti
696986b7e6
Use PartialDeep for patch type ( #4420 )
...
* Use PartialDeep for patch type.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Add test. Fix typing.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Fix lint.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-12-02 15:28:28 +02:00
Alex Andreev
f02018c1e7
Fix light theme pin icon visibility ( #4477 )
...
* Remove what-input dependency
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Use focus-visible prop and color fix in Icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-12-02 11:12:16 +03:00
Sebastian Malton
4c16b7020d
Fix KubeApi.create not populating kind and apiVersion ( #4478 )
2021-12-01 15:57:08 -05:00
Alex Andreev
9ce91884c2
Replacing <Avatar/> component by native one ( #4452 )
2021-12-01 08:28:56 -05:00
Sebastian Malton
80eeffc229
Log cluster model if adding a cluster fails when syncing from catalog ( #4463 )
2021-12-01 08:08:48 -05:00
Sebastian Malton
4257fce2f0
Fix NetworkPolicy engresses not having node/pod selectors displayed ( #4467 )
2021-12-01 08:08:26 -05:00
Jan Jansen
120134a084
Prefer usage of preference over autoselection ( #4436 )
2021-11-30 13:51:41 -05:00
Sebastian Malton
29220c1c73
Fix getLatestApiPrefixGroup to not fail when options.apiBase is not provided ( #4462 )
2021-11-30 11:27:20 -05:00
Juho Heikka
37b8fe45f5
Center text in notifications ( #4461 )
...
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2021-11-30 18:01:04 +02:00
Sebastian Malton
2f14b7a70a
Refactor Nodes view metrics renderer ( #3990 )
2021-11-30 10:30:54 -05:00
Sebastian Malton
f0274d08a4
Add Check-For-Updates in menu and some notifications ( #4437 )
2021-11-30 10:30:42 -05:00
Sebastian Malton
7ce4a87ac8
Add support for resizing Drawers ( #4440 )
...
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-11-30 09:09:19 -05:00
Sebastian Malton
df46dd9ef6
Fix not being able to remove role bindings via the UI ( #4394 )
2021-11-30 09:06:54 -05:00
Sebastian Malton
2ab9aeb83c
Correctly handle promises and rejections around cluster connection ( #4216 )
2021-11-30 09:05:34 -05:00
Sebastian Malton
0286faf387
Fix detail views not watching child components ( #4345 )
...
* Fix detail views not watching child components
- Add subscribeStores calls to all relavent details
- Add support for tracking overlapping subscribes as an optimization
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Resolve PR comments
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Detect the adding of a namespace when selected namespaces change
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Update debug log
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-29 17:25:35 -05:00
Alex Andreev
8ff7c03993
Fix hotbar items drag-n-drop bugs ( #4433 )
2021-11-29 12:45:32 -05:00
Jim Ehrismann
0673c98f4e
Add a query param for filtering port forwards by clusterId ( #4441 )
...
* Add a query param for filtering port forwards by clusterId
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
* pass clusterId query as param
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
* pass queries as params for other apiBase calls, for consistency
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-11-29 12:21:45 -05:00
Sebastian Malton
406f595011
Fix lint ( #4438 )
2021-11-26 11:25:54 -05:00
Marc Bachmann
b3723de3ec
Add more file system metrics to the pod and container graphs ( #3961 )
2021-11-26 10:03:12 -05:00
Sebastian Malton
aab48a784c
Cleanup OverviewWorkloadStatus, remove findDOMNode ( #4392 )
2021-11-26 08:42:17 -05:00
Sebastian Malton
0e7704ea3f
Change KubernetesCluster's settings menuItem's icon to a cog ( #4425 )
2021-11-26 08:41:08 -05:00
Janne Savolainen
c9503c1d14
Allow asynchronous instances in injectable typing
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-11-26 07:44:30 +02:00
Mikko Aspiala
3bc01dc50f
Make Inject-component usable in both LensApp and "App"
...
Note: this will need some rehaul, as current design with "bootstrap" and iframe make single root for injectables somewhat challenging.
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-11-26 07:44:20 +02:00
Janne Savolainen
c4c4bc5845
Introduce a way to use injectables for UI
...
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-11-26 07:44:17 +02:00
Roman
448fdd1ef2
Mobx package upgrade ( #4357 )
2021-11-25 12:02:59 -05:00
Roman
4f33dfdfd5
Allow to navigate to created resource details from notification ( #4422 )
...
navigate to created resource details from notification
2021-11-25 18:04:41 +02:00
Sebastian Malton
44f1f38a75
Fix: display of entity name while connecting ( #4415 )
2021-11-25 10:00:25 -05:00
Alex Andreev
0fe0b33c67
Fix cluster dropdown invisible overlay ( #4411 )
...
* Use setTimeout instead of unstable onTransitionEnd
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Remove clicking Disconnect after each test
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Fixing tests harder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Clean up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-11-24 18:52:35 +03:00
Panu Horsmalahti
0ca8448d33
Retry watch if timeout set, but request was not retried ( #4388 )
...
* Retry watch if timeout set, but request was not retried.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Cancel current request if retried.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Clarify retried variable/comment
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-11-24 15:56:01 +02:00
Jari Kolehmainen
820b2d1b7a
Revert "Broadcast cluster's disconnected state before stopping KubeAuthProxy ( #4273 )" ( #4412 )
...
This reverts commit 8081d35f9c .
2021-11-24 16:18:30 +03:00
Sebastian Malton
5d172b89db
Cleanup Prometheus detection ( #4316 )
2021-11-23 14:34:45 -05:00
Sebastian Malton
8081d35f9c
Broadcast cluster's disconnected state before stopping KubeAuthProxy ( #4273 )
2021-11-23 14:34:37 -05:00
Sebastian Malton
8c9e3b2fdc
Fix cwd not being respected for local shells on windows ( #4395 )
2021-11-23 14:34:18 -05:00
Jari Kolehmainen
32dfc74aff
Add unit tests for BaseStore ( #4404 )
...
* fix possible race condition in BaseStore persistence
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* cleanup variable names in tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* remove async
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-23 19:41:16 +02:00
Sebastian Malton
7c5a0a9a6d
Improve local shell CWD setting ( #4396 )
2021-11-23 08:35:16 -05:00
Sebastian Malton
8f84f394fe
Fix all-or-nothing when initially loading extensions ( #4384 )
...
* Fix all-or-nothing when initially loading extensions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Log error instead of displaying error box
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-22 20:30:47 -05:00
Sebastian Malton
78a4e2a126
Catch and display load errors for WorkloadsOverview ( #4393 )
2021-11-22 12:27:54 -05:00
Sebastian Malton
0e5fc65806
Fix race condition in LensViews.handleVisibleClusterChange ( #4387 )
2021-11-22 09:43:26 -05:00
Sebastian Malton
885af07d0b
Improve bootstrap logging for help with iframe debugging ( #4020 )
2021-11-18 16:54:43 -05:00
Jari Kolehmainen
fe4a56ba59
Add keepalive option in JsonApi.getResponse ( #4374 )
...
* add keepalive option in JsonApi.getResponse
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-18 09:21:28 -05:00
Alex Andreev
4121672838
Fixing cluster dropdown focus state ( #4377 )
2021-11-18 09:09:31 -05:00
Alex Andreev
8bc936802b
Maximize window on topbar double click ( #4379 )
2021-11-18 09:08:53 -05:00
Alex Andreev
92e178a70d
Fix material icons flash on app load ( #4378 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-11-18 15:48:12 +03:00
Sebastian Malton
0f2801552f
Fix handling of PTYs when renderer is reloaded ( #4346 )
...
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-17 13:48:46 -05:00
Janne Savolainen
e146dff9da
Prefer ref over findDOMNode to make unit tests not flaky ( #4372 )
...
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2021-11-17 11:38:42 -05:00
Jim Ehrismann
1fad7a18f9
Ensure Drawer copyTitle() copies everything after the first ':' ( #4373 )
...
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-11-17 11:34:45 -05:00
Jari Kolehmainen
2446b6cf9b
Add tests for KubeApi.watch timeout ( #4367 )
2021-11-17 09:34:05 -05:00
Sebastian Malton
2fc588aed5
Fix dropdowns not being searchable for ClusterRoleBindingDialog and RoleBindingDialog ( #4272 )
...
* Fix dropdowns not being searchable for ClusterRoleBindingDialog and RoleBindingDialog
- Added some tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix unit test
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-17 08:01:40 -05:00
Panu Horsmalahti
14ab00d017
Fix concurrent loadItems in CatalogEntityStore ( #4356 )
...
* Fix concurrent loadItems in CatalogEntityStore
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Add parameter to loadItems.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
* Remove unnecessary overloading.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-11-17 11:33:42 +02:00
Alex Andreev
0587301cc9
Fix drawer icons unexpected outline ( #4364 )
...
* Removing MenuItem border in MenuActions
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding hover effect to catalog details icons
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-11-17 11:30:54 +03:00
Jari Kolehmainen
ca15919218
Add timeout option to KubeApi.watch ( #4365 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-17 10:23:05 +02:00
Roman
4eb9a689ba
Allow to scroll table columns with labels (badges) ( #4358 )
2021-11-16 14:05:14 -05:00
Sebastian Malton
159c240a80
Display resource load errors seperately from list of items ( #4228 )
2021-11-16 12:41:10 -05:00
Alex Andreev
df230d2bec
<Menu/> styles fine-tuning ( #4279 )
2021-11-16 11:14:28 -05:00
Roman
c3bf05a263
Catalog pin icon too far from entity name, fix #4350 ( #4355 )
...
Signed-off-by: Roman <ixrock@gmail.com>
2021-11-16 14:47:09 +02:00
Alex Andreev
125f49fc8e
Fixing setting page bottom margin ( #4353 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-11-16 15:45:50 +03:00
chh
2d5b39e0e6
Fix typo KubeObject.nonEditiablePathPrefixes > KubeObject.nonEditablePathPrefixes ( #4351 )
2021-11-16 14:04:12 +02:00
Jari Kolehmainen
385de469ad
allow to call KubeApi.delete without namespace parameter ( #4349 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-16 09:14:41 +02:00
Sebastian Malton
53dd538350
Fix edit-resource by correctly saving first draft ( #4342 )
2021-11-15 16:32:46 -05:00
Jim Ehrismann
3feb0d1651
Made 'Forward...' buttons have primary style ( #4341 )
2021-11-15 11:16:55 -05:00
Sebastian Malton
e51ff5051f
Fix crash when finding CRD's preferred version ( #4332 )
2021-11-15 11:16:37 -05:00
Roman
4c83f5becf
Replacing global themed sass-vars to css-vars ( #4322 )
...
* generating css-vars
* convert all global / theme sass vars to css vars with available default theme colors
* added missing colors to dark lens theme
2021-11-15 17:37:23 +02:00
Panu Horsmalahti
3214d8dfd5
Export KubeStatus to extensions api. ( #4339 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-11-15 15:51:29 +02:00
Jari Kolehmainen
882f216368
Use propagationPolicy=Background by default for delete ( #4337 )
2021-11-15 08:29:22 -05:00
Sebastian Malton
b550ea9178
Reduce logging on failure to get cluster metrics ( #4284 )
2021-11-12 08:51:37 -05:00
Sebastian Malton
673f20fb74
Fix CRDs not updating in Sidebar ( #4288 )
2021-11-12 08:51:14 -05:00
Sebastian Malton
333d77f66a
Make Delete/Remove menu item consistent as Delete ( #4313 )
2021-11-12 08:51:04 -05:00
Sebastian Malton
a71a6dcaff
Always override PATH when syncing from shell ( #4132 )
2021-11-12 08:50:57 -05:00
Sebastian Malton
3522485c6f
Improve cluster connection visibility ( #4266 )
2021-11-12 08:49:21 -05:00
Jari Kolehmainen
23d5d40d62
Implement KubeApi.patch ( #4325 )
...
* implement KubeApi.patch
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* cleanup tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* keep it backward compatible
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-12 11:15:33 +02:00
Jari Kolehmainen
a86b306a48
add possibility to pass non-generic KubeApi to forRemoteCluster ( #4321 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-12 09:07:57 +02:00
Sebastian Malton
de4c7e4cff
Fix race condition in refreshViews ( #4094 )
2021-11-10 12:07:55 -05:00
Roman
38ebbc8b9e
Fix: Catalog's visibility columns menu -> Empty title for Icon ( #4189 )
...
* fix: Catalog -> Columns visibility menu -> Empty title for "Icon"
Signed-off-by: Roman <ixrock@gmail.com>
* moving entity-icon inside name column / fixes
Signed-off-by: Roman <ixrock@gmail.com>
* fix lint
Signed-off-by: Roman <ixrock@gmail.com>
* added vertical alignment for texts in the name column
Signed-off-by: Roman <ixrock@gmail.com>
2021-11-10 14:28:21 +02:00
Jari Kolehmainen
8846b5c96f
handle aborted responses in lens proxy ( #4308 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-10 13:47:36 +02:00
Sebastian Malton
c37a8aee0a
Correctly catch and notify user about NodeShell pod failures ( #4244 )
...
* Correctly catch and notify user about NodeShell pod failures
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix error throwing sometimes during Terminal.detach
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-09 22:52:46 -05:00
Sebastian Malton
1ce2e727af
Fix crash in IngressDetails ( #4267 )
...
* Fix crash in IngressDetails
- Adds check in Ingress.getServiceNamePort() for a
.spec.defaultBackend.resource instead of .spec.defaultBackend.service
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* remove undefined
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add comment about RequireExactlyOne
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-09 22:52:36 -05:00
Sebastian Malton
81b972a2d0
Make ws:// authentication more timing safe ( #4297 )
2021-11-09 14:24:32 -05:00
Sebastian Malton
18d695348b
Change base64 functions to be exported not as object children ( #4298 )
2021-11-09 13:43:45 -05:00
Sebastian Malton
e5bf5920fc
Keep shell processes alive between network offline periods ( #4258 )
2021-11-09 12:30:55 -05:00
Sebastian Malton
200061d386
Use .status.phase instead of computing it for Pod.getStatusMessage ( #4286 )
2021-11-09 09:33:42 -05:00
Alex Andreev
b52bd29784
Cluster sidebar dropdown ( #4292 )
...
* Making cluster area hoverable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Move sidebar cluster block to separate component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Clean up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Add keyboard support
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Adding tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-11-09 13:41:46 +03:00
Sebastian Malton
5eb1b8553d
Support window nodes for node-shells ( #3624 )
...
* Support window nodes for node-shells
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Also check beta.kubernetes/os label
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add comment about linux fallback
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-08 20:11:40 -05:00
Sebastian Malton
c09a57370e
Block shell websocket connections from non-lens renderers ( #4285 )
...
* Block shell websocket connections from non-lens renderers
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add IPC based authentication tokens
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix race condition on tab start
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-08 19:02:10 -05:00
Sebastian Malton
a399b8ee20
Fix crash on HorizontalPodAutoscalers view ( #4276 )
2021-11-08 10:12:26 -05:00