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

1849 Commits

Author SHA1 Message Date
Alex Andreev
07a775c32d
Fix scss compilation warning by removing flex.box dependency (#6411)
* Save only used selectors from flex.box library

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

* Remove flex.box dependency

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-10-14 09:56:54 -04:00
Piotr Roszatycki
19a18ebe2a
Clickable StorageClass (#6410)
Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
2022-10-14 09:32:56 +03:00
Alex Andreev
491082f784
Add data-origin to status bar items for better observability (#6400)
* Passing id to status-bar-items

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

* Add data-origin prop for status bar items

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

* Fixing status bar tests

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

* Update snapshots

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

* Fix linter

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

* Rename id -> origin because it is not unique

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-10-14 09:27:10 +03:00
dependabot[bot]
4d4b8b026f
Bump react-select from 5.4.0 to 5.5.0 (#6404)
* Bump react-select from 5.4.0 to 5.5.0

Bumps [react-select](https://github.com/JedWatson/react-select) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/JedWatson/react-select/releases)
- [Changelog](https://github.com/JedWatson/react-select/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/JedWatson/react-select/compare/react-select@5.4.0...react-select@5.5.0)

---
updated-dependencies:
- dependency-name: react-select
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

* Update snapshots

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

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2022-10-13 09:15:07 -04:00
Sebastian Malton
5a5eda935b
Add better type safety around Channels (#6133)
* Add better type safety around Channels

- Reallow non-JSON serializable complex types

- Remove unnecessary JSON serialization step to IPC

- Remove unnecesary injectable-ization of MessageChannel and
  RequestChannel declarations

- Add channel listener injectable getter function to remove general need
  for type casting and improve type safety

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

* Add check to verify data in IPC related tests

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

* Fix implementation in light of new safety check in tests

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

* Fix listener ID clash potential

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

* Switch to not forcing split of request channel handlers being seperate from the listener decl

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

* Move message channels to changed signature too

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

* Fix not registering listener

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

* Fix test imports

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

* Fix type errors

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

* Refactor listening of different channel kinds

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

* Add test covering new checking code for request channel handlers

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-13 07:50:19 -04:00
Sebastian Malton
d96918c966
Fix windows shell not having all environment variables (#6402)
* Fix windows shell not having all environment variables

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

* Fix startup due to buildVersion dependency

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

* Call cleanup in computeShellEnvironment

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-13 07:49:58 -04:00
Sebastian Malton
4e02ccb1c7
Fix ReactiveDuration to update as frequently as necessary (#6375)
- When used in non compact mode (eg KubeObjectMeta's age) the seconds
  can be displayed but previously between 10m and 180m of age, the
  display would only update every minute

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-11 10:58:46 -04:00
Piotr Roszatycki
51af8f8aa4
Leases view (#6378)
* Leases view

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

* Renamed default exports

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
2022-10-11 10:40:23 -04:00
Sebastian Malton
f021d9d0db
Change notification when extension is not found (#5184)
* Change notification when extension is not found

- Removes legacy downloadFile and downloadJson in favour of using
  `node-fetch`

- A notification will be displayed if the URL provided results in a
  status of 404

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

* Resolve PR comments

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-11 10:40:02 -04:00
Piotr Roszatycki
da91347121
Clickable links in pods details for ServiceAccount, PriorityClass and RuntimeClass (#6352)
* Clickable links in pods details

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

* Make linter happy

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

* Use withInjectables

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

* ServiceAccounts are namespaced

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

* Revert legacy APIs

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

* Make linter happy

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
2022-10-11 10:04:08 -04:00
dependabot[bot]
10c3a452a4
Bump @types/tar from 6.1.2 to 6.1.3 (#6380)
* Bump @types/tar from 6.1.2 to 6.1.3

Bumps [@types/tar](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/tar) from 6.1.2 to 6.1.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/tar)

---
updated-dependencies:
- dependency-name: "@types/tar"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

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

* Fix type errors

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

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2022-10-11 09:06:07 -04:00
Sebastian Malton
fced6e6554
Fix crash when opening pod details (#6376)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-10 09:30:25 -04:00
Jari Kolehmainen
388c38fc5e
improve shellEnv (#6351)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2022-10-07 09:19:10 -04:00
Sebastian Malton
cdeededa82
Fix loading helm release details (#6318)
* Fix loading helm release details

- The helm manifest can sometimes contain KubeJsonApiDataLists
  instead of just KubeJsonApiData entries

- Add additional logging to main for when a route handler throws so that
  we can gain more context in the future

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

* Update tests

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

* Fix usage of getHelmReleaseResources

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

* Add test to verify handling of Lists being returned

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-07 09:16:36 -04:00
Sebastian Malton
5e6cf163a2
Add distribution and version columns for KubernetesClusters (#6166)
* Add distribution and version columns for KubernetesClusters

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

* Fix ItemObjectList to not display column toggles for columns without IDs

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

* Default the title cell props ID to be the registration ID

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-07 09:16:05 -04:00
Jari Kolehmainen
351ad503c8
remove sentry logger-transport (#6345)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2022-10-06 10:22:03 -04:00
Sebastian Malton
989a24f1f8
Upgrade all injectable libraries to v11 (#6338)
- Includes local fixes that are required by the new code

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-05 16:42:38 -04:00
Piotr Roszatycki
79efe1be29
Add Runtime Classes views (#6294)
* Show runtimeClassName in pods view

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

* Runtime Classes view

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

* Reverted formatting

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>

Signed-off-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
2022-10-05 08:12:16 -04:00
Sebastian Malton
76066c5ebf
Making apiBase injectable (#6022)
* Making apiBase injectable

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

* Convert all of Helm functions to be DI

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

* Make PortForward's use of apiBase fully injectable

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

* Convert all metric requests to be injectable

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

* Replace resource applier with injectables

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

* Switch KubeJsonApi.forCluster to be injectable but do not use

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

* Convert the rest of shell sessions to be DI-ed

- This is a prerequesit for using the new
  createKubeJsonApiForClusterInjectable

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

* Use new createKubeJsonApiForClusterInjectable for openNodeShellSession

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

* Make KubeconfigDialog injectable

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

* Remove jest-fetch-mock and make fetch injectable

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

* Fix tests with new global override

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

* Add new injectable for create KubeJsonApi and JsonApi instances

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

* Fix showing-details-for-helm-release behavioural tests

- Remove HelmChartStore in favour of all injectables

- Create a model for UpgradeChartDockTab

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

* Fix show details and updating helm releases tests

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

* Fix residual typing issues related to metrics

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

* Fix crash on load due to circular dependency

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

* Fix create resource tab not working

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

* Remove legacy apiBase global

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

* Introduce and use isDebuggingInjectable

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

* Introduce and use windowLocationInjectable

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

* Remove global legacy apiKube

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

* Improve injectable filenames compared to the injectables inside

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

* Remove modifying input in requestActivePortForwardInjectable

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

* Introduce and use get(Milli)SecondsFromUnixEpochInjectable

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

* Switch to non-reactive way of gettting possible helm release versions

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

* Fix typo

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

* Fix bug in KubeApi constructor

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

* Convert all KubeApi related tests to use asyncFn

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

* Fix unit tests after introducing new injectables that have side effects

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

* Fix bad rebase causing tests to fail

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

* Improve expects for multiple field values

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

* Fix crash will looking up api refs

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

* Fix breaking change on KubeApi.list

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

* Better fix for formatting urls

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

* Remove injectable for time since we should just use useMockTime

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

* Add happy path behavioural tests for upgrade chart tab

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

* Remove debug message

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

* Update snapshots

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

* fix showing-details-for-helm-release tests

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

* Fix installing-helm-chart-from-new-tab tests

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

* Fix tests relating to hosted cluster id

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

* Update snapshots to recent changes in master

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>

* Reupdated upgrade chart new tab test snapshots

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

* Fix flakiness in unit test when using <Animated>

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

* Fix flakiness and improve tests for DeleteClusterDialog

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

* Fix kubeconfig-sync tests

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

* Fix <Extensions> tests by removing mockFs and making everything injectable

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

* Fix build issues

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

* Fix getElectronAppPathInjectable override not returning absolute paths

- Also fixes the listing-active-helm-repos-in-prefs tests

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

* Replace all uses of getAbsolutePath with joinPaths as it is more correct and less confusing

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

* Fix opening application window tests by making override properly absolute

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

* Update snapshots relating no longer using getAbsolutePath

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

* Fix and add behavioural tests for RenderDelay

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

* Fix extension discovery tests

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

* Fix test flakiness because of path side effects, propagate uses to as many places

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

* Fix extension-discovery tests

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

* Add global override to fix some tests

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

* Rewrite and fix implementation of KubeconfigManager and its tests

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

* Fix tests by global override pathExists

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

* Fix unit tests failing on windows by using injectable verions of path functions

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

* Attempt to fix test timeout by using runInAction

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

* Update snapshots after rebase

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

* Update snapshots after rebase

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

* Fix tests after rebase

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

* Fix setupIpcMainHandlers usage

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

* Update snapshots

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
Co-authored-by: Iku-turso <mikko.aspiala@gmail.com>
2022-10-05 08:10:36 -04:00
Sebastian Malton
ed073d6562
Revert "Remove mac-ca usage since it was only in tests (#6043)" (#6319)
This reverts commit f544386619.

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:52:55 -04:00
Jim Ehrismann
07d03d3844
ignore prerelease tag for kubectl version to download (#6299)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-10-04 15:33:18 -04:00
Alex Andreev
0fe3242030
Refactoring dock tab download logs tests (#6149)
* Separate 'download visible' and 'download all' tests

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

* Add disabled prop to DownloadLogsDropdown

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

* Test for dropdown if no logs available in the tab

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

* Fix linter

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

* Remove unused code statement

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

* Update snapshots

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-10-04 14:17:21 +03:00
Sebastian Malton
032e6d968c
Validate ClusterModel before trying to update or create a Cluster (#4515)
* Validate ClusterModel before trying to update or create a Cluster

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

* Fix tests

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-03 12:36:28 -04:00
Sebastian Malton
f544386619
Remove mac-ca usage since it was only in tests (#6043)
* Make injecting CAs injectable, remove mac-ca as dependency

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

* Fix win-ca failing on electron renderer on windows

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

* Fix the matcher under features/ for main

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

* Fix lint

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-03 10:41:59 -04:00
Sebastian Malton
b9cc0d5687
Fix kubeconfig-sync sometimes producing multiple identical entities (#5855) 2022-10-03 10:38:41 -04:00
Sebastian Malton
e6396b7314
Stop overriding intree extension versions on build (#6239) 2022-10-03 10:36:47 -04:00
Andy Hall
55960ef653
Add missing space in "Remove x items" (#6290) 2022-10-03 09:53:06 -04:00
Juho Heikka
e8f691ab0e
Remove get-logs telemetry event (#6296)
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2022-09-29 11:48:22 +03:00
Panu Horsmalahti
f594f961c6
Fix Singleton type in exports. (#6291)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2022-09-28 13:42:38 +03:00
Juho Heikka
333517eaa0
Remove telemetry from resource tab (#6284) 2022-09-21 15:49:18 +03:00
Sebastian Malton
4c49134dbc
Fix crash on clean startup (#6276)
* Convert ReleaseChannel into an InitializableState

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

* Fix init timing for DefaultUpdateChannel

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

* Make UserStore loading seperate from creation to fix initialization timing errors

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

* Fix overrides of UserStore

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

* Fix UserStore tests

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

* Move userStoreFileMigration call to the init runnable

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

* Add global override for userStoreFileMigratiom

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-09-20 08:19:09 +02:00
Sebastian Malton
a52e7be272
Fix typing issue with missing build.publish field (#6264) 2022-09-16 09:19:06 -04:00
Sebastian Malton
480899c0b6
Revert KubeJsonApi removal from extension api (#6260) 2022-09-16 08:32:33 -04:00
Sebastian Malton
67ac1692b2
Clean up versioning and packageJson uses (#6196) 2022-09-15 17:20:58 -04:00
Sebastian Malton
cfe35ded90
Fix overflow on main layout not being scrolled (#6258) 2022-09-15 15:56:41 -04:00
Sebastian Malton
a784ca70b1
Fix beta->latest->beta upgrade loop (#6189) 2022-09-15 08:02:14 -04:00
Ashley Nelson
9918c6a4d9
Update link to "add-cluster" docs page (#6240) 2022-09-14 09:55:30 -04:00
Jim Ehrismann
a2d52fa6b8
Made welcome page configurable (#6232)
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2022-09-14 09:07:44 -04:00
Alex Andreev
e3703dbf26
Leading topbar home button to welcome page (#6218) 2022-09-13 10:43:51 -04:00
Sebastian Malton
23cb231c8f
Fix discovering extensions with with scopes (#6221) 2022-09-09 16:05:16 -04:00
Jari Kolehmainen
2d6239123b
Install all extensions via package.json (#6214) 2022-09-09 09:15:28 -04:00
alexfront
85426ace80 Remove a leftover
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-09 11:47:35 +03:00
alexfront
66dbcede1c Merge branch 'master' into wrap-pod-logs 2022-09-09 11:34:15 +03:00
alexfront
0de9b9c168 Decrease scroll to bottom timeout time a bit
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-09 11:27:44 +03:00
alexfront
0383666f23 Remove unused files
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-09 11:26:42 +03:00
alexfront
c4f41db275 Increase timeout delay to wait virtualizer
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-09 11:06:41 +03:00
alexfront
aeb0127a8f Disable smooth scrolling
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-09 11:04:24 +03:00
alexfront
e82f83fa5a Use named export for useIntersectionObserver
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-09 10:00:42 +03:00
alexfront
511fc09419 Prevent useEffect not firing with because of condition
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-09 09:59:42 +03:00
alexfront
64773f3b69 Unify styles for the top and bottom lines
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-09 09:58:59 +03:00
Janne Savolainen
ec78080d99
Make opening of release details work properly when release has resources without namespace (#6088)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2022-09-08 13:57:11 -04:00
alexfront
2d69bbcfd8 Fix linter errors
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-08 16:04:57 +03:00
alexfront
d951f3a017 Move all side effects to hooks
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-08 16:00:01 +03:00
alexfront
ac8ed1478e Scroll list to bottom when new logs arrived
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-08 14:14:35 +03:00
Sebastian Malton
100bd870d7
Assume that bundled extensions are always compatible (#6195)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-09-08 06:34:36 -04:00
Panu Horsmalahti
78b771d03b
Allow extensions to control status bar item visibility (#6178)
* Allow extensions to control status bar item visibility.

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

* Move visible to StatusBarRegistration

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>

Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
2022-09-07 08:41:50 -04:00
Sebastian Malton
4a033a49f0
Readd space between key and value in ENV display (#6183)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-09-07 08:40:56 -04:00
Juho Heikka
167f42330b
Initial telemetry whitelist (#6181)
* Remove emit-telemetry tag from navigate-to-route injectable

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Rename injectable to more describing name

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Add initial injectable ids to white-list

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2022-09-07 08:40:37 -04:00
Jari Kolehmainen
7d9c79b50a
bump npm to 8.19.1 (#6176)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2022-09-07 08:32:40 -04:00
alexfront
d37ae1bffe Fixing ts compilation errors
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-07 15:24:47 +03:00
alexfront
1898a4d68e Remove unused code
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-07 15:21:23 +03:00
alexfront
dadd69ef03 Add useIntersectionObserver() hook
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2022-09-07 15:10:32 +03:00
Sebastian Malton
4eb71420a5
Move pod-logs test to features folder (#6188) 2022-09-06 14:07:33 -04:00
Alex Andreev
05a3ed0e57 Fix scrolling to items on search
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 19:28:01 +03:00
Alex Andreev
7b53650628 Hook function renaming
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 19:05:10 +03:00
Alex Andreev
51c059f1ba Give more room to the LogRows content
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 18:54:26 +03:00
Alex Andreev
6ec761868b Restyling Jump to bottom button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 18:49:50 +03:00
Alex Andreev
b8f4fa14bf Show Jump to bottom button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 18:35:02 +03:00
Alex Andreev
4c74d5a780 Add useInitialScrollToBottom() hook
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 18:26:16 +03:00
Alex Andreev
8ed40ffb8f Create useScrollToBottomButton hook
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 17:40:05 +03:00
Alex Andreev
b989340f84 Refresh rows measurement by refreshing their keys
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 16:56:06 +03:00
Alex Andreev
5443f40259 Highlight log row on hover
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-06 16:44:52 +03:00
Alex Andreev
c4ae074abd Add wrapper switch
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 15:26:24 +03:00
Alex Andreev
f90ede1026 Scroll to overlay from the search
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 13:54:57 +03:00
Alex Andreev
f09974fd1f Move LogRow to its own file
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 13:36:49 +03:00
Alex Andreev
da8570d974 Add more styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 13:27:32 +03:00
Alex Andreev
2e0b4d15b3 Add LogList external styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 13:21:23 +03:00
Alex Andreev
1679ba14e1 Scroll to bottom on tab change
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-05 13:15:13 +03:00
Sebastian Malton
f461b85b66
Fix type error in download-logs test (#6167) 2022-09-02 17:01:31 -04:00
Sebastian Malton
bab1b13317
Fix envFrom.prefix not being applied in container's env view (#5434) 2022-09-02 13:49:53 -04:00
Sebastian Malton
6ef284560a
Use extension version as projectVersion for exported ExtensionStore (#6161) 2022-09-02 09:43:06 -04:00
Iku-turso
fc3512daf2
Introduce a centralised way to emit telemetry from calls of injectable functions (#6164)
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Co-authored-by: Juho Heikka <juho.heikka@gmail.com>
2022-09-02 09:33:22 -04:00
Lauri Nevala
f3ff5117e5
Add Prometheus Helm 14.x metrics provider (#6157) 2022-09-02 08:47:42 -04:00
Lauri Nevala
ba49ede36c
Reset Prometheus metrics provider on disconnect (#6158) 2022-09-02 08:46:35 -04:00
Alex Andreev
c4538e928b Scroll to bottom on pod id change
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-02 14:33:00 +03:00
Alex Andreev
968621f7c6 Fix scroll position when more logs loaded
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-02 13:46:44 +03:00
Alex Andreev
6d0d524f4f Merge branch 'master' into wrap-pod-logs 2022-09-02 12:49:48 +03:00
Alex Andreev
62cc0d7689 Keep scrolling position when loaded more logs
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-02 10:28:37 +03:00
Sebastian Malton
0d28af3fe5
Update snapshots from other work (#6160) 2022-09-01 11:26:10 -04:00
Sebastian Malton
b0d72b78d0
Bump typescript, @typescript-eslint/eslint-plugin, and @typescript-eslint/parser (#6143) 2022-09-01 10:05:32 -04:00
Alex Andreev
37318cab4e
Fix: align sidebar menu items (#6138)
* Introduce sitebar-items.module.scss

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

* Adjust sidebar item styles

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

* Use classnames from a scss module

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

* Set sidebar min width to 150px to keep readability

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

* Break words in long links

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

* Adjust navigation paddings

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

* Remove unused scss file

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

* Updating bunch of snapshots

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

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 12:52:55 +03:00
Alex Andreev
af8f39f83a Show logs regarding to showTimestamps flag
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 11:28:09 +03:00
Alex Andreev
e16fcf23a7 Remove overflow from the LogControls
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 09:51:06 +03:00
Alex Andreev
e02278d515 Merge branch 'master' into wrap-pod-logs 2022-09-01 09:49:29 +03:00
Alex Andreev
88678f63a2 Load more logs when scrolled to top
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 09:44:19 +03:00
Alex Andreev
85fadc74e0 Set some list onScroll events
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 09:28:31 +03:00
Alex Andreev
843c0f76f6 Remove overflow from the LogControls
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-09-01 09:27:55 +03:00
Alex Andreev
2fe7668edc
Remove requests/limits text data for workload metrics (#6128) 2022-08-31 14:20:35 -04:00
Lauri Nevala
cacc92d37a
Fix Promethes operator metrics provider detection (#6150) 2022-08-31 11:22:17 -04:00
Alex Andreev
6f91071af4 Using new <LogList/>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-08-31 14:34:54 +03:00