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

1075 Commits

Author SHA1 Message Date
Roman
0312da0841 more fixes
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-05 16:57:32 +03:00
Roman
81607fd57a Merge branch 'master' into mobx-6.2
# Conflicts:
#	src/common/hotbar-store.ts
#	src/main/catalog-pusher.ts
#	src/main/cluster-manager.ts
#	src/main/cluster.ts
#	src/main/index.ts
#	src/main/window-manager.ts
#	src/renderer/components/+add-cluster/add-cluster.tsx
2021-05-05 16:12:41 +03:00
Roman
36a82aefe9 removed common/utils/autobind
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-05 14:05:36 +03:00
Jari Kolehmainen
8fff064e0c
Fix kubeconfig-sync issues (#2692)
- Removed `getFreePort` as its use is always a race condition. Change
  all uses of it to retrive the port after listening

- Added `getPortFrom` as a helper function to read a port from a stream

- Remove `Cluster.ownerRef` as it is outdated and no longer needed for 5.0

- Remove `Cluster.enabled`, no longer needed because of above

- Removed `Cluster.init`, moved its contents into `Cluster.constructor`
  as nothing in that function is asyncronous. Currently only being run
  on `main` as a stop gap until `renderer` gets its own version of
  `Cluster`

- Refactored `LensProxy` so as to prevent `pty.node` (a NodeJS
  extension) being included in `webpack.extension.ts`'s run

- Removed the passing around of the proxy port as that can now be
  accessed from an instance of `LensProxy`

- purge ContextHandler's cache on disconnect

Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-05-04 15:21:15 -04:00
Roman
35732e5a59 autobind-related fixes / refactoring
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-04 20:41:20 +03:00
Jari Kolehmainen
bf96e6ef4c
Publish npm package via gh actions (#2695)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-04 09:47:52 -04:00
Alex Andreev
1af12fe59e
Hotbar inner drag-n-drop (#2691)
* Configure ts to use react-jsx rule

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

* Moving HotbarSelector to separate component

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

* Initial drag-n-drop implementation

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

* Revert tsconfig and linter changes

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

* Reverting back active cell effect

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

* Adding drag-n-drop behavior

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

* Fix drag-n-drop logic

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

* White border on dragging over

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

* Adding test coverage

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

* Fixing cell hover effect

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

* Increase PageLayout z-index

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

* Styling hotbar selector tooltip

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-05-04 07:49:14 +03:00
Roman
4c627b8649 dock/dock-store fixes & refactoring
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-03 20:38:11 +03:00
Roman
87cdaa3661 storage-helper fixes/ micro-refactoring
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-03 20:36:48 +03:00
Jari Kolehmainen
83e63bf959
Include create resource templates in build (#2693)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-03 19:58:18 +03:00
Roman
fa1bb210d1 (bug?)fix: preferences.hiddenTableColumns.map() is not a function (app start)
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-03 19:41:29 +03:00
Roman
a840eccc28 Merge remote-tracking branch 'origin/master' into mobx-6.2
# Conflicts:
#	src/renderer/components/+catalog/catalog.tsx
2021-05-03 18:51:40 +03:00
dependabot[bot]
de0bf0bf72
Bump ssri from 6.0.1 to 6.0.2 (#2686)
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-03 18:35:31 +03:00
Roman
264af63fad master-merge fixes, upgrading packages: mobx-observable-history@2.0, mobx@6.3, mobx-react
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-03 16:41:36 +03:00
Sebastian Malton
d1272515b8
Add browse all tab to catalog page (#2629) 2021-05-03 08:39:04 -04:00
Roman
04ea4120ed Merge remote-tracking branch 'origin/master' into mobx-6.2
# Conflicts:
#	src/common/catalog/catalog-entity-registry.ts
#	src/common/user-store.ts
#	src/main/catalog-pusher.ts
#	src/main/cluster-manager.ts
#	src/main/cluster.ts
#	src/main/index.ts
#	src/renderer/bootstrap.tsx
#	src/renderer/kube-object.store.ts
2021-05-03 13:29:04 +03:00
Roman
e9bdd3d3f4 refactoring configuration of external packages with explicit function-call (mobx/immer)
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-03 13:17:23 +03:00
Jari Kolehmainen
d08aeaa2e4
Fix dashboard showing in the background when connect error happens (#2672)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-03 07:15:02 +03:00
Alex Andreev
311869566b
Removing material Tooltip global styles (#2682)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-30 16:48:42 +03:00
Sebastian Malton
998f7aa934
Add the ability to sync kube config files (#2567)
* Add the ability to sync kube config files

- Will update when the files changes

- add KUBECONFIG_SYNC label

- fix rebase and change to addObservableSource

- move UI to user settings

- support shallow folder watching

- add some unit tests for the diff-er

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

* responding to review comments

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

* fix tests and add try/catch

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

* always sync c&p folder, remove bad rebase

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

* fix preferences

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

* Fix settings saving and catalog view

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

* fix unit tests

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

* fix synced clusters not connectable

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

* change to non-complete shallow watching

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

* fix sizing

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

* Catch readStream errors

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

* don't clear UserStore on non-existant preference field, fix unlinking not removing items from source

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

* change label to file

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-30 16:48:20 +03:00
Sebastian Malton
f06d330835
release v5.0.0-beta.2 (#2675)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-29 11:05:13 -04:00
Samundra Shrestha
12d2dc8616
Fix broken link to adding-cluster instruction (#2646)
Signed-off-by: Samundra Shrestha <samundra.shr@gmail.com>
2021-04-29 08:34:27 -04:00
Sebastian Malton
082885cabf
Fix KubeObjectStore not correctly tracking loading of namespaces (#2266) 2021-04-29 08:32:29 -04:00
Sebastian Malton
2c3750c240
Fix display name on accessible namespaces notification (#2657)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-29 08:29:32 -04:00
Sebastian Malton
f61f768fc7
fix getNodeWarningConditions (#2644)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-29 12:25:44 +03:00
Jari Kolehmainen
0a604201d4
Fix hotbar icon kind light theme (#2668)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-29 12:24:48 +03:00
Alex Andreev
7bbe6aeab1
Removing add/delete empty cells feature (#2667)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-29 12:21:47 +03:00
Jari Kolehmainen
c057f3fc20
Show entity source on tooltip + use it for color (#2669)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-29 12:12:33 +03:00
Jari Kolehmainen
78c77a169a
Set product name to window title (#2665)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-28 15:40:25 -04:00
Sebastian Malton
ac963ede6e
Ignore failures due to files in bundled folder (#2661)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-28 15:29:02 -04:00
Jari Kolehmainen
dfb1dd763c
Electron-updater 4.3.8 (#2622)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-28 21:56:32 +03:00
Black-Hole
fbf1245576
fix(renderer-log): multiple spaces merge into one (#2655)
Signed-off-by: BlackHole1 <158blackhole@gmail.com>
2021-04-28 21:56:02 +03:00
Jari Kolehmainen
41c9a355ed
Refactor / fix cluster view visibility (#2654)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-28 21:38:57 +03:00
Sebastian Malton
d7199fda8e
release v5.0.0-beta.1 (#2660) 2021-04-28 12:43:31 -04:00
Roman
170412a2c4 Merge remote-tracking branch 'origin/master' into mobx-6.2
# Conflicts:
#	src/common/user-store.ts
#	src/renderer/components/hotbar/hotbar-icon.tsx
2021-04-28 14:28:37 +03:00
Roman
0190fd33d4 added tsconfig/useDefineForClassFields:true as part of mobx6 migration guide step
Signed-off-by: Roman <ixrock@gmail.com>
2021-04-28 14:26:24 +03:00
Jari Kolehmainen
1e1cbd3333
hotbar icon status led (#2651)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-28 11:25:16 +03:00
Sebastian Malton
ce27d704ae
release v5.0.0-alpha.4 (#2645)
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-27 13:21:52 -04:00
Alex Andreev
53606202c1
Command palette restyling (#2642)
* Styling command palette

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

* Animating command palette entering

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

* Fixing errors paddings

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-27 16:44:35 +03:00
Sebastian Malton
afa5379ba9
Flatten user preferences in user store (#2587)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-27 09:44:02 -04:00
Jari Kolehmainen
119d584bcb
Fix zsh zdotdir (#2640)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-27 15:18:03 +03:00
Alex Andreev
808642b64b
Fixing CatalogAddButton (#2639)
* Start first action on button click

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

* Fixing SpeedDial styles

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-27 14:23:28 +03:00
Roman
5a35d2a032 master-merge / lint fixes
Signed-off-by: Roman <ixrock@gmail.com>
2021-04-27 12:34:52 +03:00
Roman
e93bca5169 Merge remote-tracking branch 'origin/master' into mobx-6.2
# Conflicts:
#	src/common/hotbar-store.ts
#	src/extensions/extension-discovery.ts
#	src/renderer/components/+apps-helm-charts/helm-chart-details.tsx
#	src/renderer/components/+apps-helm-charts/helm-chart.store.ts
#	src/renderer/components/+catalog/catalog.tsx
#	src/renderer/components/+extensions/extensions.tsx
#	src/renderer/components/confirm-dialog/confirm-dialog.tsx
#	src/renderer/components/hotbar/hotbar-icon.tsx
#	src/renderer/components/kube-object-status-icon/kube-object-status-icon.tsx
#	src/renderer/components/layout/sidebar.tsx
2021-04-27 12:32:29 +03:00
Jari Kolehmainen
2ba0a90cb5
Show cluster metrics settings always (#2635)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-27 11:28:00 +03:00
Sebastian Malton
9dad08c45f
Asyncronously recompute the placement of an open <Menu> (#2631)
* Asyncronously recompute the placement of an open <Menu>

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

* fix refreshPosition

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-27 11:27:37 +03:00
Alex Andreev
6a702ad19c
Hotbar visual improvements (#2638)
* Adding hotbar cells

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

* Add/remove empty cells

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

* Increase cell corner radius

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

* Styling hotbar selector

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

* Generating 12 cells by default

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

* Adding custom scrollbar on hover

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

* Reset active cluster when leaving dashboard

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

* Moving kind icon top the top left corner

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

* Highlighting kind icon

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

* Add hotbar cell animations

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

* Adding small hover effect

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-04-27 11:25:06 +03:00
Jari Kolehmainen
b1274cbb33
Extensible welcome page (#2637)
* welcome/landing page

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

* fix integration tests

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-27 11:24:39 +03:00
Sebastian Malton
1f854d0a0f
Cherry-pick from 4.2.3 (#2628)
* Fix: logs data disapearing causing crashes (#2566)

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

* Refactor helm-chart.api and improve kube validation and error handling (#2265)

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

* Fix: HPA's not sortable by age (#2565)

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

* Conditionally render status icon for kube meta (#2298)

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

* Fix custom resource loading spinner appears above extensions' cluster menus (#2344)

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

* Lens should point to the release docs (#2268)

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

* Refactor the Extensions settings page (#2221)

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

* try and get jest to not core dump

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-27 08:11:50 +03:00
Roman
a93b0d08bc fix: @observable static decorators doesn't work without makeObservable(this)
Signed-off-by: Roman <ixrock@gmail.com>
2021-04-26 17:16:02 +03:00