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

55 Commits

Author SHA1 Message Date
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
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
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
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
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
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
4ab9f73e35 Merge branch 'master' into enhancement-namespace-tree-view 2023-02-01 15:02:02 +03:00
Alex Andreev
074536d529 Fix linter harder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 14:33:37 +03:00
Alex Andreev
8c8701f8a6 Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 13:54:13 +03:00
Alex Andreev
1489264953 Adding tooltip for subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 13:42:53 +03:00
Alex Andreev
78e77f7536 Restyling subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 13:37:21 +03:00
Alex Andreev
752c60d755 Testing clicking plus icon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 13:31:46 +03:00
Alex Andreev
0ecf00ed03 Expand and collapse tree nodes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 13:29:22 +03:00
Alex Andreev
e6ab47f1eb Styling subnamespace badge
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 10:02:22 +03:00
Alex Andreev
270f7f839d Remove fontSize attr from SvgIcon
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 09:45:28 +03:00
Alex Andreev
e4221d891c Label and group styling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-02-01 09:43:52 +03:00
Sebastian Malton
9ca8dc86fd
Rename extension api parts as 'extensionApi' (#7066)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-31 10:00:49 -05:00
Alex Andreev
d99bf38ff3 Initial label styling
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 16:29:13 +03:00
Alex Andreev
5f6f910cde Add links to the tree items
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 16:03:33 +03:00
Alex Andreev
803348dad1 Expand all nodes by default
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 14:52:29 +03:00
Alex Andreev
f0111391f2 Add tree view to namespace details
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 14:17:35 +03:00
Alex Andreev
304fcdc601 Testing rendering 2 levels deep
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 14:16:36 +03:00
Alex Andreev
34c3e3e498 Render subnamespace badge after name
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 13:33:50 +03:00
Alex Andreev
b0e27123b2 Remove unused lodash import
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 13:18:55 +03:00
Alex Andreev
ecba048c95 Render a child subnamespace
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 13:12:33 +03:00
Alex Andreev
2d2f2888cd Render namespace children
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 13:06:00 +03:00
Alex Andreev
0e9a6fbbe4 Introduce <NamespaceTreeView/>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 12:23:20 +03:00
Alex Andreev
90d7e97fbb Initial tests for <NamespaceTreeView />
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2023-01-31 12:22:52 +03:00
Sebastian Malton
a73f166f1f
Fix @k8slens/extensions being broken after monorepo (#7058)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-30 16:32:30 -05:00
Jim Ehrismann
a8a59ff191
introducing vpa resources (#7004)
* introducing vpa resources (as hpa resources to start)

vpa spec (WIP)

adding real vpa fields

scss files, and updates after rebase on master

scss update

tweaks to vpa api definition

putting more fields into the vpa list

adding vpa details, fixing vpa spec implementation (WIP)

vpa details page done

merge conflicts

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* moved files after monorepo merge

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* address review comments, added vpa endpoint to endpoints export list

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* deprecate HPAStore in favour of HorizontalPodAuotoscalerStore

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

---------

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2023-01-27 16:33:13 -08:00
Sebastian Malton
20c0fd912f
Fix building docs and verify:docs workflow (#7013)
* Fix building docs and verify:docs workflow

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

* Fix commands

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-25 13:59:21 -05:00