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

3491 Commits

Author SHA1 Message Date
Alex Andreev
3192ece80b Replace error notification with logger error
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-13 10:41:26 +03:00
Alex Andreev
95a3d3b144 Merge branch 'master' into enhancement-ability-to-remove-subnamespaces 2023-02-13 09:51:09 +03:00
Alex Andreev
0719293b11
Namespace details tree view (#7080)
* Initial tests for <NamespaceTreeView />

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

* Introduce <NamespaceTreeView/>

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

* Render namespace children

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

* Render a child subnamespace

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

* Remove unused lodash import

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

* Render subnamespace badge after name

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

* Testing rendering 2 levels deep

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

* Add tree view to namespace details

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

* Expand all nodes by default

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

* Add links to the tree items

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

* Initial label styling

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

* Label and group styling

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

* Remove fontSize attr from SvgIcon

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

* Styling subnamespace badge

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

* Expand and collapse tree nodes

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

* Testing clicking plus icon

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

* Restyling subnamespace badge

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

* Adding tooltip for subnamespace badge

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

* Linter fixes

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

* Fix linter harder

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

* Replace CloseIcon with semi-transparent MinusIcon

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

* Styling TreeView inside scss module

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

* Move isSubnamespace method inside API

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

* Extract nodeId to avoid repeating

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

* Rename Icon components

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

* Clean up tests from boilderplate

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

* Subnamespace badge style fixes

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

* Linter fix

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

* Use font-size: x-small instead of rem units

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

* Move subnamespace badge show check to parent

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

* Use prevDefault util

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

* Refactor: move tree build logic to store

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

* Linter fixes

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

* Refactor hierarchicalNamespacesInjectable

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

* Add tests for getNamespaceTree() function

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

* Use Subnamespace badge in namespace list (#7132)

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

---------

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-13 09:34:03 +03:00
Alex Andreev
e75591b2a7 Tiny typing fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-10 14:27:52 +03:00
Alex Andreev
2c39868b39 Remove unused import
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-10 13:35:53 +03:00
Alex Andreev
ff9cbfb78b Remove success notification while removing subnamespace
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-10 13:31:51 +03:00
Alex Andreev
fa148b309b Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-10 13:30:59 +03:00
Alex Andreev
da3e08f303 Introduce removeNamespaceInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-10 13:28:34 +03:00
Sebastian Malton
5d21db9fc2
Remove self-referencial from root package.json (#7130)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-10 09:05:13 +02:00
Alex Andreev
58546b0e65 Does not remove subnamespace with usual method
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-09 17:33:52 +03:00
Alex Andreev
9f0b4323db Testing removing a regular namespace
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-09 17:18:28 +03:00
Alex Andreev
6184325507 Add tests for getNamespaceTree() function
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-09 10:45:42 +03:00
Sebastian Malton
9fd02672ae
Add daily-alpha release for open-lens (#7127)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-09 02:19:35 -05:00
Alex Andreev
2675a83632 Refactor hierarchicalNamespacesInjectable
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-08 17:28:02 +03:00
Alex Andreev
6a4a58b937 Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-08 17:24:30 +03:00
Alex Andreev
690bef9597 Refactor: move tree build logic to store
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-08 17:23:36 +03:00
Alex Andreev
0cf649de69 Use prevDefault util
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-08 14:57:40 +03:00
Alex Andreev
5b8de287d8 Move subnamespace badge show check to parent
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-08 14:54:47 +03:00
Alex Andreev
f9cf6ad87f Use font-size: x-small instead of rem units
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-08 14:40:59 +03:00
Alex Andreev
0bf00767bb
Merge branch 'master' into enhancement-namespace-tree-view 2023-02-08 14:38:05 +03:00
Jari Kolehmainen
ccab5fda1c
Use setCertificateVerifyProc to verify lens proxy certificate (#7118)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-08 05:51:55 -05:00
Sami Tiilikainen
ac2d0e46ff
Renderer file logging transport (#6795)
* Renderer file logging transport

Add file logging to renderer, writing separate log files for renderer main frame and each cluster frame.

Related to lensapp/support-lens-extension#118

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Switch renderer file log level to info

There is too much noise on debug level from api responses etc

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Unmount on pagehide instead of beforeunload

It seems cluster onbeforeunload is not triggered when iframe is removed from dom by the parent (when disconnecting a cluster).

While on root/main frame the beforeunload event does work, it seems to be adviced to use pagehide instead.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Close log files on unmount

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Improve file handle closing in different situations

This should cover reloading main and cluster frames and closing cluster frame throught disconnecting cluster. No file handles should be left open now.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Fix renderer log rotation

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Switch back to beforeunload in root frame

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove capturing phase event usage

Does not seem to be needed for log files to be successfully closed and caused integration tests to fail.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

---------

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
2023-02-08 05:50:22 -05:00
Alex Andreev
30ca560937 Linter fix
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-06 11:28:06 +03:00
Alex Andreev
014174e04b Subnamespace badge style fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-06 11:27:50 +03:00
Alex Andreev
074c0aa087 Merge branch 'master' into enhancement-namespace-tree-view 2023-02-06 10:35:01 +03:00
Alex Andreev
b0ab29095e Clean up tests from boilderplate
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-06 10:34:31 +03:00
dependabot[bot]
c12561f7d8
Bump http-cache-semantics from 4.1.0 to 4.1.1 (#7108)
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-03 13:28:33 -05:00
dependabot[bot]
e0195117d5
Bump @swc/cli from 0.1.59 to 0.1.61 (#7096)
Bumps [@swc/cli](https://github.com/swc-project/cli) from 0.1.59 to 0.1.61.
- [Release notes](https://github.com/swc-project/cli/releases)
- [Commits](https://github.com/swc-project/cli/compare/v0.1.59...v0.1.61)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-03 09:54:58 -05:00
dependabot[bot]
4c44e1948c
Bump @swc/core from 1.3.31 to 1.3.32 (#7090)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.3.31 to 1.3.32.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.3.31...v1.3.32)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-03 09:50:55 -05:00
Sebastian Malton
28d2ccf0fe
Release 6.4.0-beta.13 (#7106)
* Release 6.4.0-beta.13

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

* Fix create-release-pr after fresh bootstrap

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-03 09:10:04 -05:00
Alex Andreev
70ca90f3ae Rename Icon components
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-03 16:28:23 +03:00
Alex Andreev
c594cb4c25 Extract nodeId to avoid repeating
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-03 16:27:02 +03:00
Alex Andreev
fa87ab5157 Move isSubnamespace method inside API
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-03 16:23:19 +03:00
Alex Andreev
db0cb45a30 Styling TreeView inside scss module
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-03 16:17:43 +03:00
Jari Kolehmainen
65175377d0
fix common extension api bundling (#7099)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-03 15:15:08 +02:00
Alex Andreev
ef618f3f74
Merge branch 'master' into enhancement-namespace-tree-view 2023-02-03 16:02:29 +03:00
Jari Kolehmainen
205dc5127f
fix open-lens package missing fonts (#7100)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-03 13:26:18 +02:00
Alex Andreev
c2b38591c4
Merge branch 'master' into enhancement-namespace-tree-view 2023-02-03 13:40:19 +03:00
Jari Kolehmainen
f291150044
Fix invalid bin links causing errors on windows (#7101)
* fix invalid bin links causing errors on windows

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

* add --include-dependencies

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

---------

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-03 12:21:41 +02:00
Jari Kolehmainen
5002b450fd
Set core webpack dependencies as externals (#7094)
* core webpack dependencies as externals

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

* use fork-ts-checker-webpack-plugin

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

---------

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-02 16:52:21 +02:00
Alex Andreev
f8519e6ebd
Merge branch 'master' into enhancement-namespace-tree-view 2023-02-02 16:54:02 +03:00
Sebastian Malton
6d2efb99e7
Export more things for the extension API (#7088)
* Export more things for the extension API

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

* Provide more insight into the dist-tag computation

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

* Fix type errors

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-02 08:28:56 -05:00
Alex Andreev
0df260ecd0 Replace CloseIcon with semi-transparent MinusIcon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-02 12:51:55 +03:00
Alex Andreev
65a4e2b90a Merge branch 'master' into enhancement-namespace-tree-view 2023-02-02 11:59:37 +03:00
Sebastian Malton
7a57a89194
Release 6.4.0-beta.12 (#7086)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-01 16:13:39 -05:00
Sebastian Malton
b94a4a0664
Fix publish release use of internal package (#7085)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-01 16:11:25 -05:00
dependabot[bot]
5953510c11
Bump @typescript-eslint/eslint-plugin from 5.49.0 to 5.50.0 (#7075)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.49.0 to 5.50.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.50.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:56:47 -05:00
dependabot[bot]
c81a83ee84
Bump sass from 1.57.1 to 1.58.0 (#7073)
Bumps [sass](https://github.com/sass/dart-sass) from 1.57.1 to 1.58.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.57.1...1.58.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:54:38 -05:00
dependabot[bot]
e548d9b024
Bump @typescript-eslint/parser from 5.49.0 to 5.50.0 (#7074)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.49.0 to 5.50.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.50.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:54:00 -05:00
dependabot[bot]
fef8e98fef
Bump @swc/cli from 0.1.59 to 0.1.60 (#7072)
Bumps [@swc/cli](https://github.com/swc-project/cli) from 0.1.59 to 0.1.60.
- [Release notes](https://github.com/swc-project/cli/releases)
- [Commits](https://github.com/swc-project/cli/compare/v0.1.59...v0.1.60)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:53:52 -05:00