1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

1728 Commits

Author SHA1 Message Date
Roman
d656a9e289
Upgrade to webpack@5 (#4725)
* attempt to upgrade webpack@5 and all relevant packages to latest version -- part 1

Signed-off-by: Roman <ixrock@gmail.com>

* debugging webpack@5 usage -- part 1

Signed-off-by: Roman <ixrock@gmail.com>

* - attempt to use "react-refresh-typescript" with webpack@5 thingy
- extending getTSLoader() to accept more options from ts-loader

Signed-off-by: Roman <ixrock@gmail.com>

* more fixes, updating webpack loaders

Signed-off-by: Roman <ixrock@gmail.com>

* merge-fixes, using internal webpack@5 asset handlers (type: "asset/*")

Signed-off-by: Roman <ixrock@gmail.com>

* fix: raw-loader / <Icon svg="./*">, updated mocked types for importing resources via webpack

Signed-off-by: Roman <ixrock@gmail.com>

* removing webpack-dev-server, clean up

Signed-off-by: Roman <ixrock@gmail.com>

* fix master-merge conflict

Signed-off-by: Roman <ixrock@gmail.com>

* fix/reverted: use sourceMap for styles

Signed-off-by: Roman <ixrock@gmail.com>

* fix lint

Signed-off-by: Roman <ixrock@gmail.com>

* fix: loading svg icons inline as data-url (workaround for "?raw" as it fails in tests and "!!raw-loader!" seems doesn't work at all in webpack@5)

Signed-off-by: Roman <ixrock@gmail.com>

* attempt to use webpack-dev-server via node-api -- part 1

Signed-off-by: Roman <ixrock@gmail.com>

* attempt to use webpack-dev-server via node-api -- part 2

Signed-off-by: Roman <ixrock@gmail.com>

* fix: incorrect parsing svg-icon xml-content by <HotbarEntityIcon/>

Signed-off-by: Roman <ixrock@gmail.com>

* fix: more random fixes related to incorrect parsing svg-icon content, added static Icon.isSvg(content: string)

Signed-off-by: Roman <ixrock@gmail.com>

* attempt to fix: "Uncaught (in promise) DOMException: A network error occurred." when loading cluster frame -- part 1

Signed-off-by: Roman <ixrock@gmail.com>

* fix: loading cluster frame + error in loading terminal default font (which was causing network exception error and hidden cluster-view)
fix: proxying websockets (e.g. terminal)

Signed-off-by: Roman <ixrock@gmail.com>

* fix: wait lensProxy.listen() to obtain lensProxy.port for webpack-dev-server

Signed-off-by: Roman <ixrock@gmail.com>

* fix lint

Signed-off-by: Roman <ixrock@gmail.com>

* fix unit tests

Signed-off-by: Roman <ixrock@gmail.com>

* reverted auto-formatted imports with 2 lines (.idea/webstorm)

Signed-off-by: Roman <ixrock@gmail.com>

* fix: handle warnings in main-process compilation files

Signed-off-by: Roman <ixrock@gmail.com>

* fix: handle warnings in "renderer" compilation

Signed-off-by: Roman <ixrock@gmail.com>

* fix: move app fonts preloading into html/css files, clean up

Signed-off-by: Roman <ixrock@gmail.com>

* update "webpack@5", "typescript@4.5" in bundled extensions / attempt to fix weird errors in build pipeline:

ERROR in /home/runner/work/lens/lens/src/extensions/npm/extensions/dist/src/common/catalog/catalog-category-registry.d.ts
6:27-35
[tsl] ERROR in /home/runner/work/lens/lens/src/extensions/npm/extensions/dist/src/common/catalog/catalog-category-registry.d.ts(6,28)
      TS1005: ',' expected.

ERROR in /home/runner/work/lens/lens/src/extensions/npm/extensions/dist/src/renderer/components/select/select.d.ts
8:14-28
[tsl] ERROR in /home/runner/work/lens/lens/src/extensions/npm/extensions/dist/src/renderer/components/select/select.d.ts(8,15)
      TS1005: ',' expected.

ERROR in /home/runner/work/lens/lens/src/extensions/npm/extensions/dist/src/renderer/api/catalog-entity-registry.d.ts
8:14-22
[tsl] ERROR in /home/runner/work/lens/lens/src/extensions/npm/extensions/dist/src/renderer/api/catalog-entity-registry.d.ts(8,15)
      TS1005: ',' expected.

Signed-off-by: Roman <ixrock@gmail.com>

* fix: handle errors in bundled extensions compilation process

Signed-off-by: Roman <ixrock@gmail.com>

* fix: "webpack" not found in production

Signed-off-by: Roman <ixrock@gmail.com>

* fix: removed preloading fonts in template via <link preload> since it's not bundled with HtmlWebpackPlugin() anyway anda all fonts loaded via css @font-face rule

Signed-off-by: Roman <ixrock@gmail.com>

* apply HMR at least for css/styles and use manual page reload on app/scripts change

Signed-off-by: Roman <ixrock@gmail.com>

* use `react-refresh-typescript` and `@pmmmwh/react-refresh-webpack-plugin` to support HMR in most cases

Signed-off-by: Roman <ixrock@gmail.com>

* responding to comments

Signed-off-by: Roman <ixrock@gmail.com>

* revered extension version in package-lock.json (autoupdated on `make dev`)

Signed-off-by: Roman <ixrock@gmail.com>
2022-02-15 17:04:12 +02:00
Sebastian Malton
46585ee9d8
Rename KubernetesCluster MenuItem from Delete to Remove (#4854) 2022-02-14 09:24:38 -05:00
Janne Savolainen
668ac58cb3
Consolidate way of passing items to ItemListLayout (#4850) 2022-02-11 09:32:14 -05:00
Panu Horsmalahti
e626cc91d4
Don't block other extensions from loading if one activation fails (#4805)
* Don't block other extensions from loading if one activation fails.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Handle synchronous errors in onActivate

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Keep extensions that can't be activated in this.intances

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Return extensions that failed to be activated from loadExtensions to match old behavior.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Simplify style.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Simplify object. Remove unnecessary action.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2022-02-11 16:13:34 +02:00
Jim Ehrismann
9b9b8e0d05
ShellEnv extension api (#4802)
* adding extension api for terminal environment variables

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* modified shell env api to work as a transformer (WIP)

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* address some review comments

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* shell env modifiers now take a CatalogEntity in ShellEnvContext param

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* tweaks and bug fix

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* refactored to remove ShellEnvModifier code from shell-session to local-shell-session

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* further refactoring and documentation

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* added comment

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-02-10 16:01:59 -05:00
Sebastian Malton
81e6dc5d8e
Allow better typings for extending type of KubernetesCluster (#4843) 2022-02-10 15:55:03 -05:00
Juho Heikka
e950d3a77e
Expose Electron powerMonitor API to extensions (#4844) 2022-02-10 15:45:01 -05:00
Mario Sarcher
ab61f84364
Fixes the Catalog ItemListLayout that rendered outdated Entities (#4845) 2022-02-10 10:35:02 -05:00
Jari Kolehmainen
c46d0036cc
Bundle kubectl 1.23.3 (#4837) 2022-02-10 09:38:21 -05:00
Sebastian Malton
8480b2a1e5
Fix StatusBar extension API (#4838)
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-02-10 09:08:59 -05:00
Sebastian Malton
15c867745f
Restrict title name to be only string (#4839)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-09 07:41:12 -05:00
Sebastian Malton
d4d2da1d28
Fix extension sidebar items sometimes being expandable (#4835)
* Fix extension sidebar items sometimes being expandable

- Change <TabRoutesSidebarItems> to be just a helper function

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Actual fix

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-08 20:21:54 +02:00
Sebastian Malton
f53892cb46
Fix custom-resource navigation (#4831)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-08 15:43:50 +02:00
Sebastian Malton
0745f9c063
Fix Cluster.refresh sometimes taking upwards of 20s (#4826)
- Only read and parse the proxy config once

- Reuse the AuthorizationV1Api instance for the entire refresh instead
  of recreating it between 32 and 302 times, this should allow for
  reusing sockets

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-08 15:37:46 +02:00
Sebastian Malton
4abe0d6c20
Only group delete visible items (#4798) 2022-02-07 10:40:20 -05:00
Sebastian Malton
06ec1b39a4
Fix not being able to install extensions sometimes (#4794) 2022-02-07 09:07:09 -05:00
Sebastian Malton
76f48df56b
Fix rerendering of KubeObject views every 30s (#4801)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
2022-02-03 09:11:28 -05:00
Alex Andreev
00314aabc0
Fix unresponsive kubectl download binaries switch (#4807)
* Add observer wrapper to KubectlBinaries

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Add missing terminal title

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-02-03 14:57:55 +03:00
Janne Savolainen
09824a6e01
Prevent creation of dynamic components where withInjectables use type parameters to make React not re-mount because of dynamic components being different (#4808)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-02-03 13:26:14 +02:00
Jari Kolehmainen
6ebfd76644
Use system-node-critical priorityClassName for node shell (#4800)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2022-02-03 07:37:21 +02:00
Janne Savolainen
e58d9b631a
Fix bugs in ItemListLayouts/KubeObjectListLayouts (#4792)
* Fix virtual list behaviour in item list layout by making table rows observer

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Make selecting item in ItemListLayout not scroll to top

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Fix scrolling to top when selecting all items in item list layout

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Fix refreshing release values when release is unselected

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Remove noisy debugging

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Fix sorting of table rows

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Replace avoidable asyncComputed with normal computed

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Revert unnecessary code style changes

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Fix render-storm in Events

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Fix missing key in React array

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-02-02 16:46:07 +02:00
Alex Andreev
334ab56f9d
Fix dialog icons hover color (#4791)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-02-02 16:47:33 +03:00
Alex Andreev
576135f723
Fix quota entries layout in Add Resouce Quota dialog (#4789)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-02-02 16:46:33 +03:00
Janne Savolainen
e8205a64b9
Fix bugs in helm releases (#4785)
* Fix opening of upgrade release tab

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Bring back ability to rollback to specific revision

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Fix helm releases not updating after rollback

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Fix helm releases not updating after upgrade

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-02-01 16:18:43 +02:00
Sebastian Malton
dd4aa30b8d
Update Node.getRoleLabels() to work with kube 1.16's defaults (#4771)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-01 07:33:39 -05:00
Jim Ehrismann
4ec36a154d
select all on helm releases now selects all or none (toggles) (#4742)
* select all on helm releases now selects all (or none if all were already selected)

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* Fix isSelectedAll when no items are visibile

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Co-authored-by: Sebastian Malton <sebastian@malton.name>
2022-02-01 08:05:45 +02:00
Juho Heikka
a0f474a676
Disable native window open (#4778)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2022-01-31 17:59:49 +02:00
Sebastian Malton
0b1696fe16
Fix build due to removal of old extended collections (#4779) 2022-01-31 10:46:40 -05:00
Janne Savolainen
ac42a6565f
Replace kube object menu registry with reactive solution (#4731)
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2022-01-31 10:16:29 -05:00
Sebastian Malton
0ce4e3d793
Full dependency inversion of <Dock> and all current tab kinds (#4757)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-31 09:49:36 -05:00
Alex Andreev
65669f6a64
Fix: increase catalog entity name col width (#4776)
* Increase .entityName col width

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adjust catalog menu paddings

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix table head border color

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-01-31 17:04:15 +03:00
Dmitriy Noa
a9abcf99e4
Fix failing lint in master (#4775)
Signed-off-by: DmitriyNoa <dmytro.zharkov@gmail.com>
2022-01-31 11:03:49 +01:00
Sebastian Malton
38790eb886
Upgrade to latest for all linting deps (#4755)
* Upgrade to eslint latest

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix OOM error

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* resolve PR comments

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-29 07:46:37 -05:00
Sebastian Malton
2ad78c2a86
Fix item menus for several pages (#4770) 2022-01-28 11:08:06 -05:00
Janne Savolainen
09b33633f7
Replace StatusBarRegistry with reactive solution (#4728) 2022-01-28 08:40:58 -05:00
Sebastian Malton
8d8491a035
Ensure that CatalogEntity.getName() and CatalogEntity.getId() are always used (#4763) 2022-01-27 14:42:19 -05:00
Jari Kolehmainen
1cac3ca74c
Upgrade to Electron 14.2.4 (#4625)
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-01-27 10:23:36 -05:00
Sebastian Malton
a2b9153e52
Allow users of KubeObjectListLayout to override all props of ItemListLayout (#4752)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-27 07:13:56 -05:00
Sebastian Malton
162741a7cc
Fix multi-document support in monaco editor (#4756)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-27 07:13:41 -05:00
Alex Andreev
5fb465802b
Do not pass blurOnEnter to html element (#4762)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-01-27 15:05:26 +03:00
Alex Andreev
e353d530e8
Remove first column padding (#4761)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-01-27 13:05:13 +03:00
Jari Kolehmainen
57a2647a03
Export missing k8s api types for extensions (#4749)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2022-01-27 08:30:09 +02:00
Sebastian Malton
b3df5b4fc6
Fix pod logs dock tab (#4738)
- Move all dependencies into a transient LogsViewModel

- Remove dependencies on dockStore.selectedTab

- Make all bindings as late as possible, as per mobx rules

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-25 07:04:11 -05:00
Alex Andreev
b037c3bf02
Fix: keep ItemListLayout scrollable with custom views (#4737)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-01-25 08:04:42 +03:00
Sebastian Malton
53ffc62391
Add extension API for registering custom category views (#4733) 2022-01-21 16:44:57 -05:00
Janne Savolainen
4f5a2988cb
Fix infinite render loop in release details (#4710)
* Fix infinite render loop in release details by replacing stateful, UI-triggered releaseStore with reactive async computed

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Update injectable

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Remove unnecessary return

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Remove empty lines

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Allow injection of history

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Make data required for opening of release details a dependency to make sure it's present

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Remove dead code

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Make arriving release values not re-render whole details

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-21 16:29:10 +02:00
Dmitriy Noa
b7d29f8c49
Font settings for editor and ternimal (#4694)
* Add font settings for editor. Add terminal tab

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Move shell settings to terminal tab

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Add termilan font settings to store

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Fix store crash

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Cleanup

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Remove unsued font-list

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Cleanup. Move default font size to a const

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Remove package.lock

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* PR fixes and cleanup

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Move to settings object

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Test

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Add reaction to update terminals. Cleanup

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Add config field to terminal

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Merge with master and resolve conflicts

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Fix merge issues

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

* Fix lint and resolve conflicts

Signed-off-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>

Co-authored-by: DMYTRO ZHARKOV <dmytrozharkov@DMYTROs-MBP.fritz.box>
2022-01-21 09:18:53 +01:00
Jim Ehrismann
6cba82c491
redid changes after large refactor on master (#4688)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-01-20 09:38:16 -05:00
Panu Horsmalahti
23c38b1f4e
Fix race condition with extension loading. (#4724)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2022-01-20 12:01:42 +02:00
Sebastian Malton
411b9a9a88
Add support for custom columns on catalog categories (#4708) 2022-01-19 10:22:22 -05:00
Jim Ehrismann
d31ab690c2
Refactor app-preferences-registry to use di (#4671)
* converting app-preferences to use di

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* address review comments and fix lint

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* use compact license header

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-01-19 08:54:45 -05:00
Andreas Schmidt
86f14a9cdf
fix inputs not blurring when pressing enter (#4692) 2022-01-19 08:27:55 -05:00
Jari Kolehmainen
b7cb10521e
Drop old (< 3.0) cluster-store migrations (#4718) 2022-01-19 08:27:34 -05:00
Panu Horsmalahti
79c01daf6a
Support extending KubernetesCluster in extensions (#4702)
* Support extending KubernetesCluster in extensions

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Simplify getItemsByEntityClass

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Make apiVersion string.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Improve entity loading for extension custom types.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Improve comment.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Fix lint.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Properly handle loading custom entity in cluster-frame

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Avoid .bind with .loadOnClusterRenderer

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Fix lint.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Revert style change.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Make loadOnClusterRenderer arrow function again, revert autoInitExtensions change as unnecessary

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Remove commented code.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Document extending KubernetesCluster in extension guides.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2022-01-19 14:57:42 +02:00
Alex Andreev
74d92d09d9
Fix: remove hotbar name from status bar (#4679)
* Show tooltip with hotbar name manually

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove this.refreshPosition() call

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove hotbar name from status bar

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Convert HotbarSelector to use css modules

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove unused export

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fixing linter

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Clean up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Invert invisible prop

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Linter fix

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-01-19 14:31:15 +03:00
Roman
e862d5bf1d
Allow to customize terminal theme (#4666) (#4690)
Allow to customize terminal theme, fix #2224

(cherry picked from commit a5e89b79d6)
2022-01-18 18:16:50 +02:00
dependabot[bot]
f629de8589
Bump marked from 2.1.3 to 4.0.10 (#4695)
* Bump marked from 2.1.3 to 4.0.10

Bumps [marked](https://github.com/markedjs/marked) from 2.1.3 to 4.0.10.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](https://github.com/markedjs/marked/compare/v2.1.3...v4.0.10)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Upgrading marked types

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-01-18 12:33:36 +03:00
Janne Savolainen
589472c2b5
Shorten license header to reduce amount of clutter in top of the files (#4709)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-18 10:18:10 +02:00
Gaurav Agrawal
66d0a354b1
replacing the deprecated substr() with slice() (#4687) 2022-01-17 13:57:03 -05:00
Sebastian Malton
eb93a2eee7
Revert "Add auto-detect support for Victoria Metrics Single" (#4705) 2022-01-17 13:55:30 -05:00
Jari Kolehmainen
ae10c4d87a
Add auto-detect support for Victoria Metrics Single (#4693) 2022-01-17 13:55:00 -05:00
Janne Savolainen
1e772e5303
Fix import
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-14 08:05:22 +02:00
Janne Savolainen
edd9dcd44b
Fix duplicate import
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-14 08:04:25 +02:00
Janne Savolainen
00f6d6bc1f
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-app-paths 2022-01-14 07:59:42 +02:00
Janne Savolainen
7c97303414
Remove duplicated LICENSE header
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-14 07:52:37 +02:00
Roman
0be1ab4ce0
Revert "Allow to customize terminal theme (#4666)" (#4682)
This reverts commit a5e89b79d6.
2022-01-13 12:54:54 +02:00
Janne Savolainen
4e2995f979
Extract business logic from component while trying to solve re-rendering issue
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-13 09:04:15 +02:00
Janne Savolainen
06379b089b
Add TODO
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-13 09:01:34 +02:00
Roman
a5e89b79d6
Allow to customize terminal theme (#4666)
Allow to customize terminal theme, fix #2224
2022-01-12 17:42:51 +02:00
Sebastian Malton
2ee47a442a
Reroute to landing page from previously registered extension cluster pages (#4385) 2022-01-12 08:47:42 -05:00
Sebastian Malton
39beca0639
Fix Kubectl.downloadKubectl() (#4674)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-12 07:06:54 -05:00
Sebastian Malton
14b30d84a1
Fix crash for KubeObjectStore.loadAll() (#4675)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-12 07:05:27 -05:00
Janne Savolainen
09b52a59d8
Fix adding new namespace
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-12 09:06:25 +02:00
Sebastian Malton
d40071a9d5
Fix CommandOverlay for extension API (#4673) 2022-01-11 11:58:23 -05:00
Jim Ehrismann
58ffb8e3e4
ensure old, saved port-forwards get loaded (#4668)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-01-11 09:35:55 -05:00
Janne Savolainen
ecb93393d1
Fix issue with "this"
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-11 16:18:08 +02:00
Janne Savolainen
070750e736
Try fixing unit test in windows
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-11 14:51:57 +02:00
Janne Savolainen
883ece7ea2
Make unit test not fail on windows
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-11 14:34:46 +02:00
Janne Savolainen
977c6bd2c7
Move file to proper directory
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-11 14:05:04 +02:00
Janne Savolainen
0f33ba18d2
Simplify function
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-11 14:04:06 +02:00
Janne Savolainen
995983f0b0
Fix code style
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-11 14:03:51 +02:00
Janne Savolainen
8d87bd0985
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-app-paths
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-11 13:56:23 +02:00
Janne Savolainen
f7f27a8304
Merge pull request #4424 from lensapp/issue-3258
Command Palette Improvements
2022-01-11 09:20:02 +02:00
Janne Savolainen
a1fd61e41b
Mark electron to cause side effects in unit tests
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-11 09:12:23 +02:00
Janne Savolainen
b157bda76b
Fix deprecated comment
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-11 09:10:43 +02:00
Sebastian Malton
56c15e6b0f
Minor cleanup of Kubectl's downloadKubectl and writeInitScripts (#4556) 2022-01-10 10:48:58 -05:00
Janne Savolainen
e1a6d4c4a9
Merge remote-tracking branch 'origin/master' into eliminate-gst-from-app-paths 2022-01-10 17:13:20 +02:00
Jim Ehrismann
446eb5ca43
Keep port-forward objects around when not running (#4607)
* adding disabled status to port forwards (WIP)

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* more work

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* almost working

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* working

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* refactoring and bug fixing, still issue with port-forward-dialog

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* further refactoring and bug fixing

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* fixed remaining issues around port-forward dialog, changed port-forward-item id to resource name, etc from local port

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* documentation, more cleanup

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* address review comments

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-01-10 10:00:10 -05:00
Janne Savolainen
4b46f1fe02
Override a side effect in unit test
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-10 16:54:04 +02:00
Janne Savolainen
ae1d3a2712
Revert breaking change
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-10 16:54:04 +02:00
Janne Savolainen
eeff7e488f
Fix changing between cluster metrics
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-10 16:54:04 +02:00
Janne Savolainen
4d5e2bd812
Remove component observation causing involuntary re-renders
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-10 16:54:03 +02:00
Janne Savolainen
48948c7286
Fix endless re-rending of logs
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-10 16:54:03 +02:00
Janne Savolainen
4441d714dd
Fix issue with opening of terminal
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-07 19:29:24 +02:00
Sebastian Malton
fa3708c879
Add eslint:recommended lint rule (#4577) 2022-01-07 08:38:21 -05:00
Iku-turso
d89609415b
Kludge a timing issue until root cause of shared global state is fixed
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2022-01-07 12:10:04 +02:00
Iku-turso
f089d5c9e6
Add missing todo
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2022-01-07 12:10:04 +02:00
Janne Savolainen
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
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
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
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
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
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
Sebastian Malton
3666c56319
Display loading spinner while switching between helm charts (#4269) 2021-11-08 10:12:17 -05:00
Jim Ehrismann
2e54587086
Merge pull request #4274 from lensapp/port-forward-stderr-debug
log kubectl port-forward stderr output as debug
2021-11-05 16:42:13 -04:00
Jim Ehrismann
ebaa934bb9
Merge pull request #4270 from lensapp/feature/port-forward-notification
'About Port Forwarding' notification
2021-11-05 15:58:18 -04:00
Jim Ehrismann
e99f2f0502 log kubectl port-forward stderr output as debug
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-11-05 15:21:08 -04:00
Jim Ehrismann
56f3ba8d83 remove unnecessary async specification
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-11-05 15:00:03 -04:00
Jim Ehrismann
57b7027031 cleaned up logging from port-forward-store
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-11-05 13:17:31 -04:00
Jim Ehrismann
f3c3453308 address review comment
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-11-05 13:13:12 -04:00
Jim Ehrismann
3302bc69c7 added an 'About Port Forwarding' notification
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-11-05 11:08:50 -04:00
Sebastian Malton
7e82b7632a
Fix not being able to sync kube config files on linux (#4253) 2021-11-04 14:12:49 -04:00
Sebastian Malton
43845ed145
Fix auto update not working for AppImage (#4256) 2021-11-04 12:11:08 -04:00
Sebastian Malton
526b7c46be
Fix impl of 'Fix metrics configuration via catalog' (#4255) 2021-11-04 10:55:23 -04:00
Jan Jansen
0e1df10488
Fix metrics configuration via catalog (#4252) 2021-11-04 09:33:52 -04:00
Sebastian Malton
a93108c103
Fix auto-update on macOS not working (#4248) 2021-11-03 16:29:50 -04:00
Sebastian Malton
28e182a2a3
Properly propagate promises in Kubectl.ensureKubectl to avoid UnhandledPromiseRejections (#4243) 2021-11-03 12:28:12 -04:00
Roman
368e2d9a00
Monaco editor refactoring (#4225)
* monaco editor refactoring

Signed-off-by: Roman <ixrock@gmail.com>

* clean up / responding to comments

Signed-off-by: Roman <ixrock@gmail.com>

* move custom monaco themes to own folder

Signed-off-by: Roman <ixrock@gmail.com>

* fix lint

Signed-off-by: Roman <ixrock@gmail.com>

* removed unused rules from webpack's config (renderer)

Signed-off-by: Roman <ixrock@gmail.com>
2021-11-03 17:19:17 +02:00
Sebastian Malton
79c4132df9
Reduce selection on triple click in Drawers (#4201) 2021-11-03 10:10:07 -04:00
Lauri Nevala
205cce43c7
Display namespace for subject on ClusterRoleBinding details (#4242) 2021-11-03 10:09:53 -04:00
Sebastian Malton
df297613ca
Fix trying to download kubectl from [object Object] (#4215)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-03 07:44:28 -04:00
Juho Heikka
9f14b4c534
Fix catalog button border-radius when modal is shown (#4236)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2021-11-03 13:09:38 +02:00
Juho Heikka
f820f3df53
Fix lint error (#4238)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2021-11-03 12:31:59 +02:00
Sebastian Malton
c6dce043a7
Lint: comma-spacing (error) & comma-dangle (error) (#4200)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-02 17:38:20 -04:00
chh
b06c33383b
Prevent injection of expired "DST Root CA X3" from host CA stores; Electron to 13.6 (#4185) 2021-11-02 18:16:10 +02:00
Sebastian Malton
7ba359be03
Only offer app version downgrade if updateChannel differs from current version (#4212) 2021-11-02 12:07:50 -04:00
Alex Andreev
dec043f3f2
Catalog Browse page Add Button with menu (#4223)
* Adding MenuItems to catalog browse add button

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Convert menuItems from Array to Map

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Clean up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-11-02 18:46:18 +03:00
Sebastian Malton
d8538eaa75
Use user configured kubectl path in node and pod menu items (#3506) 2021-11-02 09:29:45 -04:00
Panu Horsmalahti
6b047332c0
Reduce JSON-API logging. (#4221)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-11-02 13:31:10 +02:00
Sebastian Malton
41863e87ce
Lint: object-curly-spacing (error) (#4198) 2021-11-01 08:45:45 -04:00
Sebastian Malton
0759b80435
Lint: space-before-function-paren (error) (#4199) 2021-11-01 08:37:49 -04:00
Sebastian Malton
e74f17e8ce
Lint: no-unused-expressions (error) (#4197) 2021-11-01 08:37:37 -04:00
Sebastian Malton
c6dab62e99
Lint: no-template-curly-in-string (error) (#4196) 2021-11-01 08:37:29 -04:00
Sebastian Malton
4d63ef2878
Use spec.serviceName as an externalIP if nothing else (#4188)
* Use spec.serviceName as an externalIP if nothing else

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Move using externalName to display logic

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-01 07:23:29 -04:00
Alex Andreev
c7e38052fc
Fix <a href...> visibility (#4208)
* Removing tailwind base and components styles

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix link coloring in few places

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-11-01 12:36:55 +03:00
Patrick J. McNerthney
6294343b79
Fix the broken ingress metrics, the namespace is needed in the opts. (#4203)
Signed-off-by: Patrick J McNerthney <pat@mcnerthney.com>
2021-11-01 11:21:13 +03:00
Sebastian Malton
d6d378bd3f
Fix NamespaceSelectFilter (#4187) 2021-10-29 11:39:18 -04:00
Sebastian Malton
82162e5021
Only listen to CMD+f for <SearchInput> on macOS (#4175) 2021-10-29 09:43:20 -04:00
Sebastian Malton
9e2ee00974
Clear up some NamespaceStore.toggleAll and NamespaceStore.hasAllContexts (#4167) 2021-10-29 08:45:02 -04:00
Jim Ehrismann
8cbb4c29d5
ensure namespace placeholder reflects what will be saved to local storage (#4176) 2021-10-29 08:42:42 -04:00
Roman
a9b9c87d1f
Fix: added missing "Upgrade" option in Helm Release menu (#4163) 2021-10-28 13:23:31 -04:00
Roman
18e1c76b8f
Fix: helm chart icon has incorrect size when app's window too small (#4166) 2021-10-28 12:35:03 -04:00
Juho Heikka
079976d703
Use filtered items in finding the default action catalog add button (#4170) 2021-10-28 12:25:59 -04:00
Panu Horsmalahti
be8e350510
Fix IPC race condition. (#4169)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-10-28 18:46:16 +03:00
Sebastian Malton
6c599556a2
Fix NamespaceSelectFilter all namespaces button (#3983)
* Fix NamespaceSelectFilter all namespaces button

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* simplify fix

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-28 15:55:40 +03:00
Sebastian Malton
b32e841bd2
Increase maxBuffer size when getting helm release details (#4164) 2021-10-28 08:33:16 -04:00
Alex Andreev
50d9b9b467
Fix cluster overview loading background (#4157)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-10-28 14:34:58 +03:00
Jari Kolehmainen
bcb18668c5
disable sentry in cluster frame (#4161)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-10-28 12:01:52 +03:00
Alex Andreev
74abf474d7
Navigate cluster context menus via broadcastMessage (#4139)
* Navigate cluster context menus via broadcastMessage

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Ability to navigate context in different frames

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Renaming an argument

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-10-28 06:50:15 +03:00
Sebastian Malton
f297407156
Stop using @electron/remote to obtain app.getPath() (#4078)
* Stop using remote to obtain app.getPath()

- Initialize entire map in bootstrap()

- Updated unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Resolve PR comments

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix test

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix build

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Ensure that init can only be called once and catch errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Replace basically all uses of app.getPath() with AppPaths.get()

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-27 21:07:41 -04:00
Jim Ehrismann
65b6908bf1
improved port-forward error reporting (#4155)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-10-27 18:19:03 -04:00
Sebastian Malton
27a0b02ce2
Close windows before trying to update (#4142) 2021-10-26 14:38:08 -04:00
Sebastian Malton
5abc1c618c
Add several more util functions and tests (#4106) 2021-10-26 09:36:34 -04:00
Sebastian Malton
983304f824
Copy whole drawer title if no colon exists (#4120) 2021-10-26 09:16:50 -04:00
Jari Kolehmainen
f1c2023533
use random api prefix on kubectl-proxy (#4137)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-10-26 14:59:36 +03:00
dependabot[bot]
25c7c1a496
Bump @types/js-yaml from 4.0.2 to 4.0.4 (#4124)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-10-25 16:53:35 -04:00
Jim Ehrismann
353b79ab76
Support port forwarding https protocol (#4119)
* added support for port-forwarding https

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* added protocol to the port-forward list and details page. Added the port-forward address to the details page title

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* predict the protocol based on the port name, some cleanup

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* address review comments

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* code reorg

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* fix lint

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-10-25 11:25:37 -04:00
Jari Kolehmainen
bd7ba9ff43
remove cors headers from LensProxy (#4126)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-10-25 17:42:28 +03:00
Sebastian Malton
221ab46540
Handle named ports in probe label renderer (#4118)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-25 10:40:45 -04:00
Jim Ehrismann
bbfb8372f3
improved port-forward error reporting (#4108)
* improved port-forward error reporting

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* satisfy lint and some autoformatting

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-10-22 17:19:50 -04:00
Jim Ehrismann
169f443c3b
attempt to fix immer/merge bug (#4107)
Co-authored-by: Roman <ixrock@gmail.com>
2021-10-22 09:23:51 -04:00
Alex Andreev
e643b37c7f
Cluster overview css fixes (#4104) 2021-10-22 09:13:43 -04:00
Sebastian Malton
8fa2adf870
Add double click to reset sidebar width (#4109) 2021-10-22 09:10:21 -04:00
Sebastian Malton
cd14097668
Fix errors in HotbarStore migrations (#4105) 2021-10-22 09:03:35 -04:00
Jari Kolehmainen
62526c2192
Remove iframe completely on disconnect (#4116)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-10-22 13:19:26 +03:00
Jim Ehrismann
c0c0b3ae11
Allow port-forwards to be restarted with the same local port (#4097)
* allow port-forwards to be restarted with the same local port

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* address review comment

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-10-21 12:32:34 -04:00
Panu Horsmalahti
0dab7b8073
Add option for providing request options to watch requests (#4102)
* Add option for providing request options to watch requests.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Move getRequestOptions to JsonApi.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Style fix

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Make token to be a string or a function

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Fix isFunction import.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Make getRequestOptions async.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Remove commented code.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Only set token if it's truthy.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Review fixes.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Add this.getRequestOptions default

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-10-21 19:18:32 +03:00
Sebastian Malton
d5719f29b8
Fix PodDetailsList being empty over 100 pods (#4096) 2021-10-21 09:38:48 -04:00
Sebastian Malton
5bdebfda43
Add better error message if the proxy test fails (#3913)
* Add better error message if the proxy test fails

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* resolve pr comment

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-20 22:33:28 -04:00
Jim Ehrismann
731f119b1b
added port-forward details (#4080)
* added port-forward details

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* address review comments, plus added toolbar/menu to port-forward details Drawer

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* added getById() to portForwardStore to eliminate direct items access from outside

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-10-20 16:02:20 -04:00
Sebastian Malton
f52a2295a2
Fix captitalization in CrdResources component (#4093) 2021-10-20 15:42:44 -04:00
Sebastian Malton
1f42a5148e
Remove api lookup in KubeObjectStore (#4092) 2021-10-20 10:44:13 -04:00
Lauri Nevala
3d72db6363
Cleanup dependentStores (#4089) 2021-10-20 09:00:14 -04:00
Sebastian Malton
32562b11a4
Remove ClusterStore.removedClusters and correctly delete lens storage file (#4077) 2021-10-20 08:51:26 -04:00
Sebastian Malton
b4a4cc6be4
Correctly handle empty string valued secrets in SecretDetails (#4079) 2021-10-20 08:51:03 -04:00
Sebastian Malton
38276bbbff
Update helm cache if files have been modified (#3973) 2021-10-20 08:50:52 -04:00
Alex Andreev
46653386b9
Replacing icon for Remove from Hotbar action (#4086)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-10-20 15:22:19 +03:00
Alex Andreev
b0ddb5eb77
Moving Catalog Details panel under TopBar (#4087)
* Moving Catalog Details panel under TopBar

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fine-tuning drawer height css rule

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-10-20 15:04:02 +03:00
Jim Ehrismann
5ffa1de7e6
added checkbox for optionally opening browser in the port-forward dialog (#4068)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-10-19 11:06:02 -04:00
Sebastian Malton
64175b24e0
Sort pod names by convering sub-parts (#3314) 2021-10-19 10:36:49 -04:00
Jim Ehrismann
e3e7c620a1
Added Status to the Port Forwarding list items (#4065)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-10-19 09:50:23 -04:00
Sebastian Malton
cbffb85650
Disable kubectl download mirror options when not available (#3956) 2021-10-19 09:22:06 -04:00
Sebastian Malton
125a073007
Add context menu into sidebar (#4044) 2021-10-19 09:19:25 -04:00
Sebastian Malton
e21888c62c
Fix iter function return values (#3958) 2021-10-19 09:02:59 -04:00
Jari Kolehmainen
755c75008a
remove unnecessary global watches in cluster view (#4073)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-10-19 13:52:25 +03:00
Alex Andreev
0eac46530a
Pin icon for Catalog list items (#3810) 2021-10-18 10:27:53 -04:00
Sebastian Malton
5998b4ca84
Upgrade js-yaml to 4.X (#3623) 2021-10-18 10:03:10 -04:00
Sebastian Malton
f12b0658ba
Add URL display to weblink URLs (#4046) 2021-10-18 09:38:10 -04:00
Sebastian Malton
86da6260b6
Don't attempt to sync files larger than 2MiB or non UTF-8 files (#3985)
* Don't attempt to sync files larger than 16MiB

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add handling for invalid utf-8

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Increase max size limit for single file syncs

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-15 23:27:34 -04:00