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

1090 Commits

Author SHA1 Message Date
Roman
e527cafde7 Merge remote-tracking branch 'origin/master' into monaco_editor_refactoring
# Conflicts:
#	src/renderer/bootstrap.tsx
#	src/renderer/components/+apps-releases/release-details.tsx
#	src/renderer/components/dock/__test__/log-tab.store.test.ts
#	src/renderer/components/dock/create-resource.tsx
#	src/renderer/components/dock/dock.store.ts
#	src/renderer/components/dock/edit-resource.store.ts
#	src/renderer/components/dock/edit-resource.tsx
#	src/renderer/components/dock/editor-panel.tsx
#	src/renderer/components/dock/log-tab.store.ts
#	yarn.lock
2021-10-09 21:44:22 +03:00
Roman
d7006e63ea ui/ux: improved handling editor's focus when interacting with <Dock/>
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-09 21:39:11 +03:00
Roman
118d07cfb9 fix: provide validation error to <InfoPanel/> via MonacoEditor.props.onError()
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-09 20:11:00 +03:00
Roman
091ef1f11a provide validation error via props.onError()
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-09 18:09:27 +03:00
Roman
adbe6cad69 fix: always use string for monaco.editor.setValue(value) / handle undefined
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-09 17:31:06 +03:00
Roman
5093b094f6 monaco editor value validators -- part 1
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-08 23:01:36 +03:00
Roman
18ca0aab86 fix: restore editor's model state (cursor pos, selection, etc.) on any dock tabs change
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-08 17:26:18 +03:00
Sebastian Malton
0cd3931d67
Don't run store migrations on renderer (#3968) 2021-10-08 09:15:40 -04:00
Roman
f86fc022f3 - fixed animation for open/close <Dock/>'s UI state
- added helper dockStore.onTabClose(): IReactionDisposer for easier clean up

Signed-off-by: Roman <ixrock@gmail.com>
2021-10-08 13:57:04 +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
Sebastian Malton
e10c13cdf4
Switch integration tests to get application menus by IDs (#3912) 2021-10-07 15:30:52 -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
Roman
dfd1f06977 detach dock-views registration from dock.tsx
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-07 16:20:53 +03:00
Roman
e66ed4709b fix: apply global editor settings from app preferences
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-06 17:38:18 +03:00
Roman
c4aa88183f dock-tabs: create-resoure refactoring & fixes
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-06 14:56:04 +03: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
Marc Bachmann
851274d314
Fix prometheus operator support (#3653) 2021-10-05 12:35:57 -04:00
Roman
7355f61465 fix tests
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-05 17:25:30 +03:00
Roman
b421591931 refactoring dock-tab stores -- part 3
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-05 16:49:51 +03:00
Sebastian Malton
4705a66632
Use JSON patch for editing components (#3674) 2021-10-04 16:28:19 -04:00
Sebastian Malton
8b1de233f2
Don't override entity source on cluster icons (#3928) 2021-10-04 14:38:14 -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
Roman
5038267bbc refactoring dock-tab stores -- part 2
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-04 19:42:08 +03: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
Roman
5c41b8612e refactoring dock-tab stores -- part 2 / fix: splash screen stucks forever
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-04 13:16:35 +03:00
Roman
f140bc5b70 refactoring dock-tab stores -- part 1
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-03 17:19:18 +03:00
Roman
fa90eb833c first poc: removed common/logger usages cause potential leading to infinite loops in some cases with the editor
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-03 10:30:27 +03:00
Roman
74ebf2393d chore
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-02 19:32:00 +03:00
Roman
4341d35304 remove redundant type declaration in callbacks
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-02 13:43:24 +03:00
dependabot[bot]
548a517e64
Bump url-parse from 1.5.1 to 1.5.3 (#3813)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-01 17:07:55 -04:00
Sebastian Malton
cfd89fa7ba
Pin @k8slens/extensions dependencies instead of wildcarding them (#3930) 2021-10-01 15:46:25 -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
Roman
9da10dc7b0 more fixes/refactoring + get rid of "react-monaco-editor"
Signed-off-by: Roman <ixrock@gmail.com>
2021-10-01 17:01:36 +03:00
Roman
65aadbac52 detach dock-store imports from monaco-editor.tsx
Signed-off-by: Roman <ixrock@gmail.com>
2021-09-30 23:50:08 +03:00
Roman
0f4301a5a3 fix: properly handle resizing editor dom element and refresh layout
Signed-off-by: Roman <ixrock@gmail.com>
2021-09-30 18:46:16 +03:00
Sebastian Malton
b692bc3603
Make default catalog action to open entity (#3915) 2021-09-30 09:46:33 -04:00
Roman
13786930eb fix: Uncaught Error: ModelService: Cannot add model because it already exists!
(how-to-reproduce: open/close dock with tabs)

Signed-off-by: Roman <ixrock@gmail.com>
2021-09-30 15:06:18 +03:00
Roman
0adc66d412 fix: backup current view state on dock-tabs change
Signed-off-by: Roman <ixrock@gmail.com>
2021-09-30 14:56:57 +03:00
Roman
0c0b823626 more fixes & optimizations
Signed-off-by: Roman <ixrock@gmail.com>
2021-09-30 14:49:39 +03:00
Roman
494287132a fix tests
Signed-off-by: Roman <ixrock@gmail.com>
2021-09-29 18:31:09 +03:00
Juho Heikka
8bbaf8c59e
Add terminal copy on select (#3904) 2021-09-29 08:55:39 -04:00
Roman
92766e71e4 monaco editor implemented right
Signed-off-by: Roman <ixrock@gmail.com>
2021-09-29 14:08:27 +03: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
Jim Ehrismann
8bca8dd7dc
updated expired community slack invite link with permanent one (#3906)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-09-28 12:50:34 -04:00