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

1688 Commits

Author SHA1 Message Date
Alex Andreev
5090c323fb Use css modules for the Controls component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-12 10:06:30 +03:00
Alex Andreev
3eb129efcb Replace usage of callForAllLogs with
simple callForLogs

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-12 09:54:02 +03:00
Alex Andreev
f19c1565e4 Cleanin up by overriding internals of logsViewModel
injectable

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-11 16:00:45 +03:00
Alex Andreev
246fb5e54f Remove one more unused line
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-11 14:35:02 +03:00
Alex Andreev
62362b4992 Remove unused .mockReturnValueOnce
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-11 14:33:22 +03:00
Alex Andreev
f88c49c4c4 Update snapshots
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-11 14:32:01 +03:00
Alex Andreev
59dc8c958d Merge branch 'master' into download-all-pod-logs 2022-08-11 14:15:50 +03:00
Sebastian Malton
bd3f123aef
Fix Badges being too small when scrollable and not expandable (#5987)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-08-10 05:46:41 -07:00
Sebastian Malton
09f2919946
Remove usage of deprecated xtermjs's registerLinkMatcher API (#5996)
* Make openBrowser->openLinkInBrowser injectable

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

* Remove use of deprecated link matcher API from XtermJS

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

* Fix type errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-08-09 19:25:11 -07:00
Sebastian Malton
5c11d7f7fe
Fix completely overriding PATH in shellSync (#5451) 2022-08-09 10:08:56 -04:00
Sebastian Malton
592600c1bb
Fix focus not switching to new cluster frame (#5995) 2022-08-08 21:49:21 +03:00
Janne Savolainen
688ef40e92
Fix incorrect links in workload overview page (#6002)
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-08-08 12:26:48 -04:00
Sebastian Malton
d9785ad4dc
Fix ResourceQuotaDetails quotas display bugs (#5909) 2022-08-05 14:02:35 -04:00
Janne Savolainen
06d780479c
Tweak timing of starting and stopping periodical checking for updates (#5981) 2022-08-04 14:21:16 -04:00
Sebastian Malton
8dea3ad8bc
Correctly handle HorizontalPodAutoscaler metrics with 0 usage (#5986) 2022-08-04 14:21:01 -04:00
Janne Savolainen
04652b4f90
Tweak timing of starting and stopping kubeconfig sync (#5982) 2022-08-04 14:12:33 -04:00
Sebastian Malton
249927dc80
Fix HorizontalPodAutoscaler metrics not displaying current values (#5956) 2022-08-04 12:34:52 -04:00
Sebastian Malton
2b24a42883
Fix Pod Container sorting not correlating to visuals (#5175) 2022-08-02 12:44:32 -04:00
Sebastian Malton
95ed0dda1b
Fix CPU spike when opening PodDetails from MonacoEditor (#5642) 2022-08-02 12:41:23 -04:00
Janne Savolainen
83232440dc
Replace individual mocks for withTooltip with global mock (#5962) 2022-08-02 10:06:37 -04:00
Sebastian Malton
57e4e29a16
Fix not being able to switch metrics if none are available (#5430)
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-02 10:05:15 -04:00
Alex Andreev
3d62d1c029
Fix ingress list line heights (#5949)
* Split ingress rules by multiple lines

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

* Force updating virtual list when rowHeights changed

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

* Replacing simple div selectors with more specific

.ingressRule classnames

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-02 15:24:53 +03:00
Alex Andreev
3c217b0934 Update snapshots
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-02 13:57:54 +03:00
Alex Andreev
f6d30f289c Respect timestamps and previous props
in callForAllLogsInjectable

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-02 11:39:06 +03:00
Alex Andreev
175a1dc815 Removing previous Download icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-02 11:09:56 +03:00
Alex Andreev
356712cbe1 Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-02 10:50:30 +03:00
Alex Andreev
34f51097cb After clicking on button test cases
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-02 10:46:28 +03:00
Alex Andreev
c0d254a71e Drop waiting state on network or other error
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-02 10:45:46 +03:00
Alex Andreev
a7d7fa9c9a Coloring and styling Download logs button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-02 10:45:05 +03:00
Alex Andreev
e8915336dc Cleaning up Controls component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-02 10:44:45 +03:00
Alex Andreev
f12e2e1345 Introduce download logs dropdown
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-01 14:18:04 +03:00
Sebastian Malton
07568839f6
Fix KubeObjectDetails drawer not working for Cluster scoped resources (#5954)
- Fix not displaying spinner while object is not defined

- Fix not displaying loading error if object is not defined

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-08-01 13:25:29 +03:00
Alex Andreev
e0a061c0ce Initial draft of download all logs tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-01 13:24:42 +03:00
Alex Andreev
454c4b2aaa Use randomId while creating pod logs tab
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-01 13:23:53 +03:00
Alex Andreev
a191a46e4b Add sketch of Download all logs button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-01 13:23:14 +03:00
Sebastian Malton
485f213461
Remove duplicate 'Controlled by' section on Jobs' details (#5943)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-08-01 13:22:49 +03:00
Alex Andreev
90f8342387 Creating callForAllLogsInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-01 13:22:01 +03:00
Janne Savolainen
af4b74d9bd
Open application only if new update is available when using tray to check for updates (#5948)
* Prevent opening of application if no new updates were downloaded when checking for updates using tray when application window is closed

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

* Fix getting initial value of sync box

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

* Tweak naming of variable

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-07-29 15:55:16 +03:00
Alex Andreev
5ddd8e8846
Fine-tune styles of Extensions page (#5921) 2022-07-28 16:34:06 -04:00
Sebastian Malton
feb2859b5d
Fix Badge.props.expandable's default being switched to false (#5911)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-07-28 13:11:32 -07:00
Janne Savolainen
e682c7de45
Fix editing of kube resource (#5906) 2022-07-27 11:44:11 -04:00
Alex Andreev
e334a6aeda
Adding more control over extension preferences page title (#5901)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-07-27 14:05:55 +03:00
stewoe
392d548bf0
Set focus on port field when port-forward-dialog opens (#5908)
Signed-off-by: Stefan Woehrer <stefan.woehrer@lean-coders.at>

Co-authored-by: Stefan Woehrer <stefan.woehrer@lean-coders.at>
2022-07-27 14:03:58 +03:00
Janne Savolainen
a12b94405a
Resolve kube object status texts again on re-render to make it look like it's reactive (#5875)
* Make tests for kube object status icon more realistic

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

* Start resolving kube object status texts on each re-render to mimic reactivity

Note: This is done due the current implementation exposed in Extension API expects it to work so. However, this is bad.

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

* Switch to using existing implementation for isDefined

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-07-27 09:21:38 +03:00
Sebastian Malton
f61330611e
Remove global shared state to fix unit tests (#5889) 2022-07-26 08:55:13 -04:00
Janne Savolainen
bedc440d42
Fix opening of release details (#5850)
* Make sure release details are updates when opening details

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

* Relax filtering of resources to prevent crashing when release has installed resources in another namespace

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

* Add Open Closed Principle compliant way to introduce global overrides without modification in getDiForUnitTesting

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

* Rework helm release details to fix multiple bugs

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

* Remove redundant optional chaining

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

* Simplify code

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2022-07-26 14:57:46 +03:00
Sebastian Malton
e7e8d1688c
Fix trying to connect to cluster whose entity doesn't exist (#5881)
* Fix trying to connect to cluster whose entity doesn't exist

- If a Cluster is trying to be connected to but there is no associated
  entity then don't try and connect

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

* Revert cleanup

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-07-25 13:12:46 -04:00
Alex Andreev
811d96eb74
Fix styles for topbar window buttons on linux (#5874)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-07-25 08:55:41 +03:00
Sebastian Malton
f7f41cab79
Fix terminal freezing self and whole app when internet is disconnected (#5870)
- Remove uses to navigator.onLine as not needed and because that value
  cannot be trusted (see several bug reports on chromium)

- Fix infinite loop when socket is not connected in flush

- Add some simple tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-07-25 08:34:54 +03:00
Sebastian Malton
4e4690f15f
Fix edit kube resource tab not respecting changes to current draft (#5878) 2022-07-22 12:14:48 -04:00