Sebastian Malton
7451869c25
add no-unused and react/recommended to eslint ( #1523 )
...
* add no-unused-vars and no-unused-imports
* added quotes: double, and remove ignore pattern
* move itif and describeif into utils
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-27 08:48:38 -05:00
Roman
10eb082854
Fix: add-cluster page D&D is broken ( #1549 )
...
* fix: add-cluster page D&D kube-config don't work: Error-info: <DropFileInput/> must contain only single child element
Signed-off-by: Roman <ixrock@gmail.com >
* renaming
Signed-off-by: Roman <ixrock@gmail.com >
2020-11-27 15:10:58 +02:00
Panu Horsmalahti
77c8617b79
Add confirmation dialog to extension uninstall ( #1547 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-27 12:52:34 +02:00
Panu Horsmalahti
263d56b3c1
Disable Uninstall and Enable/Disable buttons while uninstalling. Add Notification for uninstall. ( #1539 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-27 10:23:12 +02:00
Alex Andreev
2a96e094bb
Pod logs refactoring ( #1516 )
...
* Spreading PodLogs into 2 components
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Removing pod-logs.scss
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Removing unused isScrollHidden param
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Cleaning up logs components
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-26 14:11:54 +03:00
Panu Horsmalahti
ccd38b5cbe
Add extension uninstall ( #1524 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-26 10:45:47 +02:00
Panu Horsmalahti
4e02e086a9
Remove extension when folder is removed during runtime ( #1518 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-26 09:40:37 +02:00
Jari Kolehmainen
8739baab5b
Replace cluster warning event polling with watches ( #1521 )
...
* replace cluster warning event polling with watches
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix loadAll calls
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* tweak
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-26 09:39:16 +02:00
Roman
7243dfdce4
Installing extensions UI improvements ( #1522 )
...
Signed-off-by: Roman <ixrock@gmail.com >
2020-11-25 16:42:19 +02:00
Jari Kolehmainen and Alex Andreev
6a92372f50
Change add-cluster to single column layout ( #1515 )
...
* change add-cluster to single column layout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup styles
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* Fine-tuning layout/coloring styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-25 14:54:28 +02:00
vshakirova
5b484ca692
Add stateful set scale slider ( #1406 )
...
Signed-off-by: vshakirova <vshakirova@mirantis.com >
2020-11-25 15:21:54 +03:00
Roman
4474d87ed2
Fix: Unhandled exception for <DropFileInput disabled={true}/> ( #1512 )
...
* fix: invalid handling disabled={false} causing app crash
Signed-off-by: Roman <ixrock@gmail.com >
* re-fix: put React.Children.only() validation inside try-catch to avoid crash as well
Signed-off-by: Roman <ixrock@gmail.com >
2020-11-25 11:55:30 +02:00
Jari Kolehmainen and Roman
8753b2b17c
Tweak install extension ux ( #1510 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Co-authored-by: Roman <ixrock@gmail.com >
2020-11-25 11:53:40 +02:00
Roman
77ae31550a
Allow to install packed extensions from URL or local file ( #1456 )
...
* Option to install an extension from filesystem/url #1227 -- part 1 (UI)
Signed-off-by: Roman <ixrock@gmail.com >
* DropFileInput: common component to handle droped files (replaced also in add-cluster-page)
Signed-off-by: Roman <ixrock@gmail.com >
* fix: install via url-string on input.submit
Signed-off-by: Roman <ixrock@gmail.com >
* ui tweaks & minor fixes
Signed-off-by: Roman <ixrock@gmail.com >
* more ui/ux tweaks & fixes
Signed-off-by: Roman <ixrock@gmail.com >
* layout fixes
Signed-off-by: Roman <ixrock@gmail.com >
* component renaming: `copy-to-click` => `copy-to-clipboard` => `clipboard`
Signed-off-by: Roman <ixrock@gmail.com >
* reworks -- part 1
Signed-off-by: Roman <ixrock@gmail.com >
* fix downloading file, added common/utils/downloadFile
Signed-off-by: Roman <ixrock@gmail.com >
* confirm before install, unpack tar first steps
Signed-off-by: Roman <ixrock@gmail.com >
* installation flow, extracting .tgz
Signed-off-by: Roman <ixrock@gmail.com >
* clean up, fix lint issues
Signed-off-by: Roman <ixrock@gmail.com >
* update .azure-pipelines.yml
Signed-off-by: Roman <ixrock@gmail.com >
* fixes & refactoring
Signed-off-by: Roman <ixrock@gmail.com >
* fix lint harder :/
Signed-off-by: Roman <ixrock@gmail.com >
* fix validation
Signed-off-by: Roman <ixrock@gmail.com >
* fix validation harder
Signed-off-by: Roman <ixrock@gmail.com >
* responding to comments, fixed package validation
Signed-off-by: Roman <ixrock@gmail.com >
* common/utils/tar.ts: reject with Error-type
Signed-off-by: Roman <ixrock@gmail.com >
* fix: unit-tests
Signed-off-by: Roman <ixrock@gmail.com >
2020-11-25 09:55:28 +02:00
Alex Andreev
2da598b66e
Set scrollbar colors as global styles ( #1484 )
...
* Setting global webkit-scrollbar styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Removing usage of custom-scrollbar mixin
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Set overflow:auto on .Table
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fixing .drawer-content paddings
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-25 10:25:37 +03:00
Sebastian Malton
4e6b8ee10e
Add designated folder for extensions ( #1245 )
...
* add store for mapping extension names to filesystem paths
- add extension mechinism for getting a folder to save files to
- add test to make sure that extensions are being loaded
- skip extension loading test
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-24 10:28:08 -05:00
Lauri Nevala
cb14d77a56
Track more events from adding a cluster ( #1481 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2020-11-24 14:01:51 +02:00
Panu Horsmalahti
ff93760dc4
Enable object-shorthand rule ( #1500 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-24 13:16:35 +02:00
Panu Horsmalahti
c79cee0311
Watch for added/removed local extensions ( #1482 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-24 10:48:40 +02:00
Sebastian Malton
5005d34c2e
change BaseRegistry to only have one type parameter ( #1474 )
...
* change BaseRegistry to only have one type parameter
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-23 12:54:39 -05:00
8c73861962
Open last active cluster after switching workspaces ( #1444 )
...
* Save and restore lastActiveClusterId
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Activate clusters from workspaces page
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix saving last cluster while jumping from tray
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding workspace switch tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Remove console.log()
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Clean duplicated ClusterId definition
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Moving lastActiveClusterId field into WorkspaceModel
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* fix extensionLoader error on dev environments where renderer might start early (#1447 )
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* Add Search by Ip to Pod View (#1445 )
Signed-off-by: Pavel Ashevskii <pashevskii@mirantis.com >
* Make BaseStore abstract (#1431 )
* make BaseStore abstract so that implementers are forced to decide how to store data
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Add a few missing folders to be linted.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Use @typescript-eslint/semi.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Allow extension cluster menus to have a parent (#1452 )
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix SwitchCase indent rule in eslint (#1454 )
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Revert "fix SwitchCase indent rule in eslint (#1454 )"
This reverts commit 082774fe6e .
* Revert "Allow extension cluster menus to have a parent (#1452 )"
This reverts commit 622c45cd6d .
* Revert "Use @typescript-eslint/semi."
This reverts commit 890fa5dd9e .
* Revert "Add a few missing folders to be linted."
This reverts commit c7b24c2922 .
* Revert "Enforce semicolons in eslint"
This reverts commit ca67caea60 .
* Revert "Make BaseStore abstract (#1431 )"
This reverts commit 4b56ab7c61 .
* Revert "Add Search by Ip to Pod View (#1445 )"
This reverts commit 4079214dc1 .
* Revert "fix extensionLoader error on dev environments where renderer might start early (#1447 )"
This reverts commit 8a3613ac6f .
* Split workspace tests to smaller ones
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Missing semicolons
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Split workspace tests a bit more
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding extra click in Add Cluster button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding more awaits to check running cluster
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Wait for minikube before running tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Co-authored-by: pashevskii <53330707+pashevskii@users.noreply.github.com >
Co-authored-by: Sebastian Malton <sebastian@malton.name >
Co-authored-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-20 14:53:28 +03:00
Panu Horsmalahti
22ff706f4c
Support networking.k8s.io/v1 for Ingress ( #1439 )
...
* Support networking.k8s.io/v1 for Ingress
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Add helper method to Ingress
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Fix lint errors.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-20 11:59:11 +02:00
Alex Andreev
57a879c2e8
Making text selection bg color transparent a bit ( #1463 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-20 12:55:16 +03:00
Jari Kolehmainen
6e73c8ffc2
Fix extension cluster menu highlight/routing issues ( #1459 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-20 09:29:38 +02:00
Sebastian Malton
43976f5bd9
fix SwitchCase indent rule in eslint ( #1454 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-19 15:15:49 -05:00
Jari Kolehmainen
d7cba7d4d6
Allow extension cluster menus to have a parent ( #1452 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-19 21:39:53 +02:00
Panu Horsmalahti
460dfe4d2b
Use @typescript-eslint/semi.
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-19 18:12:52 +02:00
Panu Horsmalahti
1477bb8274
Enforce semicolons in eslint
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-19 16:35:04 +02:00
pashevskii
b64694acda
Add Search by Ip to Pod View ( #1445 )
...
Signed-off-by: Pavel Ashevskii <pashevskii@mirantis.com >
2020-11-19 09:24:06 -05:00
Jari Kolehmainen
5aaacb21f9
Refactor ipc module ( #1225 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-19 11:48:13 +02:00
Lauri Nevala
04517148c0
Add computed name property to cluster ( #1428 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2020-11-18 09:12:11 +02:00
Alex Andreev
960bbe6813
Showing colors in logs ( #1419 )
...
* Converting ansi values to colored html
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Rewriting AnsiUp colors for search overlay
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-18 08:31:36 +03:00
Alex Andreev
6fd0bebdd6
Fixing workspaces adding/editing ( #1405 )
...
* Fix creating new workspace
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Show not yet enabled workspaces in list
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Not showing disabled workspaces
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-17 16:35:59 +03:00
Roman
13dbdac2f2
PageRegistration / PageMenuRegistration fixes & more simplification ( #1386 )
...
* PageRegistration & PageMenuRegistration fixes & more simplification, fix #1383
Signed-off-by: Roman <ixrock@gmail.com >
* clean up test, deprecate page.routePath
Signed-off-by: Roman <ixrock@gmail.com >
* fix: proper `isActive` state matching for page-menu-target to page considering current document location
Signed-off-by: Roman <ixrock@gmail.com >
2020-11-16 15:18:53 +02:00
Alex Andreev
f98d11a0be
MInor workspace fixes ( #1382 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-15 17:04:21 +03:00
Jari Kolehmainen and Roman
df0f080380
Simplify pages/menus/registry extension api internal implementation ( #1364 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Co-authored-by: Roman <ixrock@gmail.com >
2020-11-13 17:04:39 +02:00
Alex Andreev
73d50f4695
Fix Landing Page width ( #1359 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-13 15:36:45 +03:00
Roman and Jari Kolehmainen
faa1cef307
PageRegistration & BaseRegistry refactoring ( #1334 )
...
Signed-off-by: Roman <ixrock@gmail.com >
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-12 16:29:02 +02:00
Alex Andreev
6432b3bb9e
Removing parental element styles that affect extensions ( #1331 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-12 12:58:59 +02:00
Jari Kolehmainen
4222359bd6
Add LensRendererExtension.navigate ( #1345 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-12 10:30:57 +02:00
Jari Kolehmainen
deb4773b44
Allow to specify KubeObjectDetailRegistration priority ( #1335 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-12 09:16:22 +02:00
Roman
1f88c05e82
Refactoring: removed kube versioned api ( #1328 )
...
Signed-off-by: Roman <ixrock@gmail.com >
2020-11-12 08:39:50 +02:00
Jari Kolehmainen
00be4aa184
Remove windowManager from extension api ( #1323 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-11 21:55:49 +02:00
Roman
c67dad54e3
fix: allow to select kube-api objects with label & field selectors ( #1327 )
...
Signed-off-by: Roman <ixrock@gmail.com >
2020-11-11 13:42:36 +02:00
Lauri Nevala
85c4a10114
Implement KubeObjectStatusText extension API ( #1188 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2020-11-11 08:57:15 +02:00
Sebastian Malton
a78bbb5f6c
Fix rendering of boolean values in CRDs ( #1087 )
...
* Fix rendering of boolean values in CRDs
- add optional special casing for boolean values in DrawerItems and
TableRows since React (imo annoying fashion) does not render boolean
values by default.
- add a spinner on the sidebar for when the CRD menu is expeanded but
the entries have not been loaded yet.
- Add ability to double click a Badge to expand, also make it so that
Badges highligh all text on first click.
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-10 10:10:19 -05:00
Alex Andreev
dd90dcb7f0
Removing !important statements from theme variables ( #1303 )
...
* Removing !important statements from theme vars
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Wait for user store to load
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix this reference
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Aligning test with resetTheme() fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-10 15:16:16 +03:00
Alex Andreev
b2f3cdd0d2
Keeping Icon focus state only for keyboard ( #1234 )
...
* Passing toolbar prop into action menus
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Toggling .mouse-intent
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Icon focus restyling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding what-input dependency
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-10 12:36:06 +03:00
Lauri Nevala
0f8e8c2237
Expose CRD api to extensions ( #1297 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2020-11-10 09:02:32 +02:00
Jim Ehrismann
033a91f002
implemented app menu testing support ( #1105 )
...
* implemented app menu testing support
* addded Preferences page helm repo test
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2020-11-09 15:10:30 -05:00