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

1072 Commits

Author SHA1 Message Date
Roman
0c83513e51 fix: various app-crashes related to kube-events (events page, some details page, overview, etc.)
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-12 14:44:51 +03:00
Roman
b15713cc42 refactoring: extensions-api exports clarification for "@k8slens/extensions"
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-12 14:04:42 +03:00
Roman
b9354584cf fix: crd definitions -> groups selector couldn't deselect last selected option
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-11 14:39:26 +03:00
Roman
a3a9be4a4f fix: crd definition details -> crashing with <AceEditor mode="json"> (added missing mode-file in ace-editor.tsx)
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-11 13:27:57 +03:00
Roman
cf664de29b - fix: persist table-sort params and cluster-view's sidebar state to lens-local-storage
- new-feature: auto-open main-window's devtools in development-mode (yes/no/ugly?)

Signed-off-by: Roman <ixrock@gmail.com>
2021-05-10 23:22:36 +03:00
Roman
749eb4a42b fix: restore "all namespaces" on page reload
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-10 21:22:00 +03:00
Roman
5c67bb7ae2 fix: app-crash on editing k8s resource
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-10 20:26:13 +03:00
Roman
ed1f88b5d8 fix: don't cache mobx.when(() => this.someObservable) cause might not work as expected due later call of makeObservable(this) in constructor
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-10 17:35:20 +03:00
Roman
3357269c5d fix: namespace-store refactoring / saving selected-namespaces to external json-file
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-10 15:55:07 +03:00
Roman
f96b789280 fix: various app-crashes related to KubeObject.spec.* access from "undefined"
fix: config-map-details crash

Signed-off-by: Roman <ixrock@gmail.com>
2021-05-09 23:57:08 +03:00
Roman
e5c0fe5d65 fix: refreshing cluster-view on ready
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-09 23:22:01 +03:00
Roman
995e032be4 debugging cluster-view error -- part 1
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-09 18:39:51 +03:00
Roman
6ee2385d3c refactoring, more possible branch fixes + lint
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-08 15:06:27 +03:00
Roman
0c8ff6a1d6 normalize usages of #observable-value.toJSON() / attempt to catch the wind
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-08 13:52:12 +03:00
Roman
d4d03532d7 storage-helper refactoring
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-07 14:16:11 +03:00
Roman
81a6b3ce17 Merge remote-tracking branch 'origin/master' into mobx6-migration
# Conflicts:
#	src/renderer/kube-object.store.ts
2021-05-07 12:29:55 +03:00
Roman
d60f1a775a fix: removed makeObservable(this) from "terminal-tab.tsx"
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-07 12:26:51 +03:00
Jari Kolehmainen
2c290cb32f remove ExtendedObservableMap
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-07 12:19:40 +03:00
Jari Kolehmainen
4d80895dd0
v5.0.0-beta.4 (#2722)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-07 10:44:48 +03:00
Jari Kolehmainen
253b3768f6
Fix auto-update exiting too fast (#2721)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-07 09:26:26 +03:00
Jari Kolehmainen
a6e916fa90
Create cluster object also for non-local sources (#2719)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-06 20:45:32 +03:00
Roman
8e6770114b use {useDefineForClassFields: true} in tsconfig.json
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-06 19:52:50 +03:00
Roman
e1af76754a removed @observable static
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-06 19:41:15 +03:00
Roman
5d09d7a126 mobx-6: use toJS()-wrapper since monkey-patching require(mobx).toJS doesn't work
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-06 18:55:14 +03:00
Sebastian Malton
a23f3e038c
release v5.0.0-beta.3 (#2711)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-06 10:26:48 -04:00
Roman
4a9178e8ea mobx-6: replacing @autobind() as method-decorator to @boundMethod
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-06 17:24:11 +03:00
Roman
884f8ae523 mobx-6 migration -- remove @autobind as class-decorator
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-06 17:07:57 +03:00
Roman
ecc3aa0820 unwrap possible observables from IPC-messaging
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-06 16:23:04 +03:00
Roman
02aa3217c3 mobx-6 migration -- part 3 (more fixes)
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-06 15:59:48 +03:00
Roman
ae1b840df7 mobx-6 migration -- part 2 (npx mobx-undecorate --keepDecorators)
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-06 15:49:22 +03:00
Roman
a0fb8b5933 mobx-6 migration -- part 1
Signed-off-by: Roman <ixrock@gmail.com>
2021-05-06 15:09:24 +03:00
Sebastian Malton
7b1b8e6321
Fix ClusterScoped kube APIs not subscribing (#2706)
* Fix ClusterScoped kube APIs not subscribing

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

* remove debug

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-06 09:10:52 +03:00
Alex Andreev
768e1d14ca
Fixing hotbar drag-n-drop animation issues (#2704) 2021-05-05 17:37:06 -04:00
Jari Kolehmainen
1044c544ad
Fix cluster disconnect not going switching to catalog (#2703)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-05 15:01:21 +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
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
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
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
Sebastian Malton
d1272515b8
Add browse all tab to catalog page (#2629) 2021-05-03 08:39:04 -04: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