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

878 Commits

Author SHA1 Message Date
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
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
8081d35f9c
Broadcast cluster's disconnected state before stopping KubeAuthProxy (#4273) 2021-11-23 14:34:37 -05:00
Sebastian Malton
7c5a0a9a6d
Improve local shell CWD setting (#4396) 2021-11-23 08:35:16 -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
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
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
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
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
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
3522485c6f
Improve cluster connection visibility (#4266) 2021-11-12 08:49:21 -05: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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Sebastian Malton
d5719f29b8
Fix PodDetailsList being empty over 100 pods (#4096) 2021-10-21 09:38:48 -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
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
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
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
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
052d12fc19
Check object instanceof on all detail panels (#4054)
* Check object instanceof on all detail panels

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

* Fix unit tests

- Remove prettier as snapShot testing is too tight of a bound

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-15 12:11:46 -04:00
Sebastian Malton
246305cd63
Fix accessible namespaces notification not navigating to correct settings (#4048) 2021-10-15 09:06:24 -04:00
Sebastian Malton
9d5689ce69
Only allow extensions to use non-lens specific cluster phases (#4036) 2021-10-14 10:25:48 -04:00
Sebastian Malton
53c9d35832
Fix cluster icon click in sidebar redirecting to wrong route (#4037) 2021-10-14 08:50:24 -04:00
Sebastian Malton
e64060cc69
Conditionally render node taints upon value existance (#3989) 2021-10-13 10:34:28 -04:00
Alex Andreev
140a8591e0
Increase topbar z-index number (#4028)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-10-13 15:32:51 +03:00
Sebastian Malton
9c94c19a4f
Add ability to configure lens release channel (#3971) 2021-10-12 08:32:06 -04:00
Sebastian Malton
b9cee0cbc7
Fix HelmChartDetails and HelmReleaseDetails Menu (#3986) 2021-10-12 08:30:46 -04:00
Sebastian Malton
5a25c44de6
Catch and display errors for release details (#3905) 2021-10-12 08:28:32 -04:00
Alex Andreev
b2b3c44695
Closing dock tabs with cmd+w on mac (#3849)
* Change Close menu item accelerator

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

* Listening global keydown event in <Dock/>

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

* Prevent terminal to fire custom event

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

* Refresh tooltip hint

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

* Make Tab line gray if Dock isn't focused

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-10-11 10:06:43 +03:00
Jim Ehrismann
07c8177a97
Feature/port forward dashboard (#3922)
* Added ability to add custom port on pod and service port forwarding (#3295)

* Added ability to add custom port on pod and service port forwarding

Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>

* Added ability to add custom port on pod and service port forwarding

- pod-container-port fixed init async and active port checking
- service-port-component fixed init async and active port checking
- port-forward-route promise and response fix

Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>

* Added ability to add custom port on pod and service port forwarding

Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>

* - Added Custom Port Selection for port forwarding
- Implemented Random Port if custom port is not provided

Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>

Co-authored-by: Saumya Shovan Roy <saumyashovanroy@gmail.com>

* cherry-pick of hackweek work plus merge conflicts/build errors

    added a route to get all port forwards

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

    Added Forwarded Ports to cluster dashboard

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

    working port-forward page (open, edit, remove)

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

    added local storage to the port-forward store

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

    automatically restore port-forward after pod is restarted

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

    start port-forwards using random local port by default, rearranged pod and service port-forward UI

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

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

* refactor

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

* more refactoring, don't always open port-forwards in browser, refined reused port-forward dialog

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

* removed unimplemented forwarded port details page,modified logging

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

* addressed some review comments

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

* made port and forwardPort query params and cleaned up port-forward routing paths

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

* address more review comments and change dashboard tab name to 'Port Forwarding'

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

* changed port and forwardPort fields to be Numbers

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

* removed extraneous reset() call, reorder field declarations

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

* port-forward now gets the bundled kubectl path without going through the 'ensureKubectl' hoops

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

* more cleanup/tweaking

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

* fix bug where port-forward info did not update on pod details page when different pod (in same deployment?) is clicked

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

Co-authored-by: Saumya Shovan Roy (Deep) <12953177+rdeepc@users.noreply.github.com>
Co-authored-by: Saumya Shovan Roy <saumyashovanroy@gmail.com>
2021-10-07 15:51:26 -04:00
Juho Heikka
724b9450a6
Change onBeforeRun API (#3981)
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-10-07 12:43:50 -04:00
Sebastian Malton
913244b204
Catch metadata being undefined at KubeObject creation (#3960) 2021-10-07 10:09:21 -04:00
Sebastian Malton
31f84234a0
Fix taints on nodes view (#3957)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-07 10:08:34 -04:00
chh
4af796c532
Before hook for onRun of Catalog entities (#3911)
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-10-05 15:36:44 -04:00
Sebastian Malton
4705a66632
Use JSON patch for editing components (#3674) 2021-10-04 16:28:19 -04:00
Sebastian Malton
f2c623f89e
Specify tableId for DeploymentReplicaSets (#3950) 2021-10-04 14:32:15 -04:00
Gabriel Henriques
2ff91b0ecf
Added tooltipOnParentHover to taint tooltip on nodes list page (#3939)
Co-authored-by: gabriel.henriques gabriel.henriques <gabriel.henriques@g.globo>
2021-10-04 13:15:08 -04:00
Korvin Szanto
0c2140de8f
Make editor editable when user-supplied values is selected (#3776) 2021-10-04 11:50:40 -04:00
Arthur Knoepflin
31ee323baa
Add missing locale date in event view (#3931) 2021-10-04 11:44:22 -04:00
Korvin Szanto
b3c0a17aab
Check "user-supplied values only" by default when viewing a helm release (#3938) 2021-10-04 11:40:15 -04:00
Jari Kolehmainen
5b562836a4
fix watch leak on window unload (#3858)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-10-01 10:29:43 -04:00
Sebastian Malton
b692bc3603
Make default catalog action to open entity (#3915) 2021-09-30 09:46:33 -04:00
Juho Heikka
8bbaf8c59e
Add terminal copy on select (#3904) 2021-09-29 08:55:39 -04:00
Juho Heikka
b41f923931
Merge pull request #3866 from lensapp/issue-3383-menu-position-bug
Fix menu rendering on when slightly off screen
2021-09-29 09:36:25 +03:00
Alex Andreev
6b123dc4c0
Redirect from /catalog to last catalog page (#3807)
* Redirect from /catalog to last catalog page

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

* Cleaning up

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

* Cleaning up more

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

* Splitting url params to pass in catalogURL()

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-09-29 09:04:54 +03:00
Juho Heikka
b70ec5ddbd Remove shouldComponentUpdate, put style to state
instead of straight to DOM so they will be in sync

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2021-09-27 17:03:27 +03:00
Juho Heikka
2e1b3ea70c Merge branch 'master' into issue-3383-menu-position-bug 2021-09-27 13:35:39 +03:00
Sebastian Malton
17e97f16c9
Fix title of service account dialog (#3883) 2021-09-23 22:27:03 -04:00
Sebastian Malton
3c77c06519
Add ability to search and activate entities via the command dialog (#3692) 2021-09-23 13:18:31 -04:00
Sebastian Malton
3fc5b83461
Add error message for no contexts in add cluster page (#3868) 2021-09-22 10:25:48 -04:00
Roman
963d801cf7
[UX]: navigation to cluster overview from sidebar's top icon (#3867)
* UX: navigate to "/cluster" overview page from sidebar's top icon
* highlight hotbar-icon border on click
2021-09-22 16:42:16 +03:00
Juho Heikka
eb789a0ab1 Fix menu rendering on when slightly off screen
Menu would bounce around in some cases because the
refreshPosition() would calculate different results
based on different state of the component and previous
render cycle CSS classes.

Also I found that the render function calls causes
in an infinite loop while open because of refreshPosition
will cause a state change which will rerender the function.
Fixed that with the shouldComponentUpdate which checks
if state has actually changed in between renders.

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2021-09-22 09:42:51 +03:00
Alex Andreev
070fc1bb44
Fix long name layout in Cluster Settings (#3854)
* Fix long name layout in Cluster Settings

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

* Clean up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-09-22 07:42:05 +03:00
Sebastian Malton
dfa0a35695
Fix error due to async validators for <Input> (#3823)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-20 09:54:12 -04:00
Sebastian Malton
e251194cb5
Fix reference error when opening cluster view (#3824)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-20 13:01:05 +03:00
Lauri Nevala
53ce818589
Revert "Fix check for user exec command (#3664)" (#3827)
This reverts commit 056b818ceb.

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2021-09-17 11:13:04 +03:00
Sebastian Malton
be1a2ebe59
Fix shell connection readiness heuristic (#3795) 2021-09-15 17:40:36 -04:00
Sebastian Malton
056b818ceb
Fix check for user exec command (#3664) 2021-09-15 13:09:57 -04:00
Sebastian Malton
068c78d48d
Draggable region on macOS should be the same as the main header (#3800)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-15 12:28:06 -04:00
Sebastian Malton
b43086a386
Don't change permissions when deleting a cluster (#3798)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-15 12:27:48 -04:00
Juho Heikka
74f3826235
Second click on list item closes the details view (#3809)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2021-09-15 08:48:12 -04:00
chh
64fb590377
Fix sass warnings (#3783)
* Fix sass warnings

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>

* Add a space

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>

* Update src/renderer/components/input/input.scss

Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>

* Response to comments

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>

Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
2021-09-14 10:09:09 +03:00
Alex Andreev
4fa0b8e329
Sidebar cluster avatar (#3765) 2021-09-13 11:33:30 -04:00
Panu Horsmalahti
8e9dd50828
Add catalogAddMenu filter to CatalogCategory (#3722) 2021-09-13 11:33:11 -04:00
Panu Horsmalahti
936927af98
Add CatalogCategory filter to the extension API (#3718)
* Add CatalogCategory filter to the extension API.

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

* Fix test.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-09-13 15:46:28 +03:00
Sebastian Malton
d72158cc63
Fix local cluster delete flow (#3473)
* Fix local cluster delete flow

- Now checks for the cluster being the current cluster and confirms the
  action

- <ConfirmDialog> is fixed to work with several confirmations happinging
  at once

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

* Custom delete cluster dialog

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

* Saving kubeconfig file refactoring

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

* Switching current-context from dialog

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

* Cleaning up css styles

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

* Show Delete menu item only for local cluster

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

* Make all dialogs rounded

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

* Releasing kubeconfig file after lock

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

* Adding delete cluster dialog tests

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

* Cleaning up

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

* Delete cluster dialog refactoring

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

* Fixing typo

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

* Removing temp file on error

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

* Updating tests

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

* Do not switch context if select is hidden

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

* Removing spread symbols

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

* Moving cluster delete event from catalog initializer to ipc

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

* Refactor warning messages

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

* Getting spread (...) back to fix Select render

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

* Using async form without promises

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

* Do not show context switcher if no contexts left

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

* Updating the tests

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

* don't allow delete of the active cluster before setting to new active cluster (#3749)

* don't allow user to delete the active cluster before setting to new active cluster

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

* fix lint issues

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

* Show delete button if no more contexts available

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

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

Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
2021-09-08 15:06:14 +03:00
Jari Kolehmainen
b9aec3ad9f
don't add active entity automatically to a hotbar (#3753)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-09-08 12:06:53 +02:00
Alex Andreev
ffdf4a03cd
Use entity name as cluster name in sidebar (#3751)
* Using entity name as cluster name in sidebar

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

* Use entity name if preferences name is empty

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

* simplify

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-09-08 12:44:23 +03:00
K.C.Ashish Kumar
9ae84182a1
Add namespace to the message. (#3732)
Signed-off-by: K.C.Ashish Kumar <ashish-kumar.kothapally-chandrakanth@broadcom.com>
2021-09-07 18:00:25 +03:00
Alex Andreev
16c4656a7d
TopBar home icon (#3740)
* Adding home button

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

* Highlight catalog entity on route match

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

* Wait for general entites to load

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

* Adding WelcomePage catalog entity

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

* Highlight general entities in hotbar if their route matches

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

* Fixing tests

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

* Moving active entities sync to helper function

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

* Fix welcome page test

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-09-07 15:18:46 +03:00
chh
995cdac328
Slow down the carousel (default is 4000 ms (#3742) 2021-09-06 16:25:21 +03:00
chh
40a2d9e05c
Fix the back/forward button on topbar (#3719)
* Check only webcontent type === 'window' instead of using webContents.getFocusedWebContents(), as other webview can capture focus

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>

* Update test

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
2021-09-02 14:21:17 +03:00
Jim Ehrismann
3bec593bce
fix logic to determine if the telemetry tab should be rendered on the preferences page (#3714)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-09-01 13:06:41 -04:00
chh
27e0de96ee
Use --iconActiveBackground/--iconActiveColor for welcome banner indicator (#3712) 2021-09-01 17:11:14 +03:00
Lauri Nevala
584d45c5e0
Allow to configure default namespace used in terminal (#3706)
* Allow to configure default namespace used in terminal

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Fix lint issues

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2021-09-01 12:50:11 +03:00
Sebastian Malton
d132a4c7e7
Fix node shell secret pulling (#3668)
- On some KE errors are thrown if trying to get a secret with an empty
  name, instead of just ignoring the entry

- Clean up the node shell settings

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-01 12:49:00 +03:00
Sebastian Malton
6fdb2f0b58
Support filtering catalog entities (#3647)
* Support filtering catalog entities

- This allows extensions and OpenLens to restrict which of the entities
  the sources have provied are "visible" to the rest of Lens

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

* Fix lint

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

* switch to filtering only for catalog view

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

* Fix test

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

* Add test to iter reduce

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

Co-authored-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-08-31 16:00:56 +03:00
Alex Andreev
7981e79cbd
Topbar history buttons (#3696)
* HistoryStore initial draft

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

* Adding history icons

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

* Jump history using electron methods

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

* Using 1 topbar component for all views

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

* Add Catalog title to sidebar

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

* Show cluster name in sidebar

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

* Updating topbar tests

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

* Fixing Welcome tests

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

* Removing padding for external topbar items

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

* Fix cluster name prop

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

* Using material icons for history buttons

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-08-31 14:44:47 +03:00
Sebastian Malton
59933507e4
Upgrade to electron 12 and Node 14 (#3572)
Upgrade to electron 12 and Node 14

- Compute cluster ID for tests
- Switch to temporary appData path while testing

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

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-26 12:13:31 -04:00
Alex Andreev
e2812a5bcd
Fixing cropped long namespace names (#3678)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-08-26 15:07:01 +03:00
Alex Andreev
c508596ded
Fix: font-size jumping in Catalog sidebar (#3667)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-08-24 16:38:38 -04:00
Sebastian Malton
5f89b3e31f
Fix filtering deprecated charts (#3635) 2021-08-24 08:29:36 -04:00
chh
54ac311933
Add WelcomeBanner.width extension API (#3663)
* Allow to add WelcomeBannerRegistration.width and use that to caculate to width of Banner container

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>

* Export at const

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
2021-08-24 10:05:08 +03:00
Alex Andreev
7b48ab0279
Do not copy if title isn't of type 'string' (#3657)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-08-23 15:27:54 +03:00
chh
d3ce43e73d
Add 'welcome banner' extension API (#3656)
* Add react-material-ui-carousel

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>

* Add welcomeBanners extension api

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
2021-08-23 14:31:24 +03:00
Sebastian Malton
902224a6dc
Always display a Node's taints' values (#3646)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-19 13:40:16 -04:00
Panu Horsmalahti
519d950146
Display top bar in welcome screen. (#3643)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2021-08-19 16:54:09 +03:00
Lauri Nevala
21a41b7ea9
Fix metrics loading on Ingress, PVC and StatefulSet details (#3632)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2021-08-18 14:00:06 +03:00
Jari Kolehmainen
d1cfb5fed9
Fix nodes view observability (#3630)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-18 11:50:40 +03:00
(╯°□°)╯︵ uᴉǝssnH ɐɟɐʇsoW
b71e489868
feat: Add the ability to copy k8s object name (#3575)
Signed-off-by: Mostafa Hussein <mostafa.hussein91@gmail.com>
2021-08-17 17:05:11 +03:00
Alex Andreev
097da7b228
Fixing input value (#3616)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-08-17 16:16:27 +03:00
Alex Andreev
fa58b94cd5
Polishing Kubernetes section view in Preferences (#3603)
* Using RemovableItem for items in Kubernetes page

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

* Helm Charts empty state

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

* Empty state for kubeconfig sync list

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

* Remove unused styles

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

* Fixing tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-08-16 16:52:14 +03:00
pashevskii
e4c393244a
Replace Ace Editor with monaco (#2949)
Signed-off-by: Pavel Ashevskii <pashevskii@mirantis.com>

Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-08-12 13:00:52 +03:00
Jari Kolehmainen
be6df7d25a
Allow to pass KubeObjectStore.api via constructor (#3596)
* allow to pass KubeObjectStore.api via constructor

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* remove throw for backward compat reasons

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-12 11:13:56 +03:00
Alex Andreev
b7be3ae21a
Sync kubeconfigs from catalog (#3573)
* Kubeconfig syncs from Catalog

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

* Allow to select directory to sync

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

* Convert Preferences to Route-based component

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

* Jump from notification to Preferences

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

* Adding navigateWithoutHistoryChange() method

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

* Cleaning up

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

* Fixing integration tests (no check for Telemetry tab)

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

* Fixing tests harder

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-08-11 13:24:33 +03:00
chh
487173dc04
Add background-color, box-shadow and padding to .ClusterStatus (#3582) 2021-08-10 16:33:38 +03:00
Jari Kolehmainen
58a446bd45
Refactor k8s api to common (#3553)
* refactor kube api to common

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* refactor more utils to common

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* refactor more utils to common

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix tests

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* switch to use node-fetch on both sides

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* improve logger

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix lint errors

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix/improve tests

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix tests

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix node-fetch require error on prod build

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* preload fix

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fixes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* read serverAddress from apiBase

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-10 13:26:14 +03:00
Sebastian Malton
2b3351bf9b
Remove circular dependency with isAllowedResource function (#3545)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-04 16:01:47 -04:00
Sebastian Malton
b6ba39c438
Remove circular imports around the command pallet (#3544) 2021-08-04 14:22:18 -04:00
Sebastian Malton
ee158e33df
Move lookupApi into apiManager (#3540) 2021-08-04 11:36:13 -04:00
Sebastian Malton
fb74859f66
Split KubeObject related components into seperate folders (#3533) 2021-08-03 17:39:29 -04:00
Sebastian Malton
3fe8014f11
Move Hotbar types to seperate file (#3532) 2021-08-03 14:38:36 -04:00
Sebastian Malton
77077ef72c
Fix custom resources not having a fallback details component (#3542) 2021-08-03 12:31:44 -04:00
Sebastian Malton
a6e91fc34a
Move cluster related types and function into seperate files (#3530) 2021-08-03 10:36:14 -04:00
Sebastian Malton
2893ad956d
Notify user of error if confirmation dialog rejects promise (#3179)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-03 10:09:19 -04:00
Sebastian Malton
4fc340d0c6
Cleanup integration and unit tests (#3531)
- Make mockWindow a function and call it when needed

- Change timeouts so that better error messages happen more often in
  integration tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-03 08:51:52 -04:00
Sebastian Malton
b546f1df72
Simplify most of the KubeObjectDetailRegistry initial values (#3529)
- Keep one without any type param to make sure that an extension
  developer can as well

- Keep one with a child type to make sure the same as above

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-03 08:51:13 -04:00
Alex Andreev
b5f4ab3c44
Fixing <Tab/> onKeyDown error (#3537)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-07-30 08:50:39 -04:00
Sebastian Malton
1b88e63343
Set default type params for KubeObjectDetail related APIs (#3528)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-29 10:55:41 -04:00
Jari Kolehmainen
e43961ec4f
fix crd resources watch issue (#3520)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-07-27 20:12:25 +03:00
Violetta Shakirova
1b11433bca
Add ability to rename hotbars (#3469)
Signed-off-by: vshakirova <vshakirova@mirantis.com>
2021-07-27 08:54:41 -04:00
Sebastian Malton
270d9d631c
Warn if ClusterPageMenuRegistration is a subMenu and has an Icon (#3462)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-27 08:53:49 -04:00
Sebastian Malton
51b53b3349
Improve <NamespaceSelectFilter>'s UX (#3490)
- Display previously selected namespaces at the top of the option list
  when first opened

- Don't resort after every selection

- Automatically close the option list if no longer in multi-select mode
  and have toggled at least one namespace

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-27 08:53:34 -04:00
Sebastian Malton
91b3bd10ee
Only stopPropagration in onClick for the itemMenu (#3502)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-27 08:53:22 -04:00
Alex Andreev
5c64b48849
Installing tailwindcss/nesting plugin (#3496)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-07-26 10:37:32 +03:00
Alex Andreev
89662103a8
Fix workload overview status sorting (#3486)
* Sort statuses allowing 'running' to be first

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

* Fix Chart legend badges

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

* Adding getStatus() tests for each store

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-07-26 09:33:32 +03:00
Sebastian Malton
07532b1552
Display hint to user on how to add items in an EditableList (#3475)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-23 09:26:23 -04:00
Alex Andreev
44fad7f459
Fix input default value warning (#3497)
* Removing some props from passing to <input/>

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

* Fixing ns loadMetrics() this context

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-07-23 07:36:48 -04:00
Jari Kolehmainen
823d68014e
fix entity settings menu order (#3494)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-07-23 10:54:30 +03:00
Sebastian Malton
64ac04186b
Improve Table typing and remove annotations on callbacks (#2981)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-22 10:42:27 -04:00
Alex Andreev
c6a4d55d86
Improving metric queries (#3424) 2021-07-22 09:57:14 -04:00
Sebastian Malton
cdb7c95b8f
Fix typings for KubeObjectDetailsRegistration (#3460) 2021-07-21 10:22:32 -04:00
Alex Andreev
4fe0a7d73e
Catalog render optimizations (#3422) 2021-07-21 08:51:46 -04:00
Sebastian Malton
d52c4c3999
Fix onRun not executing everywhere :hover is defined for HotbarIcon (#3316)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-21 08:08:39 -04:00
Sebastian Malton
27f2bd7181
Wait for shell to bring up prompt before sending commands (#3337) 2021-07-20 15:25:18 -04:00
Sebastian Malton
a4f252864b
Add ability to trim the value from <Input> (#3333)
- If set (default = false) then the input will be trimmed of whitespace
  before validation and before submit

- Use trim on all input's that use the systemName validator

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 09:30:02 -04:00
Alex Andreev
10ab882fed
Replace ... to smaller &hellip; HTML character (#3450)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-07-20 12:23:45 +03:00
Sebastian Malton
686ae32dcb
When viewing a specific release, select its namespace (#3440)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 10:32:15 +03:00
Sebastian Malton
cf3aceb465
Sort cronjob last scheduled time by number (#3430)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 10:19:52 +03:00
Sebastian Malton
c4aeaf5bb7
Fix styling on cluster roles and bindings (#3434)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 07:40:02 +03:00
Sebastian Malton
c590bccffa
Fix permissions issue on ServiceDetails under RBAC (#3433)
- Only watch the namespace that the service is in instead of all of them

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 07:34:23 +03:00
Sebastian Malton
078583412b
Use all namespaces for cluster overview warnings (#3441)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-20 07:33:22 +03:00
Sebastian Malton
eef5dd5f9c
Display toleration's value in pod-details (#3384)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-07-16 08:57:26 -04:00
Josh Soref
e87b4836be
Fix spelling (#3181)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2021-07-16 08:53:01 -04:00