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

1543 Commits

Author SHA1 Message Date
Alex Andreev
f9a5914127 Add specific tab tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-05-04 17:20:01 +03:00
Alex Andreev
e3c88f3004 Render specific extension tab in sidebar navigation
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-05-04 16:55:57 +03:00
Alex Andreev
11e03910a4 Add appPreferenceTabs registration
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-05-04 16:54:40 +03:00
Alex Andreev
4468addd89 Avoid .toHaveTextContent in tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-05-04 14:39:54 +03:00
Alex Andreev
acc4635b36 Merge branch 'master' into show-extension-preferences-in-separate-page 2022-05-04 07:30:19 +03:00
Sebastian Malton
432fc534c6
Fix last item not being removed on initial loadAll (#5309) 2022-05-03 11:13:43 -04:00
Alex Andreev
00efcad5ee Merge branch 'master' into show-extension-preferences-in-separate-page 2022-04-29 14:52:52 +03:00
Sebastian Malton
8ada3c7505
Compute Tray Icon on the fly instead of at build (#5157) 2022-04-28 12:31:57 -04:00
Jim Ehrismann
51a93b8cc0
reverting flushHeaders() fix to restore auto-refresh (#5283)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-04-27 11:56:07 -04:00
Jim Ehrismann
ff119dabf7
adding https_proxy to execHelm env (#5273)
* adding https_proxy to execHelm env

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

* lint plus simplification

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-04-27 11:55:23 -04:00
Alex Andreev
d1ae30a562
Fix misleading no metrics message (#5240)
* Add NoMetrics style module

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

* Add Open Cluster Settings link

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

* Fine-tune NoMetrics layout

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

* Add test for clicking Open Settings link

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

* Add data-testid

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

* Fixing tests

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

* Use navigateToEntitySettings instead of broadcastMessage

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

* Fix test selector

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-27 15:48:49 +03:00
Roman
22d2133ac8
Upgrade ReactSelect to latest version (#5277)
* - maintenance: upgrade react-select to latest version (5+)
- fix: props.styles was ignored and didn't passed to original react-select component from abstraction wrapper
2022-04-27 12:31:07 +03:00
Alex Andreev
7f76cd53d1 Few Settings -> Preferences
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-27 11:29:13 +03:00
Alex Andreev
b577afb439 <Extensions/> tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-26 16:02:12 +03:00
Alex Andreev
be14b1cb34 Change Extension page title
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-26 15:18:23 +03:00
Alex Andreev
5679ed9b3f Fine-tune preference sidebar styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-26 14:44:36 +03:00
Alex Andreev
45abe7863d Set extension title with extension id
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-26 14:44:11 +03:00
Alex Andreev
2570c7ce0a Show Custom Settings block for nav items
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-26 13:35:14 +03:00
Alex Andreev
b7b25fb1ff Introduce <PreferencesNavigation /> tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-26 11:22:03 +03:00
Alex Andreev
b69d116e02 Add fromExtension field to PreferenceNavigationItem
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-26 11:21:41 +03:00
Alex Andreev
6622d2b432 Get extension by sanitizedExtensionId
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-26 10:08:57 +03:00
Sebastian Malton
753fa225ed
Fix crash in CRD display (#5256) 2022-04-25 17:10:39 -04:00
Roman
11f3cafac3
Expose Lens Monaco Editor component to extensions-api (#5264)
* Expose Lens Monaco Editor component to public, close #5094
2022-04-25 14:29:49 +03:00
Alex Andreev
8e5a8389e4 Update snapthots
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-25 14:19:14 +03:00
Alex Andreev
263e26cadf Fix isActive parameter
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-25 14:16:49 +03:00
Alex Andreev
ecc5383ebe Revert token removing
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-25 13:41:42 +03:00
Alex Andreev
098bda1866 Show preferences only from specified extension
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-25 13:38:53 +03:00
Alex Andreev
d0bb70452a Check for showInPreferencesTab tab for a link to show
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-25 11:47:32 +03:00
Alex Andreev
0c93c6dbf0 Set isActive prop
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-25 11:05:23 +03:00
Alex Andreev
1f6420f85b Add isVisible condition for preference links
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-22 17:04:17 +03:00
Alex Andreev
6d8feb65d4 Add some tests for links
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-22 17:01:30 +03:00
Alex Andreev
fa9277fb8c Showing a links for each extension in sidebar
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-21 16:52:27 +03:00
Alex Andreev
51f7e8f1bc
Not using paddings for empty top bar items (#5249)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-19 17:47:28 +03:00
Sebastian Malton
e977890677
Remove webpack.*.ts importing values from src/ (#4992) 2022-04-13 10:39:35 -04:00
Juho Heikka
d5528eb9fe
Add optional destination property to app event (#5230) 2022-04-13 11:32:04 +03:00
Panu Horsmalahti
39b17334ba
Export getAppVersion in the extension API (#5239) 2022-04-12 11:18:44 -04:00
Janne Savolainen
6745f2efd7
Fix snapshots/code-style after merging stuff to master (#5235)
* Update snapshots after merging stuff to master

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

* Fix code style

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-04-12 15:02:34 +03:00
Iku-turso
55d8e0e06c
Introduce a collection of behavioural unit tests for navigation (#5085)
This reverts commit ecd881c25df219b511d7efd43dac59e748b21cc7.

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
2022-04-12 07:39:46 +03:00
Janne Savolainen
68a605ded9
Fix returning to specific catalog tab and removing a hotbar item (#5201)
* Fix removing hot bar item

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

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

* Fix navigating back to tab in catalog from hotbar

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

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-04-12 07:34:44 +03:00
chh
c66f9ad407
Expose ReactDOM as global object, and ensure in-tree extension to use the same instance (#5229)
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
2022-04-11 16:45:12 +03:00
Alex Andreev
542cbe9ebf
Fix PieChart tooltips (#5223)
* Add tooltipLabels field to ChartData

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

* Use tooltipLabels in ClusterPieCharts for pods

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

* Check for tooltipLabels field to assign tooltip text

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

* Use tooltipLabels inside overview charts

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

* Expand workload overview charts to fit tooltips

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

* Move tooltipLabels into chart datasets

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

* Move tooltipLabels prop to PieCharts

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

* Little clean up

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

* Getting back id field to PieChartData interface

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

* Id fix

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

* More clean up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-11 15:21:18 +03:00
Sebastian Malton
423ffd44dc
Fix slackLink in catalog becoming out of date (#5108) 2022-04-08 11:12:06 -04:00
Dmitriy Noa
0ba5a12506
Move devserver to different port (#5224)
* Move devserver to different port

Signed-off-by: DmitriyNoa <dmytro.zharkov@gmail.com>

* Move port to common vars

Signed-off-by: DmitriyNoa <dmytro.zharkov@gmail.com>

* Use Number to cast

Signed-off-by: DmitriyNoa <dmytro.zharkov@gmail.com>
2022-04-08 15:59:46 +02:00
Roman
71b222f9d0
Upgrade to React@18 (#5172)
* upgrade to react@18
read more: https://reactjs.org/blog/2022/03/29/react-v18.html
2022-04-07 17:23:52 +03:00
Roman
06e7dfce5e
Removed package "autobind-decorator" and @boundMethod in favour of "auto-bind" util for constructors-only. (#5218) 2022-04-07 17:21:54 +03:00
Sebastian Malton
7c34ba36a6
Add B to bytesToUnits to make clear that they are bytes (#5170) 2022-04-06 11:48:42 -04:00
Panu Horsmalahti
1a29759bff
Enable consistent-type-imports eslint rule (#5205) 2022-04-06 10:34:16 -04:00
Alex Andreev
93a8d0f157
Do not render Tooltip and Menu elements until needed (#5168)
* Clean up Menu DOM elements

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

* Clean up Tooltip DOM

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

* Do not render Animate when not in need

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

* Update snapshots

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

* clean up <Animate/> and <Tooltip/>

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

Co-authored-by: Roman <ixrock@gmail.com>
2022-04-06 16:44:14 +03:00
Panu Horsmalahti
ca21e0842a
Add optional badge to Catalog Category label (#5156)
* Add optional badge to Catalog Category label.

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

* Don't render badge container if there is no badge. Change CatalogCategoryLabel interface.

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

* Add badgeBackgroundColor CSS variable for extensions. Regenerate theme-vars.css.

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

* Use category as prop in CatalogCategoryLabel

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2022-04-06 15:20:41 +03:00
Alex Andreev
66330485b1
Fix broken hotbar switcher (#5182)
* Getting this context for switch hotbar methods

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

* Do not convert store methods to arrow functions

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-04-06 14:28:07 +03:00